On 3-Oct-2009, at 23:54, Sahil Tandon wrote:
On Sat, 03 Oct 2009, LuKreme wrote:
My spammed.log file is empty:
Do you mean spamd.log?
Yes (sometimes auto-spelling correcting sucks)
$ cat /var/log/spamd.log
Oct 3 00:00:00 mail newsyslog[82079]: logfile turned over
OK, so newsyslog(8) is working as expected.
$ psa spam
root 921 0.0 0.9 76268 4536 ?? Ss 26Sep09 5:04.07
/usr/local/bin/spamd -c -s /var/log/spamd.log -d -r /var/run/spamd/
spamd.pid (perl5.10.0)
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.
So setting the -s to 'local1' and then setting syslog.conf to log
local1.* to /var/log/spamd.log?
root 26345 31.8 14.5 76612 74804 ?? Ss 6:45AM 0:20.94 /usr/
local/bin/spamd -c -s local1 -d -r /var/run/spamd/spamd.pid (perl5.10.0)
/etc/newsyslog.conf:/var/log/spamd.log 640 91
* @T00 J
/etc/syslog.conf:local1.* /var/log/spamd.log
OK, just waiting for a spam to come in and get past the RBL/HELO
checks. Seems early Sunday morning are the worst timeā¦
--
If the #2 pencil is the most popular, why is it still #2?