Wietse Venema: > Ralf Hildebrandt: > > Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: > > to=<malgorzata.ixxx...@gmail.com>, > > relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, > > delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host > > gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK > > w9si551343wmd.47 - gsmtp (in reply to DATA command)) >
Additional workaround: do not reuse a session after protocol error. Once a session is messed up, all subsequent reuses would fail too. Wietse --- /var/tmp/postfix-3.5-20190615/src/smtp/smtp_trouble.c 2017-12-27 17:29:45.000000000 -0500 +++ src/smtp/smtp_trouble.c 2019-06-19 10:10:20.000000000 -0400 @@ -317,6 +317,8 @@ */ VSTRING_RESET(why->reason); if (mta_name && status && status[0] != '4' && status[0] != '5') { + SMTP_SESSION *session = state->session; + DONT_CACHE_THIS_SESSION; vstring_strcpy(why->reason, "Protocol error: "); status = "5.5.0"; }