comparison src/dnsbl.h @ 322:9f8411f3919c

add dkim white/black listing
author Carl Byington <carl@five-ten-sg.com>
date Sat, 17 Dec 2016 17:04:52 -0800
parents e172dc10fe24
children 5e4b5540c8cc
comparison
equal deleted inserted replaced
321:e172dc10fe24 322:9f8411f3919c
18 #define dccbulk 1000 18 #define dccbulk 1000
19 19
20 class recorder; 20 class recorder;
21 class url_scanner; 21 class url_scanner;
22 22
23
23 //////////////////////////////////////////////// 24 ////////////////////////////////////////////////
24 // mail filter private data, held for us by sendmail 25 // mail filter private data, held for us by sendmail
25 // 26 //
26 struct mlfiPriv 27 struct mlfiPriv
27 { 28 {
38 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl) 39 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl)
39 // message specific data 40 // message specific data
40 const char *mailaddr; // envelope from value 41 const char *mailaddr; // envelope from value
41 const char *fromaddr; // header from value, set by mlfi_header() 42 const char *fromaddr; // header from value, set by mlfi_header()
42 int header_count; // count of headers already seen 43 int header_count; // count of headers already seen
44 bool dkim_ok; // ok to proceed with dkim checking
45 const char *dkim_signer; // non null if message was validly signed
43 const char *queueid; // sendmail queue id 46 const char *queueid; // sendmail queue id
44 const char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits 47 const char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits
45 const char *client_name; // fully qualified host name of the smtp client xxx [ip.ad.dr.es] (may be forged) 48 const char *client_name; // fully qualified host name of the smtp client xxx [ip.ad.dr.es] (may be forged)
46 char *client_dns_name; // fully qualified host name of the smtp client xxx 49 char *client_dns_name; // fully qualified host name of the smtp client xxx
47 bool client_dns_forged; // rdns mismatch 50 bool client_dns_forged; // rdns mismatch