Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177037 - mail-filter/amavisd-new init script should "use antivirus"
Summary: mail-filter/amavisd-new init script should "use antivirus"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-04 14:17 UTC by Brian Evans
Modified: 2007-06-18 16:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Evans 2007-05-04 14:17:26 UTC
During the boot process, the amavisd boot script can and does initialize before antivirus daemons such as clamd.  Although this is not required for amavisd-new to function all the time, it can cause errors if the antivirus daemon creates a socket which amavisd-new is configured with.

Suggest adding "antivirus" to the use section of the init script.

Reproducible: Always

Steps to Reproduce:
1. Enable clamd socket access in amavisd.conf
2. Restart the machine
Actual Results:  
Errors in syslog:
May  4 09:34:44 mail amavis[5607]: (05607-01) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x8139aa4) Too many retries to talk to /var/run/clamav/clamd.sock (Can't connect to UNIX socket /var/run/clamav/clamd.sock: No such file or directory) at (eval 69) line 306. at (eval 69) line 504.
May  4 09:34:44 mail amavis[5607]: (05607-01) (!!)WARN: all primary virus scanners failed, considering backups


Expected Results:  
No errors
Comment 1 Roman Dilken 2007-05-16 10:00:32 UTC
I get this similar error:

May 16 11:54:53 gentoo amavis[18986]: (18986-03) (!!)ask_av (ClamAV-clamd) FAILED - unexpected result: /var/amavis/tmp/amavis-20070516T114305-18986/parts: lstat() failed. ERROR\n
May 16 11:54:53 gentoo amavis[18986]: (18986-03) (!!)WARN: all primary virus scanners failed, considering backups

Perhaps this is the same as above?
Comment 2 steveb 2007-06-11 10:39:58 UTC
maybe doing this would help:
depend() {
        need net
        use logger
        before mta
        after antivirus
}
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2007-06-18 16:03:38 UTC
Fixed along with 2.5.1 bump, thanks!