Thanks for the response. I suspected that but given that the actual content in this case is confidential I was a bit hesitant.
Heres the leading part of the [MSG] section. Can you see anything triggering this? <<< [MSG] From: My Name <m...@domain.com> <<< [MSG] Content-Type: multipart/signed; boundary="Apple-Mail=_72DA7FD1-7F93-4028-B624-1213C11481BD"; protocol="application/pkcs7-signature"; micalg=sha1 <<< [MSG] Message-Id: <a43d767b-9985-4990-8d65-e3b12f036...@domain.com> <<< [MSG] Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3067\)) <<< [MSG] Subject: =?utf-8?Q?Re=3A_M=C3=B6tet_imorgon?= <<< [MSG] Date: Sat, 11 Jul 2015 22:16:19 +0200 <<< [MSG] References: <CAA-Q+[REDACTED]z1=Zy=4zkkr_dykq4qzeenv--bz...@mail.gmail.com> <1695ed38-f691-45c5-8aa3-336ce8de3...@domain.com> <CAA-Q+[REDACTED]XAkzv+LMt+DCcummP=oJQiqqWcj=f...@mail.gmail.com> <8a0aba7a-241c-495c-8861-7b75283b1...@domain.com> <CAA-Q+[REDACTED]w3czctp88zqjxbqlnxbccuugdoy...@mail.gmail.com> <cba3895c-1edc-4028-bc2e-3d65a5e90...@domain.com> <CAA-Q+[REDACTED]--t_oebv05v69vtmotafqroopob...@mail.gmail.com> <410ab57c-4565-4e8c-835a-a629a189c...@domain.com> <CAA-Q+[REDACTED]yYXYjmHE7Yn3Stbw8kqk3K=6+2=j...@mail.gmail.com> <c55bd6a6-d61c-4659-b1b8-aae9fbf97...@domain.com> <CAA-Q+[REDACTED]umyza6n27keqd_drgkydd8lzpwi...@mail.gmail.com> <9b5786c8-9576-41f6-b624-801acb64e...@domain.com> <CAA-Q+[REDACTED]vaoq7xsa24ohad+o23fdwgde+8q...@mail.gmail.com> <8d5a9215-4d04-4fe3-87d4-9791cb05f...@domain.com> <CAA-Q+[REDACTED]++qrr34y+hzptnvosz_b3xvpug+...@mail.gmail.com> <54a2c287-83c5-44f8-a769-dc2f0f73f...@domain.com> <CAA-Q+[REDACTED]ka7ccdghgxw301bpq2u+kblcza1...@mail.gmail.com> <CAA-Q+[REDACTED]pzqjzzy-_q4gpohstrlqe2nt+hl...@mail.gmail.com> <<< [MSG] To: t...@example.com <<< [MSG] In-Reply-To: <CAA-Q+[REDACTED]qe2nt+hl...@mail.gmail.com> <<< [MSG] X-Mailer: Apple Mail (2.3067) <<< [MSG] <<< [MSG] <<< [MSG] --Apple-Mail=_72DA7FD1-7F93-4028-B624-1213C11481BD <<< [MSG] Content-Type: multipart/alternative; <<< [MSG] boundary="Apple-Mail=_1D1CF9DB-435D-4B6D-B041-4150C3143099" <<< [MSG] <<< [MSG] <<< [MSG] --Apple-Mail=_1D1CF9DB-435D-4B6D-B041-4150C3143099 <<< [MSG] Content-Transfer-Encoding: quoted-printable <<< [MSG] Content-Type: text/plain; <<< [MSG] charset=utf-8 <<< [MSG] ..... ..... actual content ..... <<< [MSG] --Apple-Mail=_72DA7FD1-7F93-4028-B624-1213C11481BD-- <<< [EOM] > On 2015-07-11, at 14:34, Gilles Chehade <gil...@poolp.org> wrote: > > On Sat, Jul 11, 2015 at 01:28:29PM +0200, Eric Ripa wrote: >> 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]... >> > > Problem lies precisely in the [MSG] you have obfuscated ;-) > > I'm fairly confident that your mail does not have headers + body > > >> 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) >> > > > -- > Gilles Chehade > > https://www.poolp.org @poolpOrg > > -- > You received this mail because you are subscribed to misc@opensmtpd.org > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org