Menu

#120 Integrated SPF result error?

1.3.1
closed
None
2017-03-04
2015-03-20
No

I am wondering if we don't have a bug here, in opendmarc/opendmarc.c (around line 2529) in mlfi_eom:

            ostatus = opendmarc_policy_store_spf(cc->cctx_dmarc,
                                                         use_domain,
                                                         spf_result,
                                                         spf_mode,
                                                         human);
            switch (spf_mode)
            {
                case DMARC_POLICY_SPF_OUTCOME_PASS:
                    pass_fail = "pass";
                    dfc->mctx_spfresult = ARES_RESULT_PASS;
                    break;

Shouldn't the switch be with spf_result, as spf_mode is either DMARC_POLICY_SPF_ORIGIN_MAILFROM or DMARC_POLICY_SPF_ORIGIN_HELO.

Would also explain why I have so many spf=pass in my results when I would not expect this result.

Discussion

  • A. Schulze

    A. Schulze - 2015-03-22

    I have exact the same patch since 1.3.0
    But for unknown reasons I never opened a ticket, sorry

     
  • t_mk1

    t_mk1 - 2015-04-23

    Patch from Andreas Schulze

     
  • Bryan Costales

    Bryan Costales - 2015-05-13
    • status: open --> accepted
    • assigned_to: Bryan Costales
     
  • Murray S. Kucherawy

    • assigned_to: Bryan Costales --> Murray S. Kucherawy
     
  • Murray S. Kucherawy

    Patch applied.

     
  • Murray S. Kucherawy

    • status: accepted --> closed
     
  • Murray S. Kucherawy

    Fixed in 1.3.2.

     

Log in to post a comment.

MongoDB Logo MongoDB