Bug 906396 - Permission problems in amavis-new
Summary: Permission problems in amavis-new
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: amavisd-new
Version: el6
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michael Stahnke
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-31 15:05 UTC by Robert Moskowitz
Modified: 2014-07-16 03:51 UTC (History)
7 users (show)

Fixed In Version: amavisd-new-2.9.1-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-16 03:51:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Robert Moskowitz 2013-01-31 15:05:20 UTC
Description of problem:

The default directory for amavisd-new, /var/spool/amavis and subdirectories are created with permissions 700 instead of 750.  This results in clamd failing to place mail messages.  clamd is running under user clam which has been added to the amavis group.

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

amavisd-new-2.6.4-2.el6.noarch

How reproducible:

Very.

Steps to Reproduce:
1. install and configure MTA, amavis-new, clamd, etc.
2. run amavis test-message sample-spam=GTUBE-junk.txt
3. check /var/log/maillog and not error
  
Actual results:

Jan 30 14:18:37 test1 postfix/pickup[6682]: 6E6342A099C: uid=0 from=<root>
Jan 30 14:18:37 test1 postfix/cleanup[6807]: 6E6342A099C: message-id=<GTUBE1.1010101>
Jan 30 14:18:37 test1 postfix/qmgr[6683]: 6E6342A099C: from=<root.htt-consult.com>, size=947, nrcpt=1 (queue active)
Jan 30 14:18:37 test1 amavis[6755]: (06755-01) LMTP::10024 /var/spool/amavisd/tmp/amavis-20130130T141837-06755: <root.htt-consult.com> -> <faxit.com> SIZE=947 Received: from test1.test.htt-consult.com ([127.0.0.1]) by localhost (test1.test.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP for <faxit.com>; Wed, 30 Jan 2013 14:18:37 -0500 (EST)
Jan 30 14:18:37 test1 amavis[6755]: (06755-01) Checking: iVLEI2wVyvfc <root.htt-consult.com> -> <faxit.com>
Jan 30 14:18:37 test1 amavis[6755]: (06755-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/spool/amavisd/tmp/amavis-20130130T141837-06755/parts: lstat() failed: Permission denied. ERROR\n"
Jan 30 14:18:37 test1 amavis[6755]: (06755-01) (!)ClamAV-clamd av-scanner FAILED: CODE(0x9fff7b8) unexpected , output="/var/spool/amavisd/tmp/amavis-20130130T141837-06755/parts: lstat() failed: Permission denied. ERROR\n" at (eval 100) line 594.
Jan 30 14:18:37 test1 amavis[6755]: (06755-01) (!!)WARN: all primary virus scanners failed, considering backups
Jan 30 14:19:01 test1 amavis[6755]: (06755-01) Blocked SPAM, <root.htt-consult.com> -> <faxit.com>, Message-ID: <GTUBE1.1010101>, mail_id: iVLEI2wVyvfc, Hits: 1005.069, size: 947, 23998 ms
Jan 30 14:19:01 test1 postfix/lmtp[6811]: 6E6342A099C: to=<faxit.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=24, delays=0.13/0.01/0.01/24, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=06755-01 - SPAM)
Jan 30 14:19:01 test1 postfix/qmgr[6683]: 6E6342A099C: removed


Expected results:

No failed: Permissions denied

Additional info:

Manually changing permissions of /var/spool/amavis and its subdirs to 750 and restarting amavisd and clamd fixed the problem.  This should be the default permissions to allow daemons called by amavis-new to work here.

Comment 1 Fedora Update System 2014-06-27 15:29:23 UTC
amavisd-new-2.9.0-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1741/amavisd-new-2.9.0-2.el6

Comment 2 Fedora Update System 2014-06-27 16:05:30 UTC
amavisd-new-2.9.0-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/amavisd-new-2.9.0-2.fc20

Comment 3 Fedora Update System 2014-06-28 18:41:05 UTC
Package amavisd-new-2.9.1-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing amavisd-new-2.9.1-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1741/amavisd-new-2.9.1-1.el6
then log in and leave karma (feedback).

Comment 4 lnie 2014-07-01 06:40:18 UTC
amavisd-new-2.9.0-2.fc20 works

Comment 5 Fedora Update System 2014-07-12 02:23:25 UTC
amavisd-new-2.9.1-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-07-16 03:51:07 UTC
amavisd-new-2.9.1-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.