Originally Posted by Scorpions4ever
Just a quick question. What are the permissions of /var/virusmails and is it writable by the _clamav user?
Hi Scorpions4ever,
Problem solved as follows;
# chown -R _clamav:_clamav /var/virusmails
No printout
# /usr/local/sbin/amavisd -u _clamav debug
Code:
......
.......
May 25 09:00:59 mail.satimis.com /usr/local/sbin/amavisd[14949]: May 25
09:00:59 mail.satimis.com /usr/local/sbin/amavisd[169]: Net::Server:
Child Preforked (14949)Net::Server: Parent ready for children.
May 25 09:00:59 mail.satimis.com /usr/local/sbin/amavisd[14949]: TIMING
[total 6 ms] - bdb-open: 6 (100%)100, rundown: 0 (0%)100
Stopped here
^C to exit;
Code:
^CMay 25 09:05:51 mail.satimis.com /usr/local/sbin/amavisd[169]:
Net::Server: 2007/05/25-09:05:51 Server closing!
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[17456]:
child_finish_hook: invoking DESTROY methods
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[17456]:
Amavis::Cache DESTROY called
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[17456]:
Amavis::DB::SNMP DESTROY called
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[14949]:
child_finish_hook: invoking DESTROY methods
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[14949]:
Amavis::Cache DESTROY called
May 25 09:05:52 mail.satimis.com /usr/local/sbin/amavisd[14949]:
Amavis::DB::SNMP DESTROY called
# /usr/local/sbin/amavisd -u _clamav start
No complaint
Now I expect to run both clamav and amavisd-new as _clamav and encountered problem on performing following steps;
$ sudo chown -R _clamav:_clamav /var/db/clamav
No complaint
On clamd.conf, add:
# /usr/local/sbin/clamd restart
Code:
Running as user _clamav (UID 539, GID 539)
ERROR: Can't open /var/log/clamd.log in append mode (check permissions!).
ERROR: Problem with internal logger. Please check the permissions on the
/var/log/clamd.log file.
# ls -l /var/log | grep clamd.log
# find / -name clamd.log
Both w/o printout
If I create the file /var/log/clamd.log and;
chown _clamav /var/log/clamd.log
the file will grow continuously. I haven't figured out how to run "newsyslog" or "cron" to regulate it.
Any advice? TIA
B.R.
satimis