comparison src/dnsbl.cpp @ 323:a6de27b0a1e9

add dkim white/black listing
author Carl Byington <carl@five-ten-sg.com>
date Sat, 17 Dec 2016 18:03:59 -0800
parents 9f8411f3919c
children 28b6e0d97c5b
comparison
equal deleted inserted replaced
322:9f8411f3919c 323:a6de27b0a1e9
1580 char buf[maxlen]; 1580 char buf[maxlen];
1581 string msg; 1581 string msg;
1582 string_set alive; 1582 string_set alive;
1583 bool random = false; 1583 bool random = false;
1584 int limit = 0; 1584 int limit = 0;
1585 snprintf(buf, sizeof(buf), "acceptable content from %s signer %s", (priv.dkim_signer) ? priv.dkim_signer : token_asterisk, (priv.fromaddr) ? priv.fromaddr : token_asterisk);
1586 my_syslog(&priv, buf);
1587
1585 for (context_map::iterator i=priv.env_to.begin(); i!=priv.env_to.end(); i++) { 1588 for (context_map::iterator i=priv.env_to.begin(); i!=priv.env_to.end(); i++) {
1586 const char *rcpt = (*i).first; 1589 const char *rcpt = (*i).first;
1587 CONTEXT &con = *((*i).second); 1590 CONTEXT &con = *((*i).second);
1588 if (!con.acceptable_content(*priv.memory, score, bulk, priv.dkim_signer, priv.fromaddr, msg)) { 1591 if (!con.acceptable_content(*priv.memory, score, bulk, priv.dkim_signer, priv.fromaddr, msg)) {
1589 // bad html tags or excessive hosts or 1592 // bad html tags or excessive hosts or