diff src/dnsbl.cpp @ 344:891281cb6d3d

send the original recipient address to the verify server, not the srs/pvrs unwrapped version
author Carl Byington <carl@five-ten-sg.com>
date Fri, 23 Dec 2016 08:17:18 -0800
parents 6d27b4f45799
children 66969443a012
line wrap: on
line diff
--- a/src/dnsbl.cpp	Fri Dec 23 07:23:54 2016 -0800
+++ b/src/dnsbl.cpp	Fri Dec 23 08:17:18 2016 -0800
@@ -1365,9 +1365,7 @@
 
     if (ver) {
         // try to verify this from/to pair of addresses even if it might be explicitly whitelisted
-        const char *loto = to_lower_string(rcptaddr);
-        bool rc = ver->ok(priv.queueid, priv.mailaddr, loto);
-        free((void*)loto);
+        bool rc = ver->ok(priv.queueid, priv.mailaddr, rcptaddr);
         if (!rc) {
             smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"no such user");
             return SMFIS_REJECT;