OpenDMARC icon indicating copy to clipboard operation
OpenDMARC copied to clipboard

Opendmarc crashes with 'milter unix:/run/opendmarc/opendmarc.sock: can't read SMFIC_BODYEOB reply packet header: Application error'

Open staszic01 opened this issue 3 years ago • 6 comments

Find mail logs attached below:

Mar 25 20:58:31 boss postfix/smtpd[2285]: connect from list.uvm.edu[132.198.101.49] Mar 25 20:58:33 boss policyd-spf[11415]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=132.198.101.49; helo=list8.uvm.edu; envelope-from=owner-isogeochemslayoo**staszic-waw*[email protected]; receiver=<UNKNOWN> Mar 25 20:58:33 boss postfix/smtpd[2285]: BB3DA2001614: client=list.uvm.edu[132.198.101.49] Mar 25 20:58:34 boss postfix/cleanup[6363]: BB3DA2001614: message-id=[email protected] Mar 25 20:58:34 boss opendkim[2525]: BB3DA2001614: list.uvm.edu [132.198.101.49] not internal Mar 25 20:58:34 boss opendkim[2525]: BB3DA2001614: not authenticated Mar 25 20:58:34 boss opendkim[2525]: BB3DA2001614: no signing domain match for 'awi.de' Mar 25 20:58:34 boss opendkim[2525]: BB3DA2001614: no signing subdomain match for 'awi.de' Mar 25 20:58:34 boss opendkim[2525]: BB3DA2001614: no signature data Mar 25 20:58:34 boss postfix/cleanup[6363]: warning: milter unix:/run/opendmarc/opendmarc.sock: can't read SMFIC_BODYEOB reply packet header: Application error Mar 25 20:58:34 boss postfix/cleanup[6363]: BB3DA2001614: milter-reject: END-OF-MESSAGE from list.uvm.edu[132.198.101.49]: 4.7.1 Service unavailable - try again later; from=owner-isogeochem*slayoo**STASZIC*-WAW*[email protected] to=[email protected] proto=ESMTP helo=<list8.uvm.edu>

In kernel log I found the following: [35266.313292] opendmarc[19208]: segfault at 0 ip 0000148cd4fc76d0 sp 0000148cc7dd9138 error 4 in libbsd.so.0.11.3[148cd4fbf000+c000]

staszic01 avatar Mar 28 '22 10:03 staszic01

What opendmarc version? Config? How to reproduce?

glts avatar Mar 29 '22 07:03 glts

What opendmarc version?

We currently use opendmarc version 1.4.1.1-r2

Config?

AuthservID boss.staszic.waw.pl IgnoreAuthenticatedClients true PidFile /var/run/opendmarc/opendmarc.pid Socket local:/var/run/opendmarc/opendmarc.sock UMask 0002 UserID opendmarc

Remaning values are set to its defaults

How to reproduce?

It crashes while processing email from list.uvm.edu. Unfortunately we haven't intercepted that email. Everything we know is attached in mail log above

staszic01 avatar Mar 31 '22 09:03 staszic01

I got today also such a message:

Postfix's milter log:

can't read SMFIC_BODYEOB reply packet header

Opendmarc (Version 1.4.0~beta1+dfsg-6+deb11u1) has logged:

failed to parse authentication-results: header field

This message was sent from xxx.outbound.protection.outlook.com. The same error occurred on multiple attempts to deliver this email.

We temporary suspended the milter result in case of an error. Using

"RejectFailures true"

did not bypass the problem.

fbett avatar Apr 13 '22 12:04 fbett

I am running into the same issue and from what I can see, it affects only certain senders (most of them seem to be using Exchange Online). Maybe it is caused by some of the headers Microsoft adds to the message or the double-DKIM signatures of outbound.protection.outlook.com?

ronnybremer avatar Sep 26 '22 11:09 ronnybremer

Ironically despite running Postfix, I'm seeing this in announce messages from the Postfix Announce mailing list:

Mar 9 16:41:10 tornado.reub.net postfix/cleanup[7072]: warning: milter inet:localhost:8893: can't read SMFIC_BODYEOB reply packet header: Application error Mar 9 16:41:10 tornado.reub.net postfix/cleanup[7072]: 4PXJ2D5LCvz6xr6: milter-reject: END-OF-MESSAGE from list.sys4.de[2a03:4000:10:51d:b8ce:63ff:feca:a5a0]: 4.7.1 Service unavailable - try again later; from=[email protected] to=[email protected] proto=ESMTP helo=<list.sys4.de>

And it dies like this:

Mar 9 16:41:10 tornado.reub.net kernel: opendmarc[7147]: segfault at 0 ip 00007fe74a4b44f0 sp 00007fe7492691b8 error 4 in libbsd.so.0.11.7[7fe74a4ac000+c000] likely on CPU 1 (core 0, socket 1)

It's killing opendmarc every time it tries to send a message to me which then causes all sorts of problems because with the milter dead - everything else then starts being deferred.

reubenfarrelly avatar Mar 09 '23 06:03 reubenfarrelly

Possible fix #183

fbett avatar Mar 09 '23 07:03 fbett