-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Mon, Jan 28, 2008 at 09:25:08AM -0600, Eric Johnson sez:
> I recently changed the name of a computer with OpenBSD 4.2 by editing
> the /etc/myname file.  That seems to have taken care of the renaming
> almost everywhere.  I also changed the name in the /etc/hosts file as
> well.
> 
> However, when I send an e-mail from it using mail, the from address
> shows the original name, not the changed name.  Also, if I don't specify
> a hostname for the to address, it appends the old hostname instead of
> the new hostname.
> 
> The configuration file in /etc/mail doesn't have the original name
> anywhere.  Neither does the mc file.
> 
> Does anyone know what else I need to change?
> 
> Thanks,
> 
> Eric Johnson
> 
> [demime 1.01d removed an attachment of type application/pgp-signature]
> 

AFAIK, there are 3 files it says that need to be updated when
changing hostname. /etc/hosts, /etc/myname & /etc/hostname.interface.
The last one on my system is hostname.fxp0 and, since you didn't
mention changing your IP address, I don't why hostname.interface
would have to be changed.
I hate to ask this, but did you reboot or restart the network after
making your changes? If not, you're not going to see the changes
until you do one or the other, or change it using sysctl. Try this
& see what you get:

sysctl -a |grep hostname

If it still shows the old hostname,

sudo sysctl hostname=newname (same as in /etc/hosts & /etc/myname)

Then try your email again & see what happens.

-- 

Denny White

All messages scanned by ClamAssassin
http://jameslick.com/clamassassin/
===============================================================
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===============================================================
iD8DBQFHntnQy0Ty5RZE55oRAnmxAJ93VhJJY5VSNpN0e3ufIf+/0werWACeKRW6
FwulQ1BjeOoivv2YJssseYU=
=+QIK
-----END PGP SIGNATURE-----

Reply via email to