[opendmarc-users] Problem parsing headers added by enma

Cristian Mammoli c.mammoli at apra.it
Sun Nov 10 08:37:03 PST 2013


Il 08/11/2013 19:57, Andreas Schulze ha scritto:

> # echo 'TrustedAuthservIDs mail.bzone.it' > /tmp/conf
>
> # opendmarc -v -v -v -t /tmp/mail -c /tmp/conf
> opendmarc: mlfi_connect() returned SMFIS_CONTINUE
> opendmarc: /tmp/mail: mlfi_envfrom() returned SMFIS_CONTINUE
> opendmarc: /tmp/mail: line 1: mlfi_header() returned SMFIS_CONTINUE
> opendmarc: /tmp/mail: line 4: mlfi_header() returned SMFIS_CONTINUE
> ### INSHEADER: idx=1 hname='Authentication-Results' hvalue='dmarc; dmarc=pass header.from=apra.it'
> opendmarc: /tmp/mail: mlfi_eom() returned SMFIS_ACCEPT
> opendmarc: mlfi_close() returned SMFIS_CONTINUE
>
>
> Is it possible that the AR header is not inserted at the time opendmarc check the message but later?

I starting to suppose that, but the milters in main.cf are in the 
correct order:
enma -> opendmarc -> clamd -> spamassassin

This is a maillog snippet:
[root at mail cur]# tailf /var/log/maillog|egrep -i '(opendmarc|enma)'
Nov 10 17:29:27 mail postfix/qmgr[27447]: 9AE6714C0168: 
from=<opendmarc at bzone.it>, size=2519, nrcpt=1 (queue active)

Nov 10 17:29:37 mail enma[25337]: DKIM-Signature[1]: domain=apra.it, 
selector=default, pubkeyalg=rsa, digestalg=sha1, hdrcanon=relaxed, 
bodycanon=simple

Nov 10 17:29:37 mail enma[25337]: [09C8414C0112] [SPF-auth] 
ipaddr=89.97.236.28, eval=smtp.mailfrom, helo=mail.apra.it, 
envfrom=<c.mammoli at apra.it>, score=pass

Nov 10 17:29:37 mail enma[25337]: [09C8414C0112] [SIDF-auth] 
ipaddr=89.97.236.28, header.From=c.mammoli at apra.it, score=pass

Nov 10 17:29:37 mail enma[25337]: [09C8414C0112] [DKIM-auth] 
header.i=@apra.it, score=pass

Nov 10 17:29:37 mail enma[25337]: [09C8414C0112] [DKIM-ADSP-auth] 
header.From=c.mammoli at apra.it, score=pass

Nov 10 17:29:37 mail postfix/pickup[27446]: 2A9FF14C0168: uid=489 
from=<opendmarc>
Nov 10 17:29:37 mail opendmarc[24575]: 09C8414C0112: apra.it fail

But if I run opendmarc -t like you you did on the same mail after delivery:

[root at mail cur]# opendmarc -v -v -v -v -t aas
opendmarc: mlfi_connect() returned SMFIS_CONTINUE
opendmarc: aas: mlfi_envfrom() returned SMFIS_CONTINUE
opendmarc: aas: line 1: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 2: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 3: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 6: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 7: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 8: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 9: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 10: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 13: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 14: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 15: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 18: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 19: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 20: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 21: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 22: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 23: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 24: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 25: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 26: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 27: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 28: mlfi_header() returned SMFIS_CONTINUE
opendmarc: aas: line 31: mlfi_header() returned SMFIS_CONTINUE
### INSHEADER: idx=1 hname='Authentication-Results' 
hvalue='mail.bzone.it; dmarc=pass header.from=apra.it'
opendmarc: aas: mlfi_eom() returned SMFIS_ACCEPT
opendmarc: mlfi_close() returned SMFIS_CONTINUE

> thats fine. dmarc pass as long dkim OR spf pass.
>

Didn't know that, thanks



More information about the opendmarc-users mailing list