diff src/dnsbl.cpp @ 465:79e944269c0b

SA needs original rfc5321 envelope from to do proper spf checking. Remove some debug code.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 25 Apr 2019 09:35:53 -0700
parents 6c1c2bd9fb54
children f5b394bec28c
line wrap: on
line diff
--- a/src/dnsbl.cpp	Sun Mar 10 08:49:27 2019 -0700
+++ b/src/dnsbl.cpp	Thu Apr 25 09:35:53 2019 -0700
@@ -1330,7 +1330,8 @@
         }
     }
     if (spamc != spamc_empty) {
-        priv.assassin  = new SpamAssassin(&priv, priv.ip, priv.helo, priv.mailaddr, priv.queueid);
+        // SA needs original address to do proper SPF checking
+        priv.assassin  = new SpamAssassin(&priv, priv.ip, priv.helo, priv.origaddr, priv.queueid);
     }
     if (dccifd_port) {
         priv.dccifd = new DccInterface(dccifd_port, &priv, priv.ip, priv.helo, priv.mailaddr);