Merge pull request #65 from biji/patch-1

fix parsing barracuda rbl
This commit is contained in:
Gilles Darold 2019-01-29 12:22:24 +01:00 committed by GitHub
commit 54ea1fd12d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1413,7 +1413,7 @@ sub parse_sendmail
$reject =~ s/^\s+//;
$reject =~ s/[\s;]+$//;
# Test PostFix DNSBL spam scan
if ($reject =~ /(?:client|helo) .* (blocked using .*)/i) {
if ($reject =~ /(?:client|helo) (?:.*?) (blocked using [^;]+)/i) {
my $spamdetail = $1;
$SPAM{$host}{$id}{relay} = $relay;
$SPAM{$host}{$id}{rule} = 'reject';