R
R
Roman2020-10-23 11:59:55
css
Roman, 2020-10-23 11:59:55

What else could be the reasons for protocol error: host said 250 OK (in reply to DATA command) on postfix or how to wedge into smtp response processing?

After updating the mail server to postfix 3.1, messages from some recipient servers return with an error Protocol error: host mail.example said: 250 2.1.5 Recipient OK (in reply to DATA command).

mail postfix/smtp[30149]: < : 220 All traffic and IP`s logging.
 mail postfix/smtp[30149]: > : EHLO *мойсервер
 mail postfix/smtp[30149]: < : 220 All traffic and IP`s logging.
 mail postfix/smtp[30149]: server features: 0x1001 size 0
 mail postfix/smtp[30149]: smtp_stream_setup: maxtime=300 enable_deadline=0
 mail postfix/smtp[30149]: > : MAIL FROM:<отправитель@мойдомен>
 mail postfix/smtp[30149]: smtp_stream_setup: maxtime=300 enable_deadline=0
 mail postfix/smtp[30149]: < : 250-mail.*получатель Hello *мойсервер [ip], pleased to meet you
 mail postfix/smtp[30149]: < : 250-ETRN
 mail postfix/smtp[30149]: < : 250-AUTH LOGIN PLAIN
 mail postfix/smtp[30149]: < : 250-ENHANCEDSTATUSCODES
 mail postfix/smtp[30149]: < : 250-STARTTLS
 mail postfix/smtp[30149]: < : 250 SIZE 25600000
 mail postfix/smtp[30149]: > : RCPT TO:<получатель>
 mail postfix/smtp[30149]: smtp_stream_setup: maxtime=300 enable_deadline=0
 mail postfix/smtp[30149]: < : 250 2.1.0 Sender OK
 mail postfix/smtp[30149]: > : DATA
 mail postfix/smtp[30149]: smtp_stream_setup: maxtime=120 enable_deadline=0
 mail postfix/smtp[30149]: < : 250 2.1.5 Recipient OK
 937715404F9: to=<получатель>, relay=, delay=0.62, delays=0.03/0.01/0.18/0.4, dsn=5.5.0, status=bounced (Protocol error: host получатель[ip] said: 250 2.1.5 Recipient OK (in reply to DATA command))
 mail postfix/smtp[30149]: > : RSET
 mail postfix/smtp[30149]: smtp_stream_setup: maxtime=20 enable_deadline=0
 mail postfix/smtp[30149]: < : 354  Please end data with <CR><LF>.<CR><LF>
 mail postfix/smtp[30149]: > : QUIT

Judging by the MAIL FROM logs, RCPT TO and DATA are transmitted, but due to the confusion of server responses, we get the following situation -
a 250-mail response was received on MAIL FROM .. command lists
for RCPT TO received 250 2.1.0 Sender OK (no longer ok)
for DATA, instead of the expected 354, it received 250 2.1.5 Recipient OK
After that, my smtp client ends the session, thinking that something went wrong. The administrator on the side of one of the servers reported that they received a letter without authorization - i.e. They did not receive MAIL FROM.

Tried disabling PIPELINING, didn't help. If you try to send a letter to problem hosts via telnet, the sending works fine - i.e. The problem is still on my side.
Actually the question - is it possible to somehow wedge into the processing of server responses on postfix so that MAIL FROM starts to be sent only when a 250 response is received on EHLO? Or is there some more elegant solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Clever_Coyote, 2016-04-11
@mydarck

Code
You can't apply animations to display:none.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question