Wietse Venema:
> With my own system, permit_mynetworks does override
> reject_unauth_pipelining, so I guess you either aren't matching
> mynetworks, or you have given incorrect confguration info, or the
> Debian maintainer introduced an error.
> 
> Below are examples for Postfix versions 2.9 (the latest) and 2.5
> (the oldest supported release).

I should add that when I remove permit_mynetworks from
smtpd_sender_restrictions, Postfix 2.9 rejects the same mail thusly:

% postconf mail_version
mail_version = 2.9-20110501
% postconf smtpd_delay_reject smtpd_sender_restrictions
smtpd_delay_reject = no
smtpd_sender_restrictions = reject_unauth_pipelining
% nc -w 5 127.0.0.1 25 < /tmp/pipelined
220 tail.porcupine.org ESMTP Postfix
250 tail.porcupine.org
503 5.5.0 <wietse@localhost>: Sender address rejected: Improper use of SMTP 
command pipelining
503 5.5.1 Error: need MAIL command
503 5.5.1 Error: need RCPT command
502 5.5.2 Error: command not recognized
502 5.5.2 Error: command not recognized
221 2.0.0 Bye
% tail /var/log/maillog
May 18 20:28:11 tail postfix/smtpd[15880]: connect from localhost[127.0.0.1]
May 18 20:28:11 tail postfix/smtpd[15880]: improper command pipelining after 
HELO from localhost[127.0.0.1]: mail from:<wietse@localhost>\r\nrcpt 
to:<wietse@localhost>\r\ndata\r\nblah\r\n.\r\nquit\r\n
May 18 20:28:11 tail postfix/smtpd[15880]: NOQUEUE: reject: MAIL from 
localhost[127.0.0.1]: 503 5.5.0 <wietse@localhost>: Sender address rejected: 
Improper use of SMTP command pipelining; from=<wietse@localhost> proto=SMTP 
helo=<localhost>
May 18 20:28:11 tail postfix/smtpd[15880]: disconnect from localhost[127.0.0.1]

Postfix 2.5 also rejects the mail:

% postconf mail_version
mail_version = 2.5.13
% postconf smtpd_delay_reject smtpd_sender_restrictions
smtpd_delay_reject = no
smtpd_sender_restrictions = reject_unauth_pipelining
% nc -w 5 127.0.0.1 25 < /tmp/pipelined
220 tail.porcupine.org ESMTP Postfix
250 tail.porcupine.org
503 5.5.0 <wietse@localhost>: Sender address rejected: Improper use of SMTP 
command pipelining
503 5.5.1 Error: need MAIL command
503 5.5.1 Error: need RCPT command
502 5.5.2 Error: command not recognized
502 5.5.2 Error: command not recognized
221 2.0.0 Bye
% tail /var/log/maillog
May 18 20:31:41 tail postfix/smtpd[21193]: connect from localhost[127.0.0.1]
May 18 20:31:41 tail postfix/smtpd[21193]: NOQUEUE: reject: MAIL from 
localhost[127.0.0.1]: 503 5.5.0 <wietse@localhost>: Sender address rejected: 
Improper use of SMTP command pipelining; from=<wietse@localhost> proto=SMTP 
helo=<localhost>
May 18 20:31:41 tail postfix/smtpd[21193]: disconnect from localhost[127.0.0.1]

        Wietse

Reply via email to