comparison src/dnsbl.h @ 249:15bf4f68a0b2

Add dnswl support
author Carl Byington <carl@five-ten-sg.com>
date Sun, 08 Apr 2012 11:42:59 -0700
parents d8ee4c97b9ab
children 836b7f2357f9
comparison
equal deleted inserted replaced
248:b0738685bf51 249:15bf4f68a0b2
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 int32_t ip; // ip4 address of the smtp client 34 int32_t 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_black; // map of dnsblp to result of (ip listed on that dnsbl)
37 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl)
37 // message specific data 38 // message specific data
38 const char *mailaddr; // envelope from value 39 const char *mailaddr; // envelope from value
39 const char *queueid; // sendmail queue id 40 const char *queueid; // sendmail queue id
40 const char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits 41 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 42 const char *client_name; // fully qualified host name of the smtp client