Re: sendmail logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx, 
> > > relay=localhost.localdomain [127.0.0.1],
> > > reject=550 5.7.1 <root@xxxxxxxxxxxxxxxxx>... 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@xxxxxxxxxxxx> AUTH=paul
<<< 250 2.1.0 <paul@xxxxxxxxxxxx>... 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@xxxxxxxxxxxx>... not authenticated

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

(type QUIT to exit the SMTP session).

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux