====== SpamAssassin Logging Information ======
http://wiki.apache.org/spamassassin/SeparateLogFile
spamd -s localX
where X is 0-7
- edit your startup script for spamd:\\ spamd_start() {
if [ -x /usr/bin/spamd ]; then
echo "Starting SpamAssassin: /usr/bin/spamd -d -l -s local0"
/usr/bin/spamd -d -l -s local0
fi
}
- edit syslog.conf:\\ # SpamAssassin logs to local0
local0.* -/var/log/spamd
- edit ''/etc/logrotate.d/syslog'':\\ /var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spamd /var/log/spooler /var/log/syslog {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
endscript
}
==
==
\\ \\
{{tag>:linux :linux:server}}