fix if there is no ;

This commit is contained in:
biji 2019-01-29 18:00:56 +07:00 committed by GitHub
parent 12191656df
commit 423e87dcda
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';