You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by tonjg <ze...@zen.co.uk> on 2011/08/10 21:49:41 UTC

spamassassin does not log to syslog

I'm running spamassassin.i386 version 3.3.1-3.el4.rf on centos 4.8 (raq4
server) and I can't get SA to log to syslog. I understand the SA log
defaults to mail but my mail log doesn't show any SA activity. I've got
loadplugin Mail::SpamAssassin::Logger::Syslog in a .pre file. But if I do:#
spamd -s /var/log/spamd.log I get:
Aug 10 17:46:31.704 [19945] warn: server socket setup failed, retry 1:
spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Aug 10 17:46:32.711 [19945] warn: server socket setup failed, retry 2:
spamd: could not create INET socket on 127.0.0.1:783: Address already in use

so I tried stopping SA and running again but I get:
# spamd -s /var/log/spamd.log
Aug 10 17:49:55.830 [20125] warn: Reference found where even-sized list
expected at
/usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/Logger/Syslog.pm line 58.
Aug 10 17:50:24.713 [20125] info: spamd: server started on port 783/tcp
(running version 3.3.1)
Aug 10 17:50:24.716 [20125] info: spamd: server pid: 20125
Aug 10 17:50:24.748 [20125] info: spamd: server successfully spawned child
process, pid 20156
Aug 10 17:50:24.809 [20125] info: spamd: server successfully spawned child
process, pid 20157
Aug 10 17:50:24.827 [20125] info: prefork: child states: II

...and the console just hangs at this point. I have to do CTRL Z to get out
of it.
I looked at line 58 on syslog.pm and it reads: my %params = @_;   I don't
know what this means.
I'm stuck here, would appreciate advice on how I can get SA logging (in
detail).

ps: I'm also not sure what the correct syslog.conf entry should look like to
log SA.
-- 
View this message in context: http://old.nabble.com/spamassassin-does-not-log-to-syslog-tp32237108p32237108.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: spamassassin does not log to syslog

Posted by Mark Martinec <Ma...@ijs.si>.
On Wednesday August 10 2011 21:49:41 tonjg wrote:
> I'm running spamassassin.i386 version 3.3.1-3.el4.rf on centos 4.8 (raq4
> server) and I can't get SA to log to syslog. I understand the SA log
> defaults to mail but my mail log doesn't show any SA activity.

> # spamd -s /var/log/spamd.log
> Aug 10 17:49:55.830 [20125] warn:
> Reference found where even-sized list expected at
> /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/Logger/Syslog.pm
> line 58.

> I've got
> loadplugin Mail::SpamAssassin::Logger::Syslog in a .pre file.

That is your mistake. Remove that loadplugin line. It should only
be used for plugins, not for core SpamAssassin modules.

  Mark