Hello,
I was reading in the spamc man page that if you want to send log messages to stderr, instead of syslog, you can use this:
So, my presumption is that it logs to syslog by default. Since I'm newer to syslog, is my presumption that it would fall under /var/log/messages with this line:
regardless if it does or doesn't, I would like to break that out into its own log file to catch any error/exit codes from spamc.
Any ideas where to look, I'm google'd some already, but still looking.
Additionally, if I understand correctly the manpage, it will always exit 0 and pass the message unless you specify -x, which will log an exit code, and keep the message queued for retry however, is there a way with spamc/procmailrc to pass the message even if I use -x (and log the results with formail)
my goal:
determine if spamc is failing because a spamd is busy or the host is unavailable and log the results in the message header.
I was reading in the spamc man page that if you want to send log messages to stderr, instead of syslog, you can use this:
Code:
-l
Send log messages to stderr, instead of to the syslog.
So, my presumption is that it logs to syslog by default. Since I'm newer to syslog, is my presumption that it would fall under /var/log/messages with this line:
Code:
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err
regardless if it does or doesn't, I would like to break that out into its own log file to catch any error/exit codes from spamc.
Any ideas where to look, I'm google'd some already, but still looking.
Additionally, if I understand correctly the manpage, it will always exit 0 and pass the message unless you specify -x, which will log an exit code, and keep the message queued for retry however, is there a way with spamc/procmailrc to pass the message even if I use -x (and log the results with formail)
my goal:
determine if spamc is failing because a spamd is busy or the host is unavailable and log the results in the message header.