What is the best way to setup clamd with amavis-new? When email pass through our postfix server amavis gives the following error:
amavis[3414]: (03414-12) WARN: all primary virus scanners failed, considering backups I have the clamd setup to be primary and backup AV scanner, it never seems to scan for viruses coming in. Config files: /etc/amavisd.conf $unix_socketname = "/tmp/clamd"; #"$MYHOME/amavisd.sock"; # amavis helper protocol socket @av_scanners = ( ### http://www.clamav.net/ ['Clam Antivirus-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd"], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], # # NOTE: run clamd under the same user as amavisd; match the socket # # name (LocalSocket) in clamav.conf to the socket name in this entry # # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"], @av_scanners_backup = ( ### http://www.clamav.net/ ['Clam Antivirus - clamscan', 'clamscan', '--stdout --no-summary -r {}', [0], [1], qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], /etc/clamav.conf # which is only accessible for a user running daemon. LocalSocket /tmp/clamd User vscan ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
