[opendmarc-users] Missing dmarc results header on incoming mail

Juri Haberland juri at sapienti-sat.org
Fri Jul 14 13:41:31 PDT 2017


On 14.07.2017 18:26, Dominic Raferd wrote:
> On 14 July 2017 at 16:15, Juri Haberland <juri at sapienti-sat.org> wrote:

>> # define DMARC_POLICY_SPF_OUTCOME_NONE          (0)
>> # define DMARC_POLICY_SPF_OUTCOME_PASS          (1)
>> # define DMARC_POLICY_SPF_OUTCOME_FAIL          (2)
>> # define DMARC_POLICY_SPF_OUTCOME_TMPFAIL       (3)
>> # define DMARC_POLICY_SPF_ALIGNMENT_PASS        (4)
>> # define DMARC_POLICY_SPF_ALIGNMENT_FAIL        (5)
>>
>> # define DMARC_POLICY_DKIM_OUTCOME_NONE         (0)
>> # define DMARC_POLICY_DKIM_OUTCOME_PASS         (1)
>> # define DMARC_POLICY_DKIM_OUTCOME_FAIL         (2)
>> # define DMARC_POLICY_DKIM_OUTCOME_TMPFAIL      (3)
>> # define DMARC_POLICY_DKIM_ALIGNMENT_PASS       (4)
>> # define DMARC_POLICY_DKIM_ALIGNMENT_FAIL       (5)
> 
> 
> ​I am trying this now, but seeing different results. Here is an example:

> History file entry:
> ​job 2AF7D602F7
> reporter mydomain.dom
> received 1500049241
> ipaddr 94.236.85.20
> from email.newcastleinternational.co.uk
> mfrom email.newcastleinternational.co.uk
> spf 0
> dkim email.newcastleinternational.co.uk 0
> pdomain email.newcastleinternational.co.uk
> policy 15
> rua mailto:dmarcreporting at pure360.com
> pct 100
> adkim 114
> aspf 114
> p 110
> sp 0
> align_dkim 4
> align_spf 4
> action 2
> 
> I note that both 'spf' and 'dkim' lines show value 0.​

Sorry, the above values are for align_dkim and align_spf.
For spf and dkim the following values are used:

#define ARES_RESULT_UNDEFINED   (-1)
#define ARES_RESULT_PASS        0
#define ARES_RESULT_UNUSED      1
#define ARES_RESULT_SOFTFAIL    2
#define ARES_RESULT_NEUTRAL     3
#define ARES_RESULT_TEMPERROR   4
#define ARES_RESULT_PERMERROR   5
#define ARES_RESULT_NONE        6
#define ARES_RESULT_FAIL        7
#define ARES_RESULT_POLICY      8
#define ARES_RESULT_NXDOMAIN    9
#define ARES_RESULT_SIGNED      10
#define ARES_RESULT_UNKNOWN     11
#define ARES_RESULT_DISCARD     12

So, both are "pass" in your case.

Just for the record:
adkim/aspf value 114 is ASCII 'r' for relaxed policy; 115/'s' for strict is
another possible value.

For more insights see the opendmarc-report script or in the source code the
files opendmarc/opendmarc-ar.h and libopendmarc/dmarc.h.


  Juri


More information about the opendmarc-users mailing list