comparison src/context.cpp @ 455:48cfa55cd73b

add unsigned_black for enforcement of dmarc policy
author Carl Byington <carl@five-ten-sg.com>
date Tue, 05 Jun 2018 09:24:29 -0700
parents 8393ce4658cc
children ad05c61d6372
comparison
equal deleted inserted replaced
454:3fb2b1f81487 455:48cfa55cd73b
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 DKIMP dk = find_dkim_from(from); 1320 DKIMP dk = find_dkim_from(from);
1321 if (dk) { 1321 if (dk) {
1322 char buf[maxlen];
1323 snprintf(buf, sizeof(buf), "context %s found dkim from %s action %s", name, from, dk->action);
1324 my_syslog(queueid, buf);
1322 const char *st = dk->action; 1325 const char *st = dk->action;
1323 bool dmarc = false; 1326 bool dmarc = false;
1324 for (string_set::iterator s=signers.begin(); s!=signers.end(); s++) { 1327 for (string_set::iterator s=signers.begin(); s!=signers.end(); s++) {
1325 // signed by a white listed signer 1328 // signed by a white listed signer
1326 if ((st == token_signed_white) && in_signing_set(*s,dk->signer)) { 1329 if ((st == token_signed_white) && in_signing_set(*s,dk->signer)) {