sendmail logs

Paul Howarth paul at city-fan.org
Thu Sep 23 21:00:23 UTC 2004


On Thu, 2004-09-23 at 19:06, Alexander Dalloz wrote:
> Am Do, den 23.09.2004 schrieb Paul Howarth um 18:49:
> 
> > > ruleset=trust_auth, arg1=root at numb.darktech.org, 
> > > relay=localhost.localdomain [127.0.0.1],
> > > reject=550 5.7.1 <root at numb.darktech.org>... not authenticated: 1 Time(s)
> > 
> > This isn't a "real" error, it just says that the AUTH= parameter in the SMTP 
> > MAIL command isn't trusted because the client didn't authenticate, so it's not 
> > going to pass the AUTH= parameter on to the next hop. That's an expected log 
> > message in this case, and you wouldn't get it with logging at the default 
> > level (yours is at 10). It's not preventing delivery of any mail.
> > 
> > Paul.
> 
> Paul? It is an error indicating the mail is rejected! DSN 550 is a
> permanent error.

Not so! It looks like that but the 550 is internal to sendmail and the
client never sees it. Here's how you can try it yourself:

1. In one client window, do a "tail -f /var/log/maillog" so you can see
the messages from sendmail as they happen.

2. In another window, type in commands like these (>>> denotes your
typing, <<< denotes responses from sendmail):

$ telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<<< 220 goalkeeper.city-fan.org ESMTP Sendmail 8.13.1/8.13.1; Thu, 23
Sep 2004 21:49:04 +0100
>>> EHLO localhost
<<< 250-goalkeeper.city-fan.org Hello localhost.city-fan.org
[127.0.0.1], pleased to meet you
<<< 250-ENHANCEDSTATUSCODES
<<< 250-PIPELINING
<<< 250-8BITMIME
<<< 250-SIZE
<<< 250-ETRN
<<< 250-AUTH CRAM-MD5 DIGEST-MD5
<<< 250-DELIVERBY
<<< 250 HELP
>>> MAIL FROM:<paul at city-fan.org> AUTH=paul
<<< 250 2.1.0 <paul at city-fan.org>... Sender ok

At this point the mail log will show:

Sep 23 21:49:25 goalkeeper sm-mta[28272]: ruleset=trust_auth, arg1=paul,
relay=localhost.city-fan.org [127.0.0.1], reject=550 5.7.1
<paul at city-fan.org>... not authenticated

But note that the client got a 250, not a 550.

(type QUIT to exit the SMTP session).

Paul.
-- 
Paul Howarth <paul at city-fan.org>





More information about the fedora-list mailing list