From owner-freebsd-questions Thu Dec 5 4: 1:19 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 7A5F437B401 for ; Thu, 5 Dec 2002 04:01:17 -0800 (PST) Received: from venus.chartpilot.ru (ns.chartpilot.ru [195.131.40.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1519843EB2 for ; Thu, 5 Dec 2002 04:01:16 -0800 (PST) (envelope-from A.Nepomnyaschih@chartpilot.ru) Received: from dimetra (dimetra.chartpilot.ru [195.131.40.7]) by venus.chartpilot.ru (8.12.6/8.12.6) with ESMTP id gB5C1EEd003562 for ; Thu, 5 Dec 2002 15:01:14 +0300 (MSK) (envelope-from A.Nepomnyaschih@chartpilot.ru) From: "Andrey Nepomnyaschih" To: Subject: RE: Sendmail and localhost Date: Thu, 5 Dec 2002 15:01:15 +0300 Message-ID: <000501c29c56$03158e20$072883c3@dimetra> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <20021205122520.M24821-100000@slave.east.ath.cx> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 Hello Andrew, Actually I wasn't asking how to disable the sendmail canonicalization. The sendmail.cf has some rules for handling local names and they're working when invoked in test mode. It seems to me that I have mis-configured the resolver or how do the sendmail resolve names. And I need someone who could clarify me what I had done wrong. Thanks for you reply, Andrey Nepomnyaschih >=20 > Today Andrey Nepomnyaschih wrote: >=20 > > Hello everybody, > > > > I've got some problems with sendmail. Going through logs=20 > I've found that > > sendmail identifies itself as localhost.. where I=20 > would expect > > it should be just [localhost]. > > > > Dec 5 13:09:00 watchdog sm-msp-queue[339]: gB5A016S000321: > > to=3Dxxx@, ctladdr=3Dxxx (x/x), delay=3D00:08:59, = xdelay=3D00:00:00, > > mailer=3Drelay, pri=3D120314, relay=3Dlocalhost.. = [127.0.0.1], > > dsn=3D2.0.0, stat=3DSent (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. >=20 > The first one is relative, the second is absolute path. I=20 > think, in the > second case is nothing to canonify. >=20 > > > > I get: > > Dec 5 12:12:41 watchdog sendmail[247]: gB59CfNb000247:=20 > to=3Dxxx@, > > ctladdr=3Dx (x/x), delay=3D00:00:00, xdelay=3D00:00:00, = mailer=3Drelay, > > pri=3D30036, relay=3D[localhost] [127.0.0.1], dsn=3D2.0.0, = stat=3DSent > > (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? > > >=20 > See the docs for FEATURE(`nocanonify', `canonify_hosts'), > CANONIFY_DOMAIN(`my.domain'), etc. >=20 > /usr/src/contrib/sendmail/cf/README > /usr/src/contrib/sendmail/doc/op/op.* >=20 > -andrew >=20 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message