Date: Wed, 14 Dec 2005 13:38:43 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Wojciech Puchar <wojtek@tensor.3miasto.net> Cc: freebsd-questions@freebsd.org Subject: Re: /etc/mail/local-host-names Message-ID: <20051214113843.GC1256@flame.pc> In-Reply-To: <20051214015047.Q49870@chylonia.3miasto.net> References: <20051213203622.71670.qmail@web32812.mail.mud.yahoo.com> <20051214015047.Q49870@chylonia.3miasto.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-12-14 01:51, Wojciech Puchar <wojtek@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@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@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@flame[13:35]/home/keramida$
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051214113843.GC1256>