changeset 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 3fb2b1f81487
children 2cf7183a911c
files src/context.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/context.cpp	Mon Jun 04 19:13:28 2018 -0700
+++ b/src/context.cpp	Tue Jun 05 09:24:29 2018 -0700
@@ -1319,6 +1319,9 @@
 
         DKIMP dk = find_dkim_from(from);
         if (dk) {
+            char buf[maxlen];
+            snprintf(buf, sizeof(buf), "context %s found dkim from %s action %s", name, from, dk->action);
+            my_syslog(queueid, buf);
             const char *st = dk->action;
             bool dmarc = false;
             for (string_set::iterator s=signers.begin(); s!=signers.end(); s++) {