James: > On 08/06/12 23:15, Wietse Venema wrote: > > You're incorrect. With PIPELINING turned on, the first reply after the > > client DATA command is the server's response for the client MAIL FROM > > command. client: MAIL FROM:<sender> client: RCPT TO:<recipient> > > client: DATA server: reply for MAIL FROM server: reply for RCPT TO > > server: reply for DATA <<===THIS IS THE DATA REPLY > > Sorry I had clipped the log poorly to reduce the quote - but the reply > to DATA is the 3rd reply, right, and that is 250 OK, which is > unexpected, better summary of the log...
This was discussed in my reply three weeks ago. Wietse Subject: Re: Protocol error sending mail to Exim 4.77 system In-Reply-To: <20120515193137.gc17...@aart.rice.edu> To: "k...@rice.edu" <k...@rice.edu> Date: Tue, 15 May 2012 15:45:22 -0400 (EDT) From: Wietse Venema <wie...@porcupine.org> cc: Postfix users <postfix-users@postfix.org> X-Mailer: ELM [version 2.4ME+ PL124d (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Message-ID: <3vstlq2bt6zk...@spike.porcupine.org> Sender: owner-postfix-us...@postfix.org Precedence: bulk List-Post: <mailto:postfix-users@postfix.org> List-Help: <http://www.postfix.org/lists.html> List-Unsubscribe: <mailto:majord...@postfix.org> List-Subscribe: <mailto:majord...@postfix.org> Status: RO k...@rice.edu: > On Tue, May 15, 2012 at 03:08:45PM -0400, Wietse Venema wrote: > > k...@rice.edu: > > > Dear Postfix users, > > > > > > I am having mail bounce from a Exim 4.77 system with the following > > > error: > > > > > > <x...@citykitchencatering.com>: Protocol error: host > > > citykitchencatering.com[74.50.1.185] said: 250 Accepted (in reply to DATA > > > command) > > > > Does this affect all mail or just some? > > > > It affects all Email sent to the system. This only started today and > mail to the same system and addresses worked yesterday. That server is busted. Maybe they installed a "security" "firewall" that mis-implements SMTP PIPELINING. Evidence: 1 May 15 15:29:18 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 220-roland.lunarservers.com ESMTP Exim 4.77 #2 Tue, 15 May 2012 12:29:18 -0700 2 May 15 15:29:18 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 220-We do not authorize the use of this system to transport unsolicited, 3 May 15 15:29:18 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 220 and/or bulk e-mail. 4 May 15 15:29:18 spike postfix/smtp[37016]: > citykitchencatering.com[74.50.1.185]:25: EHLO spike.porcupine.org 5 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250-roland.lunarservers.com Hello spike.porcupine.org [168.100.189.2] 6 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250-SIZE 52428800 7 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250-PIPELINING 8 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250-AUTH PLAIN LOGIN 9 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250-STARTTLS 10 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250 HELP 11 May 15 15:29:19 spike postfix/smtp[37016]: > citykitchencatering.com[74.50.1.185]:25: MAIL FROM:<wie...@porcupine.org> 12 May 15 15:29:19 spike postfix/smtp[37016]: > citykitchencatering.com[74.50.1.185]:25: RCPT TO:<postmas...@citykitchencatering.com> 13 May 15 15:29:19 spike postfix/smtp[37016]: > citykitchencatering.com[74.50.1.185]:25: RSET 14 May 15 15:29:19 spike postfix/smtp[37016]: > citykitchencatering.com[74.50.1.185]:25: QUIT 15 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250 OK 16 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 250 OK 17 May 15 15:29:19 spike postfix/smtp[37016]: < citykitchencatering.com[74.50.1.185]:25: 550 No Such User Here Line 15: the server replies with "250 OK"; by the rules of SMTP, this is the reply to "MAIL FROM". Line 16: the server replies with "250 OK"; by the rules of SMTP, this is the reply to "RCPT TO". Line 17: the server replies with "550 No Such User Here". Clearly the server has gotten out-of-sync with the client. You can dumb down Postfix with /etc/postfix/main.cf: smtp_discard_ehlo_keyword_address_maps = hash:/etc/postfix/busted-servers /etc/postfix/busted-servers: 74.50.1.185 pipelining Do "postmap /etc/postfix/busted-servers" and "postfix reload". Wietse