[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set localhost name?


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.

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
./hosts:       <myhostname>.local     <myhostname>
./motd:Linux <myhostname> 2.6.26-2-amd64 #1 SMP Mon Oct 26 10:39:40 UTC 2009 x86_64

Anyway, you may wish to read:

Good luck.


Reply to: