Mercurial > dnsbl
changeset 181:cb5c0d7ec451
embedded dcc filtering
author | carl |
---|---|
date | Sat, 06 Oct 2007 12:30:48 -0700 |
parents | 7a722f482bfb |
children | 2b06183b9b25 |
files | dnsblnogrey src/dnsbl.cpp |
diffstat | 2 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dnsblnogrey Sat Oct 06 12:30:48 2007 -0700 @@ -0,0 +1,8 @@ +#this file should be moved to something like +#/var/dcc/userdirs/local/dnsblnogrey/whiteclnt +# +#we pass 'dnsblnogrey' as the local username to dccifd to disable +#greylisting for those recipients that don't want greylisting +# +# +option greylist-off
--- a/src/dnsbl.cpp Sat Oct 06 12:17:02 2007 -0700 +++ b/src/dnsbl.cpp Sat Oct 06 12:30:48 2007 -0700 @@ -1179,11 +1179,11 @@ // assert env_to not empty, it contains the // non-whitelisted folks that want content filtering int score = (priv.want_spamassassin) ? priv.assassin->mlfi_eom() : 0; - bool greylist = false; - int dccbulk = 0; - if (priv.want_dccgrey || priv.want_dccbulk) priv.dccifd->mlfi_eom(greylist, dccbulk); + bool grey = false; + int bulk = 0; + if (priv.want_dccgrey || priv.want_dccbulk) priv.dccifd->mlfi_eom(grey, bulk); - if (priv.want_dccgrey && greylist) { + if (priv.want_dccgrey && grey) { smfi_setreply(ctx, "452", "4.2.1", "temporary greylist embargoed"); rc = SMFIS_TEMPFAIL; } @@ -1196,7 +1196,7 @@ for (context_map::iterator i=priv.env_to.begin(); i!=priv.env_to.end(); i++) { char *rcpt = (*i).first; CONTEXT &con = *((*i).second); - if (!con.acceptable_content(*priv.memory, score, dccbulk, msg)) { + if (!con.acceptable_content(*priv.memory, score, bulk, msg)) { // bad html tags or excessive hosts or // high spam assassin score or dcc bulk threshold exceedeed smfi_delrcpt(ctx, rcpt);