comparison src/context.h @ 268:f941563c2a95 stable-6-0-34

Add require_rdns checking
author Carl Byington <carl@five-ten-sg.com>
date Wed, 22 May 2013 11:29:44 -0700
parents be939802c64e
children f92f24950bd3
comparison
equal deleted inserted replaced
267:db12f6028f8b 268:f941563c2a95
169 bool host_random; // pick a random selection of host names rather than error for excessive hosts 169 bool host_random; // pick a random selection of host names rather than error for excessive hosts
170 int tag_limit; // limit on bad html tags 170 int tag_limit; // limit on bad html tags
171 const char * tag_limit_message; // error message for excessive bad html tags 171 const char * tag_limit_message; // error message for excessive bad html tags
172 int spamassassin_limit; // max score from spamassassin 172 int spamassassin_limit; // max score from spamassassin
173 bool require_match; // require matching context filtering context 173 bool require_match; // require matching context filtering context
174 bool require_rdns; // require proper rdns on client ip
174 bool dcc_greylist; // should we do dcc greylisting? 175 bool dcc_greylist; // should we do dcc greylisting?
175 int dcc_bulk_threshold; // off = 0, many = 1000 176 int dcc_bulk_threshold; // off = 0, many = 1000
176 dnsblp_map dnsbl_names; // name to dnsbl mapping for lists that are available in this context and children 177 dnsblp_map dnsbl_names; // name to dnsbl mapping for lists that are available in this context and children
177 dnsblp_list dnsbl_list; // list of dnsbls to be used in this context 178 dnsblp_list dnsbl_list; // list of dnsbls to be used in this context
178 bool dnsbl_list_parsed; // true iff we have actually parsed a dnsbl_list 179 bool dnsbl_list_parsed; // true iff we have actually parsed a dnsbl_list
252 253
253 bool set_generic(const char *regx, const char *msg); 254 bool set_generic(const char *regx, const char *msg);
254 const char* generic_match(const char *client); 255 const char* generic_match(const char *client);
255 256
256 void set_require(bool r) {require_match = r; }; 257 void set_require(bool r) {require_match = r; };
258 void set_requirerdns(bool r) {require_rdns = r; };
257 void set_grey(bool g) {dcc_greylist = g; }; 259 void set_grey(bool g) {dcc_greylist = g; };
258 void set_bulk(int b) {dcc_bulk_threshold = b; }; 260 void set_bulk(int b) {dcc_bulk_threshold = b; };
259 261
260 bool get_content_filtering() {return content_filtering; }; 262 bool get_content_filtering() {return content_filtering; };
261 bool get_require() {return content_filtering && require_match; }; 263 bool get_require() {return content_filtering && require_match; };
264 bool get_requirerdns() {return require_rdns; };
262 bool get_grey() {return content_filtering && dcc_greylist; }; 265 bool get_grey() {return content_filtering && dcc_greylist; };
263 int get_bulk() {return (content_filtering) ? dcc_bulk_threshold : 0;}; 266 int get_bulk() {return (content_filtering) ? dcc_bulk_threshold : 0;};
264 int get_host_limit() {return (content_filtering) ? host_limit : 0;}; 267 int get_host_limit() {return (content_filtering) ? host_limit : 0;};
265 bool get_host_random() {return (content_filtering) ? host_random : 0;}; 268 bool get_host_random() {return (content_filtering) ? host_random : 0;};
266 int get_spamassassin_limit() {return (content_filtering) ? spamassassin_limit : 0;}; 269 int get_spamassassin_limit() {return (content_filtering) ? spamassassin_limit : 0;};
336 extern const char *token_ok2; 339 extern const char *token_ok2;
337 extern const char *token_on; 340 extern const char *token_on;
338 extern const char *token_rate; 341 extern const char *token_rate;
339 extern const char *token_rbrace; 342 extern const char *token_rbrace;
340 extern const char *token_require; 343 extern const char *token_require;
344 extern const char *token_requirerdns;
341 extern const char *token_semi; 345 extern const char *token_semi;
342 extern const char *token_soft; 346 extern const char *token_soft;
343 extern const char *token_spamassassin; 347 extern const char *token_spamassassin;
344 extern const char *token_substitute; 348 extern const char *token_substitute;
345 extern const char *token_tld; 349 extern const char *token_tld;