At 09:20 AM 1.19.2005 -0500, [EMAIL PROTECTED] wrote:
>Hey, on redhat/sendmail
>
>How do i split out the spamd log like you did?
>

I run FBSD Unix, but imagine Linux setup is similar. Here's how I did it:

1) modify /etc/syslog.conf to add a facility, like so:
   # local2.*           /var/log/spamd.log
2) touch a file /var/log/spamd.log
3) set up rotation in /etc/newsyslog.conf
   # /var/log/spamd.log   640  7     *    @T00  B
4) restart syslogd
5) restart spamd with the above facility:
   # /usr/local/bin/spamd --syslog=local2 -u whoever -x -d -r
/var/run/spamd/spamd.pid

The above spamd flags are for my own needs, but you may need some different
ones.
See man spamd(1) for the flags.... --syslog=local2 could be shortened to -s
local2

The facility "local2" depends on whether you have others local0 & local1
already used as I do.
Otherwise, use local0.

That ought to do it.... Disclaimer: there may be other ways.

HTH.


Happy trails,
Jack L. Stone

System Admin
Sage-american

Reply via email to