comparison 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
comparison
equal deleted inserted replaced
343:d0d1391a57a0 344:891281cb6d3d
1363 return SMFIS_REJECT; 1363 return SMFIS_REJECT;
1364 } 1364 }
1365 1365
1366 if (ver) { 1366 if (ver) {
1367 // try to verify this from/to pair of addresses even if it might be explicitly whitelisted 1367 // try to verify this from/to pair of addresses even if it might be explicitly whitelisted
1368 const char *loto = to_lower_string(rcptaddr); 1368 bool rc = ver->ok(priv.queueid, priv.mailaddr, rcptaddr);
1369 bool rc = ver->ok(priv.queueid, priv.mailaddr, loto);
1370 free((void*)loto);
1371 if (!rc) { 1369 if (!rc) {
1372 smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"no such user"); 1370 smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"no such user");
1373 return SMFIS_REJECT; 1371 return SMFIS_REJECT;
1374 } 1372 }
1375 } 1373 }