2. Is there a way I can put the razor-agent.log into multilog? If not,
how do I rotate this log file?


For myself on FreeBSD, I installed by source, not by port, so adjust your configs as necessary, but I use the newsyslog facility (/etc/newsyslog) to rotate the log files with the nightly checks:

The maillog is rotated nightly:
/var/log/maillog                        640  120   *    @T00  JC

So, I added another entry for my spam log:
/var/log/spam.log                       640  120   *    @T00  JC

I've added several logfiles to the file to auto-rotate, such as named, and it works like a charm.

My relevant config bits:

How I start spamd:
/usr/local/bin/spamd --daemonize --username spamd --max-children=20 
--min-spare=5 --pidfile /home/spamd/spamd.pid -s local5

(notice the "local5" part at the end, which defines the local5 syslog identifier)

The relevant syslog config:
local5.*                                        /var/log/spam.log

Hope this helps.

-Gary

Reply via email to