forked from evolix/ansible-roles
amavis: fix output result checking
This commit is contained in:
parent
1d06721b96
commit
357914b44e
|
@ -20,6 +20,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Fixed
|
### Fixed
|
||||||
* evoacme: better error when apache2ctl fails
|
* evoacme: better error when apache2ctl fails
|
||||||
* spamassassin: add missing right for amavis
|
* spamassassin: add missing right for amavis
|
||||||
|
* amavis: fix output result checking
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ $smtp->close();
|
||||||
|
|
||||||
print "$result\n";
|
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";
|
print "OK - All fine\n";
|
||||||
exit 0;
|
exit 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue