Mercurial > dnsbl
diff src/dnsbl.cpp @ 142:b82e00146672 stable-5-22
always log smth auth rate counts
author | carl |
---|---|
date | Thu, 28 Sep 2006 08:43:32 -0700 |
parents | 4028de9b46dd |
children | ecb40aa3eaa5 |
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; }