From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 11:39:41 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 833C216A41F for ; Wed, 14 Dec 2005 11:39:41 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6C7B43D4C for ; Wed, 14 Dec 2005 11:39:39 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id jBEBdbHt014179; Wed, 14 Dec 2005 13:39:37 +0200 Received: by flame.pc (Postfix, from userid 1001) id C846A11455; Wed, 14 Dec 2005 13:38:43 +0200 (EET) Date: Wed, 14 Dec 2005 13:38:43 +0200 From: Giorgos Keramidas To: Wojciech Puchar Message-ID: <20051214113843.GC1256@flame.pc> References: <20051213203622.71670.qmail@web32812.mail.mud.yahoo.com> <20051214015047.Q49870@chylonia.3miasto.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051214015047.Q49870@chylonia.3miasto.net> Cc: freebsd-questions@freebsd.org Subject: Re: /etc/mail/local-host-names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 11:39:41 -0000 On 2005-12-14 01:51, Wojciech Puchar 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
# > $=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$