Hi, I am using OpenSMTPD 6.0.2p1 as a smart host and have an issue where one mail gets actually relayed to the recipient (the end user receives the mail) but OpenSMTPD does not see it this way and results in a TempFail with the "Bad response: non-printable character in reply" message. This means that this mail gets stuck in the queue and each time (every 4 hours afaik) OpenSMTPD tries to send out the mail the recipient receives that very same mail again and again.
I don't quite understand here what could be going wrong and would be interested to see if anyone of you has an idea? In the mean time I have enabled debugging mode with tracing the outgoing SMTP sessions using "smtpd -d -T transfer". The relevant output of the SMTP session with the remote SMTP server of the recipient is listed below: ... mta: 0x5629fe26a910: <<< 250 ok mta: 0x5629fe26a910: MTA_MAIL -> MTA_RCPT mta: 0x5629fe26a910: >>> RCPT TO:<recipient.n...@domain2.com> mta: 0x5629fe26a910: <<< 250 ok mta: 0x5629fe26a910: MTA_RCPT -> MTA_DATA mta: 0x5629fe26a910: >>> DATA mta: 0x5629fe26a910: <<< 354 go ahead, end data with CRLF.CRLF mta: 0x5629fe26a910: MTA_DATA -> MTA_BODY mta: 0x5629fe26a910: >>> [...41954 bytes...] mta: 0x5629fe26a910: MTA_BODY -> MTA_BODY mta: 0x5629fe26a910: end-of-file mta: 0x5629fe26a910: MTA_BODY -> MTA_EOM mta: 0x5629fe26a910: >>> . mta: 0x5629fe26a910: <<< 250 ok message accepted [1498149549.15242.5932,S=42190] 9c849f4d3c765640 mta event=error reason=Bad response: non-printable character in reply 9c849f4d3c765640 mta event=delivery evpid=3f2457c338e1a818 from=<from.n...@domain1.org> to=<recipient.n...@domain2.com> rcpt=<-> source=123.123.123.123 relay=231.231.231.231 (mail.domain2.com) delay=2d1h13m35s result=TempFail stat=Bad response: non-printable character in reply Let me know if you need more details. Best regards, M.