summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2019-10-28 22:39:24 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2019-10-28 22:39:24 +0100
commit05e4f4dea8e993a6ad0f4e6cba092226155bc6e1 (patch)
tree01147645f085ac83baa383513cdcd2e15dd30216 /src
parent83d18f011e399f82d9583abe20d9c5dc850778c2 (diff)
SPF: fix the explanation URLexim-4.93-RC1
But - I'm not sure if the /Why? API still works as expected. Needs further testing
Diffstat (limited to 'src')
-rw-r--r--src/src/spf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/src/spf.c b/src/src/spf.c
index 1aa68f181..1955b5d96 100644
--- a/src/src/spf.c
+++ b/src/src/spf.c
@@ -165,6 +165,12 @@ if (!(spf_server = SPF_server_new_dns(dc, debug)))
DEBUG(D_receive) debug_printf("spf: SPF_server_new() failed.\n");
return FALSE;
}
+ /* Quick hack to override the outdated explanation URL.
+ See https://www.mail-archive.com/mailop@mailop.org/msg08019.html */
+ SPF_server_set_explanation(spf_server, "Please%_see%_http://www.open-spf.org/Why?id=%{S}&ip=%{C}&receiver=%{R}", &spf_response);
+ if (SPF_response_errcode(spf_response) != SPF_E_SUCCESS)
+ log_write(0, LOG_MAIN|LOG_PANIC_DIE, "%s", SPF_strerror(SPF_response_errcode(spf_response)));
+
return TRUE;
}