I am currently trying to set up virus scanning with clamav on my mail server.
I am retrieving the mails for each user seperately with getmail and handling them with procmail and spamassassin. Works fine so far.
No I have installed clamav, configured it and started clamd. It seems to work. The only problem is, that I obviously only can scan files with clamdscan as root. When trying to scan a file as a user I get the following:
[ben@hermes~]$ clamdscan test.txt
ERROR: Can't connect to clamd: Permission denied
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.000 sec (0 m 0 s)
(Obviously I also get permission denied when calling clamdscan from procmail, the problem does not seem to be procmail.)
I have read the documentation for clamav and searched the web for quite a while but without any solution. What do I do wrong? I guess I just need user access to clamd.
And, btw. I am quite happy with my mail setup and doing excessive filtering with procmail. That means I don't want to replace it by something else. :-)
OS is Slackware 13.37, Procmail 3.22, Clamav 0.97.2
Any help would be appreciated.