SpamAssassin Logging Information

http://wiki.apache.org/spamassassin/SeparateLogFile

spamd -s localX
where X is 0-7
  1. 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
    }
  2. edit syslog.conf:
    # SpamAssassin logs to local0
    local0.*            -/var/log/spamd
  3. 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
    }



linux/server/spam_logging.txt · Last modified: 2008/01/20 14:37 by john
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki