Hi all,
After having spamd exit on me a couple of times (still no idea why), I
decided to put spamd under daemontools control (run file below). While
this has resulted in the stability I was looking for, I am now
presented with a number of growing log/spamassassin files - i.e.:
/service/spamd/razor-agent.log
/root/.spamassassin/auto-whitelist
/root/.spamassassin/bayes_journal
/root/.spamassassin/bayes_seen
/root/.spamassassin/bayes_toks
My question breaks into several parts;
1. The startup script from the FreeBSD port for spamd ran the service
as root - is there any reason not to switch spamd to the qpsmtpd
user/group?
2. Is there a way I can put the razor-agent.log into multilog? If not,
how do I rotate this log file?
3. My experiance with Bayes and AWL on amavisd-new is that these files
will only grow, what is the proper approach to pruning this data?
4. I am considering using an external Mysql database for my Bayes
database - how much should I expect this to trash my server, and what
is the proper approach to pruning this data?
Thanks in advance,
Max
#!/bin/sh
exec 2>&1 \
sh -c '
exec \
/usr/local/bin/spamd \
-x \
--socketpath=/var/run/spamd/spamd \
-s stderr
'
--
Max Clark
http://www.clarksys.com