289963Re: Status code of multiline responses logged
- Dec 8, 2012Am 07.12.2012 22:29, schrieb Wietse Venema:
> Florian Pritz:RFC821 Appendix E states:
> Checking application/pgp-signature: FAILURE
> -- Start of PGP signed section.
> [ Charset UTF-8 unsupported, converting... ]
>> I've just seen the following log entry:
>>> postfix/smtp: A494013804C: host eggs.gnu.org[188.8.131.52] said: 451-Your sender e-mail address could not be verified. You're greylisted for 20 451 minutes. Come back later. (in reply to RCPT TO command)
>> I know that the "451 " after in front of minutes is part of the SMTP
>> protocol, but I really think that postfix shouldn't log it like that.
>> IMHO the log entry should either be split into one line per response
>> line from the server or better yet, it should strip the status code from
>> all but the first line.
> You assume that all response lines will have the same reply code,
> but that is not necessarily true. If Postfix were to log the first
> reply code only, then you would never be aware of the discrepancy.
The format for multiline replies requires that every line,
except the last, begin with the reply code, followed
immediately by a hyphen, "-" (also known as minus), followed by
text. The last line will begin with the reply code, followed
immediately by <SP>, optionally some text, and <CRLF>.
So I would assume that you could leave out response codes except for the
first line for the log output when concatenating a multiple response.
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin
- << Previous post in topic Next post in topic >>