From owner-freebsd-questions Thu Dec 5 3:34:30 2002 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 4A70937B401 for ; Thu, 5 Dec 2002 03:34:28 -0800 (PST) Received: from catv-50622a7a.nyircatv.broadband.hu (catv-50622a7a.nyircatv.broadband.hu [80.98.42.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8952243EC5 for ; Thu, 5 Dec 2002 03:34:26 -0800 (PST) (envelope-from andrew@kronos.HomeUnix.com) Received: from slave.east.ath.cx (witch@slave.east.ath.cx [10.1.1.1]) by catv-50622a7a.nyircatv.broadband.hu (8.12.6/8.12.6) with ESMTP id gB5BYPqp034463 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 5 Dec 2002 12:34:25 +0100 (CET) (envelope-from andrew@east.ath.cx) Date: Thu, 5 Dec 2002 12:34:25 +0100 (CET) From: Andrew Prewett Reply-To: Andrew Prewett To: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail and localhost In-Reply-To: <000601c29c4a$3be60b00$072883c3@dimetra> Message-ID: <20021205122520.M24821-100000@slave.east.ath.cx> References: <000601c29c4a$3be60b00$072883c3@dimetra> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Today Andrey Nepomnyaschih wrote: > Hello everybody, > > I've got some problems with sendmail. Going through logs I've found that > sendmail identifies itself as localhost.. where I would expect > it should be just [localhost]. > > Dec 5 13:09:00 watchdog sm-msp-queue[339]: gB5A016S000321: > to=xxx@, ctladdr=xxx (x/x), delay=00:08:59, xdelay=00:00:00, > mailer=relay, pri=120314, relay=localhost.. [127.0.0.1], > dsn=2.0.0, stat=Sent (gB5A90GS000340 Message accepted for delivery) > > I believe that it just canonify the localhost name by appending > . to it. Because when I change /etc/hosts > from > 127.0.0.1 localhost > to > 127.0.0.1 localhost. The first one is relative, the second is absolute path. I think, in the second case is nothing to canonify. > > I get: > Dec 5 12:12:41 watchdog sendmail[247]: gB59CfNb000247: to=xxx@, > ctladdr=x (x/x), delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=30036, relay=[localhost] [127.0.0.1], dsn=2.0.0, stat=Sent > (gB59CfQo000248 Message accepted for delivery) > > Sounds really strange because testing rules gives me the following: > > $ sendmail -bt > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > Enter
> > 3 localhost > canonify input: localhost > Canonify2 input: localhost > Canonify2 returns: localhost > canonify returns: localhost > > So the question is why do sendmail canonify the localhost name? > See the docs for FEATURE(`nocanonify', `canonify_hosts'), CANONIFY_DOMAIN(`my.domain'), etc. /usr/src/contrib/sendmail/cf/README /usr/src/contrib/sendmail/doc/op/op.* -andrew > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message