Re: How to set localhost name?
Hi,
On Wed, Nov 04, 2009 at 12:45:01PM -0600, Phil Roan wrote:
> When I installed debian, I set the local host name on my computer to
> local2. For a long time, everything was fine. Recently, I'm getting
> mail returned to me when I send it to Windows Live Hotmail accounts.
> I think the problem is that my mail program (Mutt, with Exim 4 as MTA)
> is adding the local host name to some of the headers. Since the local
> host name is different that my ISP name, WLH flags it as suspect mail.
>
> How can I reset (or unset) local host?
It is /etc/hostname
but this may not be enough to get system working.
There are few other locations which affects mutt etc to add hostname.
/etc/mailname
~/.muttrc
...
On my system, <myhostname> shows up in /etc as follows:
$ sudo grep -r <myhostname> .
./printcap:PM-A950|EPSON PM-A950:rm=<myhostname>.local:rp=PM-A950:
Binary file ./emacs22/site-start.d/00debian-vars.elc matches
./hostname:<myhostname>
./mailname:<myhostname>.local
./hosts:127.0.1.1 <myhostname>.local <myhostname>
./motd:Linux <myhostname> 2.6.26-2-amd64 #1 SMP Mon Oct 26 10:39:40 UTC 2009 x86_64
./dictionaries-common/words:<myhostname>
Anyway, you may wish to read:
http://www.debian.org/doc/manuals/debian-reference/ch06.en.html#_the_mail_system
Good luck.
Osamu
Reply to: