comparison src/dnsbl.h @ 167:9b129ed78d7d stable-6-0-6

actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
author carl
date Mon, 27 Aug 2007 20:49:19 -0700
parents 97d7da45fe2a
children 6bac960af6b4
comparison
equal deleted inserted replaced
166:7161d8451fcf 167:9b129ed78d7d
21 // mail filter private data, held for us by sendmail 21 // mail filter private data, held for us by sendmail
22 // 22 //
23 struct mlfiPriv 23 struct mlfiPriv
24 { 24 {
25 // connection specific data 25 // connection specific data
26 CONFIG *pc; // global filtering configuration 26 CONFIG *pc; // global filtering configuration
27 int fd; // to talk to dns resolvers process 27 int fd; // to talk to dns resolvers process
28 bool err; // did we get any errors on the resolver socket? 28 bool err; // did we get any errors on the resolver socket?
29 int ip; // ip4 address of the smtp client 29 int ip; // ip4 address of the smtp client
30 char *helo; // helo from client 30 char *helo; // helo from client
31 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl) 31 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl)
32 // message specific data 32 // message specific data
33 char *mailaddr; // envelope from value 33 char *mailaddr; // envelope from value
34 char *queueid; // sendmail queue id 34 char *queueid; // sendmail queue id
35 char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits 35 char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits
36 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails 36 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails
37 bool only_whites; // every recipient is whitelisted? 37 bool only_whites; // every recipient is whitelisted?
38 context_map env_to; // map each non-whitelisted recipient to their filtering context 38 bool want_spamassassin; // at least one non-whitelisted recipients has a non zero spamassassin limit
39 recorder *memory; // memory for the content scanner 39 context_map env_to; // map each non-whitelisted recipient to their filtering context
40 url_scanner *scanner; // object to handle body scanning 40 recorder *memory; // memory for the content scanner
41 url_scanner *scanner; // object to handle body scanning
41 char *content_suffix; // for url body filtering based on ip addresses of hostnames in the body 42 char *content_suffix; // for url body filtering based on ip addresses of hostnames in the body
42 char *content_message; // "" 43 char *content_message; // ""
43 char *uribl_suffix; // for uribl body filtering based on hostnames in the body 44 char *uribl_suffix; // for uribl body filtering based on hostnames in the body
44 char *uribl_message; // "" 45 char *uribl_message; // ""
45 string_set *content_host_ignore; // "" 46 string_set *content_host_ignore; // ""