Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2002 13:36:56 +0300
From:      "Andrey Nepomnyaschih" <nas@assystems.lv>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Sendmail and localhost
Message-ID:  <000601c29c4a$3be60b00$072883c3@dimetra>

next in thread | raw e-mail | index | archive | help
Hello everybody,

I've got some problems with sendmail. Going through logs I've found that
sendmail identifies itself as localhost.<domain>. where I would expect
it should be just [localhost].

Dec  5 13:09:00 watchdog sm-msp-queue[339]: gB5A016S000321:
to=3Dxxx@<domain>, ctladdr=3Dxxx (x/x), delay=3D00:08:59, =
xdelay=3D00:00:00,
mailer=3Drelay, pri=3D120314, relay=3Dlocalhost.<domain>. [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
<domain>. to it. Because when I change /etc/hosts
from
127.0.0.1	localhost
to
127.0.0.1	localhost.

I get:
Dec  5 12:12:41 watchdog sendmail[247]: gB59CfNb000247: =
to=3Dxxx@<domain>,
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 <ruleset> <address>
> 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?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000601c29c4a$3be60b00$072883c3>