Amavisd errors in mail log - new install

Discussion in 'Installation/Configuration' started by drewb0y, Mar 23, 2011.

  1. drewb0y

    drewb0y Member

    [Resolved] Amavisd errors in mail log - new install

    I get the following errors in my mail log

    Code:
    Mar 23 14:15:43 mail amavis[1530]: (01530-03) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/lib/amavis/tmp/amavis-20110323T140547-01530/parts: lstat() failed: Permission denied. ERROR\n"
    Mar 23 14:15:43 mail amavis[1530]: (01530-03) (!)ClamAV-clamd av-scanner FAILED: CODE(0x262a358) unexpected , output="/var/lib/amavis/tmp/amavis-20110323T140547-01530/parts: lstat() failed: Permission denied. ERROR\n" at (eval 105) line 594.
    Mar 23 14:15:43 mail amavis[1530]: (01530-03) (!!)WARN: all primary virus scanners failed, considering backups
    The services are started (both clamav-daemon and amavisd)

    I saw another post with a Centos User having simila issues but it didn't seem to apply here.

    This is on a Debian Squeeze server set up using http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-courier-ispconfig-3
     
    Last edited: Mar 24, 2011
  2. drewb0y

    drewb0y Member

    Fixed

    Thanks to this post on linuxquestions, I managed to get it fixed.

    If anyone else gets the same thing, here is how i fixed it on Debian Squeeze with ispconfig 3.0.3.2

    For some reason the groups amavis and clamav had no users in them. I was not sure which user needed to be a member of which group, so I added the amavis and clamav users to each group.

    Add user clamav to groups clamav & amavis, Add user amavis to groups clamav & amavis

    Code:
    usermod -a -G clamav amavis
    usermod -a -G clamav clamav
    usermod -a -G amavis clamav
    usermod -a -G amavis amavis
    And then restarted the clamav and amavis daemons. As well as postfix just for good measure.

    Code:
    service clamav-daemon restart
    service amavis restart
    service postfix restart
    This seems to have resolved that issue.
     
    agentmoller001 likes this.

Share This Page