Mercurial > dnsbl
changeset 142:b82e00146672 stable-5-22
always log smth auth rate counts
author | carl |
---|---|
date | Thu, 28 Sep 2006 08:43:32 -0700 |
parents | 6256cab02248 |
children | ecb40aa3eaa5 |
files | src/dnsbl.cpp |
diffstat | 1 files changed, 7 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dnsbl.cpp Wed Sep 27 08:11:38 2006 -0700 +++ b/src/dnsbl.cpp Thu Sep 28 08:43:32 2006 -0700 @@ -961,20 +961,18 @@ if (priv.authenticated) { int c = incr_rcpt_count(priv.authenticated); int l = dc.default_context->find_rate(priv.authenticated); - if (c > l) { - smfi_setreply(ctx, "550", "5.7.1", "recipient rate limit exceeded"); - return SMFIS_REJECT; - } - else { if (debug_syslog > 1) { char buf[maxlen]; char msg[maxlen]; snprintf(msg, sizeof(msg), "authenticated id %s (%d recipients, %d limit)", priv.authenticated, c, l); my_syslog(&priv, msg); } + if (c > l) { + smfi_setreply(ctx, "550", "5.7.1", "recipient rate limit exceeded"); + return SMFIS_REJECT; + } st = white; } - } else if (fromvalue == token_black) { st = black; }