sendmail local-host-names

Charles Howse chowse at charter.net
Tue Dec 6 11:01:02 PST 2005


> On 2005-12-06 12:11, Charles Howse <chowse at charter.net> wrote:
>> In the past, I was just *certain* I had to had something in
>> local-host-names.  Oh, well.  :-)
>> 
>> [charles at moe:~]$ echo '$=w' | sendmail -bt
>> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
>> Enter <ruleset> <address>
>> [IPv6:::1]
>> moe
>> [192.168.254.4]
>> [IPv6:fe80::1]
>> [IPv6:fe80::2a0:ccff:fe29:689d]
>> moe.local
>> localhost.local
>> localhost
>> larry.local
>> [localhost.local]
>> local
>> [127.0.0.1]
>> 
>> [root at moe:~]# rm /etc/mail/local-host-names
>> [root at moe:~]# killall -HUP sendmail
>> [root at moe:~]# echo '$=w' | sendmail -bt
>> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
>> Enter <ruleset> <address>
>> [IPv6:::1]
>> moe
>> [192.168.254.4]
>> [IPv6:fe80::1]
>> [IPv6:fe80::2a0:ccff:fe29:689d]
>> moe.local
>> localhost.local
>> localhost
>> [localhost.local]
>> [127.0.0.1]
> 
> Well, it looks I was (at least partially) wrong.
> 
> One notable difference is that in the second case (without a local-host-names
> file), the host name "larry.local" is not recognized as a local host name.
> 
> It may be a good idea to keep the local-host-names file in your case, to make
> sure that Sendmail knows about both moe.local and larry.local.

It's working without a local-host-names file, so if it gets squirrelly, I'll
add it back.
Thanks for the help.  :-)



More information about the freebsd-questions mailing list