Mercurial > dnsbl
comparison src/dnsbl.cpp @ 348:8fe6d5120771
need to actually use the modified recipient in the verifier
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 23 Dec 2016 09:43:50 -0800 |
parents | 66969443a012 |
children | f4ca91f49cb6 |
comparison
equal
deleted
inserted
replaced
347:65e1489a3a67 | 348:8fe6d5120771 |
---|---|
1367 } | 1367 } |
1368 | 1368 |
1369 if (ver) { | 1369 if (ver) { |
1370 // try to verify this from/to pair of addresses even if it might be explicitly whitelisted | 1370 // try to verify this from/to pair of addresses even if it might be explicitly whitelisted |
1371 const char *loto = to_lower_string(rcptaddr, false); | 1371 const char *loto = to_lower_string(rcptaddr, false); |
1372 bool rc = ver->ok(priv.queueid, priv.mailaddr, rcptaddr); | 1372 bool rc = ver->ok(priv.queueid, priv.mailaddr, loto); |
1373 free((void*)loto); | 1373 free((void*)loto); |
1374 if (!rc) { | 1374 if (!rc) { |
1375 smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"no such user"); | 1375 smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"no such user"); |
1376 return SMFIS_REJECT; | 1376 return SMFIS_REJECT; |
1377 } | 1377 } |