Mercurial > dnsbl
diff src/dnsbl.cpp @ 338:f375a67ee516
set st in all paths; missing +1 to avoid lookup starting with @
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 20 Dec 2016 17:21:26 -0800 |
parents | d68fda9be1c1 |
children | be776a246f97 |
line wrap: on
line diff
--- a/src/dnsbl.cpp Tue Dec 20 17:13:48 2016 -0800 +++ b/src/dnsbl.cpp Tue Dec 20 17:21:26 2016 -0800 @@ -1296,9 +1296,10 @@ // we have a dkim requirement for that domain. const char *domain = strchr(priv.mailaddr, '@'); if (domain) { - DKIMP dk = con.find_dkim_from(domain); + DKIMP dk = con.find_dkim_from(domain+1); if (dk && (dk->action == token_require_signed)) { my_syslog(&priv, "dkim require_signed overrides envelope from whitelist"); + st = oksofar; } else st = white; }