Bug 1480861

Summary: amavisd default conf conflicts with nmh (scan)
Product: [Fedora] Fedora Reporter: Jos Vos <jos>
Component: amavisd-newAssignee: Juan Orti <jorti>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 26CC: jorti, perl-devel, steve, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: amavisd-new-2.11.0-9.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-03 22:19:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jos Vos 2017-08-12 12:27:23 UTC
Description of problem:

When besides amavisd-new also nmh is installed, the default amavisd.conf rule for Avast antivirus lets amavisd discard *any* incoming mail with:

    Blocked INFECTED () {DiscardedInbound,Quarantined}

This is because /bin/scan is called, which is part of nmh (as /usr/bin/scan).

Version-Release number of selected component (if applicable):

Any I know of.  I found the problem using EPEL 7 on CentOS 7, but the amavisd-new and nmh packages conflict everywhere the same way.

Solution:

Comment out the this line in /etc/amavisd/amavisd.conf:

    ['avast! Antivirus', '/bin/scan', '{}', [0], [1], qr/\t(.+)/m ],

Because the use of the Avast virusscanner is probably not very common, it would IMHO be a good idea to comment out this conflicting rule by default.  It costed me quite some time to find out why all my mails were discarded.

Comment 1 Fedora Update System 2017-08-25 09:15:19 UTC
amavisd-new-2.11.0-9.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b736e5e44e

Comment 2 Fedora Update System 2017-08-26 22:35:36 UTC
amavisd-new-2.11.0-9.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b736e5e44e

Comment 3 Fedora Update System 2017-09-03 22:19:12 UTC
amavisd-new-2.11.0-9.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.