Skip to content

Instantly share code, notes, and snippets.

View codingberg's full-sized avatar

Just a Coder codingberg

View GitHub Profile
@codingberg
codingberg / opendmarc-fix-spf-always-pass-auth-header.patch
Created March 7, 2016 13:13
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)
{