amavis: fix output result checking

This commit is contained in:
Victor LABORIE 2018-10-11 17:17:50 +02:00
parent 1d06721b96
commit 357914b44e
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ The **patch** part changes incrementally at each release.
### Fixed
* evoacme: better error when apache2ctl fails
* spamassassin: add missing right for amavis
* amavis: fix output result checking
### Security

View File

@ -65,7 +65,7 @@ $smtp->close();
print "$result\n";
if ($result =~/2.5.0 Ok, id=[^,]+, BOUNCE/) {
if ($result =~/2.7.0 Ok, discarded, id=[^,]+ - INFECTED: Eicar-Test-Signature/) {
print "OK - All fine\n";
exit 0;
} else {