comparison src/dnsbl.h @ 178:d6531c702be3

embedded dcc filtering
author carl
date Thu, 04 Oct 2007 22:45:21 -0700
parents a4d313c2460b
children 7a722f482bfb
comparison
equal deleted inserted replaced
177:a4d313c2460b 178:d6531c702be3
9 #ifndef dnsbl_include 9 #ifndef dnsbl_include
10 #define dnsbl_include 10 #define dnsbl_include
11 11
12 #include "context.h" 12 #include "context.h"
13 #include "spamass.h" 13 #include "spamass.h"
14 #include "dccifd.h"
14 15
15 extern int debug_syslog; 16 extern int debug_syslog;
16 17
17 class recorder; 18 class recorder;
18 class url_scanner; 19 class url_scanner;
34 char *queueid; // sendmail queue id 35 char *queueid; // sendmail queue id
35 char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits 36 char *authenticated; // client authenticated? if so, suppress all dnsbl checks, but check rate limits
36 char *client_name; // fully qualified host name of the smtp client 37 char *client_name; // fully qualified host name of the smtp client
37 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails 38 bool have_whites; // have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails
38 bool only_whites; // every recipient is whitelisted? 39 bool only_whites; // every recipient is whitelisted?
39 bool want_spamassassin; // at least one non-whitelisted recipients has a non zero spamassassin limit 40 bool want_spamassassin; // at least one non-whitelisted recipient has a non zero spamassassin limit
41 bool want_dccgrey; // at least one non-whitelisted recipient wants dcc greylisting
42 bool want_dccbulk; // at least one non-whitelisted recipient wants dcc bulk filtering
43 CONTEXT *content_context; // first non-whitelisted recipient with a content filtering context
40 context_map env_to; // map each non-whitelisted recipient to their filtering context 44 context_map env_to; // map each non-whitelisted recipient to their filtering context
41 recorder *memory; // memory for the content scanner 45 recorder *memory; // memory for the content scanner
42 url_scanner *scanner; // object to handle body scanning 46 url_scanner *scanner; // object to handle body scanning
43 char *content_suffix; // for url body filtering based on ip addresses of hostnames in the body 47 char *content_suffix; // for url body filtering based on ip addresses of hostnames in the body
44 char *content_message; // "" 48 char *content_message; // ""
45 char *uribl_suffix; // for uribl body filtering based on hostnames in the body 49 char *uribl_suffix; // for uribl body filtering based on hostnames in the body
46 char *uribl_message; // "" 50 char *uribl_message; // ""
47 string_set *content_host_ignore; // "" 51 string_set *content_host_ignore; // ""
48 SpamAssassin *assassin; 52 SpamAssassin *assassin;
53 DccInterface *dccifd;
49 54
50 55
51 mlfiPriv(); 56 mlfiPriv();
52 ~mlfiPriv(); 57 ~mlfiPriv();
53 void reset(bool final = false); // for a new message 58 void reset(bool final = false); // for a new message