comparison src/dnsbl.cpp @ 325:28b6e0d97c5b

add dkim white/black listing
author Carl Byington <carl@five-ten-sg.com>
date Sat, 17 Dec 2016 21:59:23 -0800
parents a6de27b0a1e9
children 5e4b5540c8cc
comparison
equal deleted inserted replaced
324:b6f173ac5209 325:28b6e0d97c5b
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); 1585 snprintf(buf, sizeof(buf), "acceptable content from %s signer %s", (priv.fromaddr) ? priv.fromaddr : token_asterisk, (priv.dkim_signer) ? priv.dkim_signer : token_asterisk);
1586 my_syslog(&priv, buf); 1586 my_syslog(&priv, buf);
1587 1587
1588 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++) {
1589 const char *rcpt = (*i).first; 1589 const char *rcpt = (*i).first;
1590 CONTEXT &con = *((*i).second); 1590 CONTEXT &con = *((*i).second);