added support for AMaViS Module Mail::SPF #419

This commit is contained in:
Jordi Sanfeliu 2022-04-26 16:11:29 +02:00
parent b0861ea12c
commit 946f6763e5
1 changed files with 12 additions and 0 deletions

View File

@ -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/) {