Hi,

I occasionally have an issue with outgoing mails not being accepted by 
OpenSMTPD due to "Message is not RFC 2822 compliant". It's also a recurring 
problem of a client of mine were I've setup OpenSMTPD. Both systems are running 
5.7.1, one on OpenBSD 5.6 and this one on OpenBSD 5.8-beta (snapshot from 
2015-07-10).

I believe this message in the log is a bit strange: received invalid command: 
"DATA"

In this particular case the mail is a fairly long conversation with 10+ replies 
in HTML. In the past the only remedy has been to remove large parts of the 
email history. I've also seen this occur in a single reply-to instance.

In all cases so far the MUA has been various versions of Apple Mail, ranging 
from default version in 10.9 to this example with latest 10.11 beta.

Any way to debug this behaviour it further?

Thanks
Eric Ripa


smtp: 0x147357517000: connected to listener 0x147414db5000 
[hostname=mail.domain.com, port=587, tag=]
smtp: 0x147357517000: STATE_NEW -> STATE_CONNECTED
smtp-in: session 8917f8161d62f58a: connection from host client.isp.com 
[1.2.3.4] established
smtp: 0x147357517000: >>> 220 mail.domain.com ESMTP OpenSMTPD
smtp: 0x147357517000: <<< EHLO [192.168.1.2]
smtp: 0x147357517000: STATE_CONNECTED -> STATE_HELO
smtp: 0x147357517000: >>> 250-mail.domain.com Hello [192.168.1.2] [1.2.3.4], 
pleased to meet you
smtp: 0x147357517000: >>> 250-8BITMIME
smtp: 0x147357517000: >>> 250-ENHANCEDSTATUSCODES
smtp: 0x147357517000: >>> 250-SIZE 36700160
smtp: 0x147357517000: >>> 250-DSN
smtp: 0x147357517000: >>> 250-STARTTLS
smtp: 0x147357517000: >>> 250 HELP
smtp: 0x147357517000: <<< STARTTLS
smtp: 0x147357517000: >>> 220 2.0.0: Ready to start TLS
smtp: 0x147357517000: STATE_HELO -> STATE_TLS
smtp-in: session 8917f8161d62f58a: TLS started version=TLSv1/SSLv3 (), 
cipher=ECDHE-RSA-AES256-SHA, bits=256
smtp: 0x147357517000: STATE_TLS -> STATE_HELO
smtp: 0x147357517000: <<< EHLO [192.168.1.2]
smtp: 0x147357517000: STATE_HELO -> STATE_HELO
smtp: 0x147357517000: >>> 250-mail.domain.com Hello [192.168.1.2] [1.2.3.4], 
pleased to meet you
smtp: 0x147357517000: >>> 250-8BITMIME
smtp: 0x147357517000: >>> 250-ENHANCEDSTATUSCODES
smtp: 0x147357517000: >>> 250-SIZE 36700160
smtp: 0x147357517000: >>> 250-DSN
smtp: 0x147357517000: >>> 250-AUTH PLAIN LOGIN
smtp: 0x147357517000: >>> 250 HELP
smtp: 0x147357517000: <<< AUTH PLAIN 
ZXJpY0dkfoskdofKOKFODSfkODKfoSDkfodskfOSDFZmVZcSxrLHBMeGE5OVFSeUFuSFVDWF1KQg==
smtp: 0x147357517000: STATE_HELO -> STATE_AUTH_INIT
smtp-in: session 8917f8161d62f58a: authentication successful for user 
m...@domain.com
smtp: 0x147357517000: >>> 235 2.0.0: Authentication succeeded
smtp: 0x147357517000: STATE_AUTH_INIT -> STATE_HELO
smtp: 0x147357517000: <<< MAIL FROM:<m...@domain.com>
smtp: 0x147357517000: >>> 250 2.0.0: Ok
smtp: 0x147357517000: <<< RCPT TO:<t...@example.com>
smtp: 0x147357517000: >>> 250 2.1.5 Destination address valid: Recipient ok     
                                                           [1101/1838]
smtp: 0x147357517000: <<< RCPT TO:<c...@example.com>
smtp: 0x147357517000: >>> 250 2.1.5 Destination address valid: Recipient ok
smtp: 0x147357517000: <<< DATA
smtp: 0x147357517000: STATE_HELO -> STATE_BODY
smtp: 0x147357517000: >>> 354 Enter mail, end with "." on a line by itself

...lots of <<< [MSG]...

smtp: 0x147357517000: >>> 550 5.7.1 Delivery not authorized, message refused: 
Message is not RFC 2822 compliant
smtp-in: session 8917f8161d62f58a: received invalid command: "DATA"
smtp: 0x147357517000: STATE_BODY -> STATE_HELO
smtp: 0x147357517000: <<< QUIT
smtp: 0x147357517000: >>> 221 2.0.0: Bye
smtp: 0x147357517000: STATE_HELO -> STATE_QUIT
smtp-in: session 8917f8161d62f58a: connection from host client.isp.com 
[1.2.3.4] closed (client sent QUIT)




--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to