Mercurial > dnsbl
comparison src/dnsbl.cpp @ 203:92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Document DCC greylisting and bulk detection usage. Fix DCC bulk
thresholds of many. Update spec file for fedora packaging.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 04 Mar 2008 21:42:51 -0800 |
parents | 688ec12a3c0c |
children | 4db1457cd11a |
comparison
equal
deleted
inserted
replaced
202:ae0585d64dd2 | 203:92a5c866bdfa |
---|---|
1107 if (st == black) { | 1107 if (st == black) { |
1108 // reject the recipient based on blacklisting either from or to | 1108 // reject the recipient based on blacklisting either from or to |
1109 smfi_setreply(ctx, "550", "5.7.1", "no such user"); | 1109 smfi_setreply(ctx, "550", "5.7.1", "no such user"); |
1110 return SMFIS_REJECT; | 1110 return SMFIS_REJECT; |
1111 } | 1111 } |
1112 if (ver && (st != white)) { | 1112 if (ver) { |
1113 // try to verify this from/to pair of addresses since it is not explicitly whitelisted | 1113 // try to verify this from/to pair of addresses even if it might be explicitly whitelisted |
1114 char *loto = to_lower_string(rcptaddr); | 1114 char *loto = to_lower_string(rcptaddr); |
1115 bool rc = ver->ok(priv.mailaddr, loto); | 1115 bool rc = ver->ok(priv.mailaddr, loto); |
1116 free(loto); | 1116 free(loto); |
1117 if (!rc) { | 1117 if (!rc) { |
1118 smfi_setreply(ctx, "550", "5.7.1", "no such user"); | 1118 smfi_setreply(ctx, "550", "5.7.1", "no such user"); |