mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Mon Feb 20, 2006 5:06 am Post subject: amavisd-new and calmav |
|
|
Hi all,
Just thought I would let others know. If you install amavisd-new and enable clamav virus scanning then you will need to enable the following in the amavid.conf file
Quote: | # ### http://www.clamav.net/
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],#******
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
# NOTE: the easiest is to 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"],
|
You will need to change the line marked ****** to
Quote: | \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"], |
ie add the .sock part to the /var/run/clamav _________________ http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za |
|