Tom wrote:

> the conf file is there!
> thats what makes this error so weird.
> amavis group has rwx on it as well.
> i don't know what more it wants.
> the docs for this app leave a lot to be desired.
> i have no idea what to edit in clamd.conf except the user and socket and pid 
> dir and have the socket dir match amavisd.conf.
> i did all that and still this silly error.
> i'm not rebooting(though i doubt that will help,this isn't ms windows)
> help...

You tell clamav where to live:
follow these steps,

cd /usr/local/src/clamav-0.86.1
./configure --sysconfdir=/etc/clamav --with-dbdir=/var/lib/clamav
make
make install

mkdir /var/run/clamav
chown -R clamav:clamav /var/run/clamav
mkdir /var/log/clamav
touch /var/log/clamav/freshclam.log
touch /var/log/clamav/clamd.log
chown -R clamav:clamav /var/log/clamav


In /etc/amavisd.conf :

  ['Clam Antivirus-clamd',
     \&ask_daemon, ["CONTSCAN {}\n", '/var/run/clamav/clamd.sock'],
     qr/\bOK$/, qr/\bFOUND$/,
     qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


in /etc/clamav/clamd.conf : (get rid of everything else in it)

LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket
User clamav
AllowSupplementaryGroups
ScanMail
ScanArchive
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxFileSize 10M
ArchiveMaxCompressionRatio 250
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogFile /var/log/clamav/clamav.log
LogTime
LogFileMaxSize 2M
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav/
SelfCheck 3600
ScanOLE2
ScanPE
DetectBrokenExecutables
ScanHTML
ArchiveBlockMax


in /etc/clamav/freshclam.conf: (get rid of everything else in it)

DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogFileMaxSize 1M
MaxAttempts 5
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
DatabaseDirectory /var/lib/clamav/
NotifyClamd
DNSDatabaseInfo current.cvd.clamav.net

run freshclam

set up a cron job to run freshclam once each hour

Gary V



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to