Daniel L. Miller: [ Charset ISO-8859-1 unsupported, converting... ] > Wietse Venema wrote: > > Daniel L. Miller: > > > >> Mar 4 23:21:33 mailserver postfix/smtpd[20964]: warning: proxy > >> inet:192.168.0.10:225 rejected "DATA": "250 2.1.5 Ok" > >> > > > > Your proxy replies with "250 2.1.5 Ok" to the "DATA" command. > > > > 250 Is an incorrect reply. It should be "354" for success, > > 5xx or 4xx for failure. > > > > And because 250 is not a valid DATA reply, Postfix does not go into > > the DATA phase. > > > > Postfix then forwards the "250 2.1.5 Ok" to your SMTP client. > > > > When you talk directly to Postfix, this is why you see "250 2.1.5 > > Ok" in response to DATA. This is clearly bogus, and I'll fix Postfix > > so it will send some appropriate reply instead. But I won't be > > posting patches for that. > > > Wow. Last thing I expected was to hear I found a bug in Postfix 2.5.
THIS IS NOT A POSTFIX BUG. POSTFIX IS ONLY THE MESSENGER. The proxy filter replies with SMTP reply code 2.1.5 to the SMTP DATA command. That is the problem. My fix only makes sure that this bogus reply from the proxy filter would not confuse naive SMTP client software, so that it will stop sending message-id etc. headers after it receives a 2.1.5 reply. You can log the conversation between SMTP client, Postfix and the proxy filter by adding one -v option on the smtpd command line in master.cf, or by using debug_peer_list and debug_peer_level in main.cf. Wietse