X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fspf.c;h=1955b5d968cf7646142a0b7c665cf38f8c70dc82;hb=2dc4c388544fb06a476f6526a705e15984cf1aa5;hp=1aa68f18115f94aa451aee187446e0d3f12d681f;hpb=73ec116f6e17189e5a8b284ec9a4433a581adefc;p=user%2Fhenk%2Fcode%2Fexim.git 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; }