On 3-Oct-2009, at 23:54, Sahil Tandon wrote:
As documented in the spamd(1) man page:

-s facility, --syslog=facility    Specify the syslog facility

So, specifly a syslog FACILITY instead of a FILENAME. See syslogd (8) and
syslog.conf(5) man pages for more.

man spamd(1) says:

facility is interpreted as a file name to log to if it contains any characters
           except a-z and 0-9. "null" disables logging completely (used
           internally).

So, setting it to spamd.log should log to that file since it contains a '.'

This does not appear to work as the man page documents.

In fact, the examples lists:

spamd -s ./mail               # log to file ./mail

It appears that the issue is that spamd gets confused when the logfile is rotated

from man spamd(1):

If logging to a file is enabled and that log file is rotated, the
           spamd server must be restarted with a SIGHUP.

According to newsyslog.conf's comment section the syslogd process is signalled when the logfile is rotated, but I don't see anything about how to SIGHUP the spamd process when the logfile is rotated out from under it.


--
"I'm just like every modern woman trying to have it all. A loving
        husband, a family. I only wish I had more time to seek out the
        dark forces and join their hellish crusade."

Reply via email to