Mercurial > dnsbl
comparison src/dnsbl.h @ 236:c0d2e99c0a1d
Add surbl checks on the smtp helo value, client reverse dns name, and mail from domain name
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Sep 2009 11:36:15 -0700 |
parents | ad38575e98ca |
children | 7b818a4e21a4 |
comparison
equal
deleted
inserted
replaced
235:e6c66640f6f9 | 236:c0d2e99c0a1d |
---|---|
30 // connection specific data | 30 // connection specific data |
31 CONFIG *pc; // global filtering configuration | 31 CONFIG *pc; // global filtering configuration |
32 int fd; // to talk to dns resolver process | 32 int fd; // to talk to dns resolver process |
33 bool err; // did we get any errors on the resolver socket? | 33 bool err; // did we get any errors on the resolver socket? |
34 int ip; // ip4 address of the smtp client | 34 int ip; // ip4 address of the smtp client |
35 const char *helo; // helo from client | 35 const char *helo; // helo from client |
36 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl) | 36 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl) |
37 // message specific data | 37 // message specific data |
38 const char *mailaddr; // envelope from value | 38 const char *mailaddr; // envelope from value |
39 const char *queueid; // sendmail queue id | 39 const char *queueid; // sendmail queue id |
40 const char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits | 40 const char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits |
41 const char *client_name; // fully qualified host name of the smtp client | 41 const char *client_name; // fully qualified host name of the smtp client |
42 bool helo_uribl; // helo value on uribl | |
43 bool client_uribl; // client_name on uribl | |
44 bool from_uribl; // envelope from value on uribl | |
42 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails | 45 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails |
43 bool only_whites; // every recipient is whitelisted? | 46 bool only_whites; // every recipient is whitelisted? |
44 bool want_spamassassin; // at least one non-whitelisted recipient has a non zero spamassassin limit | 47 bool want_spamassassin; // at least one non-whitelisted recipient has a non zero spamassassin limit |
45 bool want_dccgrey; // at least one non-whitelisted recipient wants dcc greylisting | 48 bool want_dccgrey; // at least one non-whitelisted recipient wants dcc greylisting |
46 bool want_dccbulk; // at least one non-whitelisted recipient wants dcc bulk filtering | 49 bool want_dccbulk; // at least one non-whitelisted recipient wants dcc bulk filtering |