advert

Tuesday, 27 December 2011

Rotate spamd log

FreeBSD spamd (APACHE) log rotation

Log spamd separately = add two lines in /etc/syslog.conf:

!spamd
daemon.err;daemon.warn;daemon.info      /var/log/spamd

Set rotation for logs (here is also APACHE) in /etc/newsyslog.conf

# pre apache                                            rotate every Sunday at 8 a.m.
/web/log/httpd-access.log               644  10    *    $W6D0 B    /var/run/httpd.pid 30
/web/log/httpd-error.log                644  10    *    $W6D0  B    /var/run/httpd.pid 30
# spamd logging
/var/log/spamd                          600  2     *     @T00  JC



enjoy

0 komentářů:

Post a comment