Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingberg/b7c335580d2e9cd928f7 to your computer and use it in GitHub Desktop.
Save codingberg/b7c335580d2e9cd928f7 to your computer and use it in GitHub Desktop.
Fix: OpenDMARC always set spf=pass in Authentication-Results header
diff -Nurp opendmarc-1.3.1/opendmarc/opendmarc.c opendmarc/opendmarc/opendmarc.c
--- opendmarc-1.3.1/opendmarc/opendmarc.c 2015-02-23 21:31:51.000000000 +0100
+++ opendmarc/opendmarc/opendmarc.c 2016-03-02 21:46:15.673505269 +0100
@@ -2524,7 +2524,7 @@ mlfi_eom(SMFICTX *ctx)
spf_result,
spf_mode,
human);
- switch (spf_mode)
+ switch (spf_result)
{
case DMARC_POLICY_SPF_OUTCOME_PASS:
pass_fail = "pass";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment