From owner-freebsd-questions@FreeBSD.ORG Tue Dec 6 18:19:56 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 2489F16A41F for ; Tue, 6 Dec 2005 18:19:56 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BC2143D46 for ; Tue, 6 Dec 2005 18:19:54 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id jB6IJoBa030851; Tue, 6 Dec 2005 20:19:50 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id jB6IJ7id016492; Tue, 6 Dec 2005 20:19:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id jB6IJ7YO016491; Tue, 6 Dec 2005 20:19:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 6 Dec 2005 20:19:07 +0200 From: Giorgos Keramidas To: Charles Howse Message-ID: <20051206181907.GA16479@flame.pc> References: <20051206175212.GA15873@flame.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-questions@freebsd.org Subject: Re: sendmail 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: Tue, 06 Dec 2005 18:19:56 -0000 On 2005-12-06 12:11, Charles Howse wrote: > In the past, I was just *certain* I had to had something in > local-host-names. Oh, well. :-) > > [charles@moe:~]$ echo '$=w' | sendmail -bt > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > Enter
> [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@moe:~]# rm /etc/mail/local-host-names > [root@moe:~]# killall -HUP sendmail > [root@moe:~]# echo '$=w' | sendmail -bt > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > Enter
> [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. - Giorgos