|Main Archive Page > Month Archives > spamassassin-users archives|
On Thu, 2010-09-23 at 11:30 +0100, Steve Freegard wrote:
> > Hopefully it will be useful to others; you can grab it from:
> > http://www.fsl.com/support/DecodeShortURLs.pm
> > http://www.fsl.com/support/DecodeShortURLs.cf
> - Added option to allow logging to syslog (mail.info).
I grabbed a copy of the above plugin and tried it this afternoon (on a
CentOS 5.5 system). We log all our spamd messages to /var/log/maillog
via syslog. For the plugin I disabled all the options except
'url_shortener_syslog' which was set to 1.
After restarting SpamAssassin we started to get some messages from spamd
sent to /var/log/mailog and some sent to /var/log/messages. Not messages
from the plugin, but any messages from spamd. For example
Oct 4 22:28:50 pat sauser: spamd: checking message
<firstname.lastname@example.org> for sauser:10001
Oct 4 22:28:56 pat sauser: spamd: clean message (-0.1/8.0)
for sauser:10001 in 5.6 seconds, 7896 bytes.
Oct 4 22:28:56 pat sauser: spamd: result: . 0 -
The messages are not just being duplicated in both files, there are
different messages in each file. Our syslog.conf specifies:
I tried changing DecodeShortURLs.pm calls to syslog to use 'info|mail'
and that made no difference. I also tried commenting out the 'syslog'
calls, and used backtick calls to '/usr/bin/logger' instead. The same
problem happened. If I take the plugin out, then all messages from spamd
go to /var/log/maillog as before.
Anyone any ideas as to what is going on?
-- John Horne, University of Plymouth, UK Tel: +44 (0)1752 587287 Fax: +44 (0)1752 587001