From 88733f3d0ed44c2b7559bf037db680d081d61394 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Mon, 27 Jun 2022 14:31:00 -0400 Subject: [PATCH] Ignore opendkim message We only care about messages regarding the validity of incoming mail. --- management/reporting/capture/mail/PostfixLogHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/reporting/capture/mail/PostfixLogHandler.py b/management/reporting/capture/mail/PostfixLogHandler.py index 72c382cf..17a12b02 100644 --- a/management/reporting/capture/mail/PostfixLogHandler.py +++ b/management/reporting/capture/mail/PostfixLogHandler.py @@ -146,7 +146,7 @@ class PostfixLogHandler(CommonHandler): self.re_opendkim_ssl = re.compile('opendkim\[\d+\]: ([A-F0-9]+):(.*) SSL ?(.*)') # 1=postfix_msg_id # 2=error-msg - self.re_opendkim_error = re.compile('opendkim\[\d+\]: ([A-F0-9]+): (.*)') + self.re_opendkim_error = re.compile('opendkim\[\d+\]: ([A-F0-9]+): (?!DKIM-Signature field added)(.*)') # 7. opendmarc: POSTFIX-MSG-ID: result: [pass/fail] # Dec 6 08:21:33 mail opendmarc[729]: DD95A1F796 ignoring Authentication-Results at 18 from mx.google.com