/etc/mail/local-host-names

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Dec 14 03:39:41 PST 2005


On 2005-12-14 01:51, Wojciech Puchar <wojtek at tensor.3miasto.net> wrote:
>> I think you need to put that in /etc/mail/access  as
>>
>> 10  RELAY
>>
>> and then do a
>> #make maps
>>
>> Check the Makefile in /etc/mail/ for more on the make
>> option
>>
>> Read /usr/share/sendmail/cf/README for more info.

> thanks.
>
> so what does local-host-names control?
>
> exactly as filename states? what domain does this server handle?

The list of host names for which email delivery takes place locally (Sendmail
documentation calls this "class 'w'" some times, if I remember correctly).

If your hostname is foo.example.net and the `confCW_FILE' macro points to
/etc/mail/local-host-names (as it does by default), and that file contains:

    bar.example.net

Then Sendmail will try to deliver messages sent to user at bar.example.net
locally too.

You don't absolutely _have_ to put *ALL* your host names in local-host-names,
because as I wrote before, Sendmail tries to auto-discover the local host
names.  You can see this list by running Sendmail in 'test mode' and looking
at the value of '$=w' like this (pressing CTRL-D exits from 'test mode', near
the end of the following example):

# keramida at flame[13:35]/home/keramida$ /usr/libexec/sendmail/sendmail -bt
# ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
# Enter <ruleset> <address>
# > $=w
# [IPv6:::1]
# [IPv6:fe80::1]
# flame.pc
# www.pc
# mail.pc
# localhost.localdomain
# localhost
# flame
# [127.0.0.1]
# localhost.pc
# [IPv6:fe80::211:95ff:feca:e5e8]
# flame.localdomain
# freebsd.pc
# [flame.daedalusnetworks.priv]
# > ^D
# keramida at flame[13:35]/home/keramida$



More information about the freebsd-questions mailing list