From 946f6763e5f5f89cf27ab881c289b0a812bf1ac9 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Tue, 26 Apr 2022 16:11:29 +0200 Subject: [PATCH] added support for AMaViS Module Mail::SPF #419 --- lib/mail.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/mail.pm b/lib/mail.pm index 7027939..0ad023d 100644 --- a/lib/mail.pm +++ b/lib/mail.pm @@ -429,6 +429,18 @@ sub mail_update { # There one line per spf check, so it gets here, we'll consider it is a softfail $spf_softfail++; } + # amavis Module Mail::SPF + } elsif(/policyd-spf/) { + if(/: Pass/) { + $spf_pass++; + } elsif(/: None/ || / SPF skipped/) { + $spf_none++; + } elsif(/ 550 /) { + $spf_fail++; + } else { + # /: Softfail/ or anything else, so consider as a soft fail + $spf_softfail++; + } # for other SPF handlers (smf-spf) } else { if(/ SPF none/) {