clongeau/opensmtpd

failure to accept via smtp or cli a message

Closed this issue · 3 comments

I have a message (newsletter etc) that I discovered today that smtpd can't handle (I got it via sendmail).

I received the attached message from a ticket purchasing place, its a random
newsletter, content seems to have some long lines perhaps as the culprit of
the problem. I was bouncing it back to myself to test a procmail recipe I
was setting up to move messages like it into another folder when I noticed
that it failed when mutt sent it directly to ::1 port 25. Upon further
testing, no mechanism to deliver it succeeds.

If you 'zcat mbox.gz | sendmail email@example.com' you'll note that 'smtpd -dv'
only shows:

    smtp: new client on listener: 0x3c00c2a0
    smtp: 0x86451000: deleting session: disconnected

for output.

If you do the zcat with smtpd not running, and let it find the message in the
offline queue, there seems to be a problem handling it:

    smtpd: scanning offline queue...
    smtpd: enqueueing offline message /var/spool/smtpd/offline/1343837944.YmXpL5Nhb2
    smtpd: enqueueing offline message /var/spool/smtpd/offline/1343837996.CcaGeUI09a
    smtpd: offline scanning done
    smtp: new client on listener: 0x3c00c2a0
    smtp: new client on listener: 0x3c00c2a0
    smtp: 0x89060000: deleting session: disconnected
    smtpd: couldn't enqueue offline message /var/spool/smtpd/offline/1343837944.YmXpL5Nhb2; smtpctl terminated; signal 13
    smtp: 0x7e8da000: deleting session: disconnected
    smtpd: couldn't enqueue offline message /var/spool/smtpd/offline/1343837996.CcaGeUI09a; smtpctl terminated; signal 13

I suspect you'll have no problems recreating this behavior, not sure how to
debug further ;-)

Since I can't find a button to attach a file to this issue, please paste the below to 'b64decode' .. creating 'mbox.gz' referenced above...

begin-base64 600 mbox.gz
H4sICGtVGVACA21ib3gAzVf/b9rIEv+5/BVzrl7VShh/BYz5ck0gXJBCGwVyfafTKVrsNWxje327
Cwn319+sTQghaRvde096NKqNvTs785nPfGYYC55BTu9kSpWi4iPLE97I+IZRxaJbqmQjwgVfaAwn
6yWAA3YzdNqh44NrO25tMNb7ZZbJAp6v8jrVqn+bo9nlydS8onKdqhAmec4jmqv9iyHPExbTPKIh
2I1Op9Pcv5pkheALsmApU9sQTbMcjQa224FoRXAH8A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Zvdyevw79mDp96PyfIzKqbcwso7T+kdRtf/jqMZYrAvOb18T1n6tlgSs
PH0pRatn6QG8nMfL3wS1vwGTmf3pJxEAAA==

due to github mangling the base64 text above, you'll need to append one line of '====' at the end of the above for the decode to work properly. sigh

This bug was due to a too long line. It should be fixed in -current.

Thanks for the report!