Mailing List Archive

Spamassassin Debug Logs
Hi,

I have Postfix+MailScanner integreated with Spamassassin, I want to
enable debug logs of Spamassassin for all mail transactions.

I know spamassassin -D -t /tmp/sid.eml but this is limited to single
mail. I want something which can store all debug logs in run time.

Regards,
Siddhesh Kadam
Re: Spamassassin Debug Logs [ In reply to ]
KADAM, SIDDHESH wrote:
> Hi,
>
> I have Postfix+MailScanner integreated with Spamassassin, I want to
> enable debug logs of Spamassassin for all mail transactions.
>
> I know spamassassin -D -t /tmp/sid.eml but this is limited to single
> mail. I want something which can store all debug logs in run time.

Unless your mail volume is really truly trivially small, no, you don't
want debug logs for every mail. You really, really, don't.

Depending on local configuration and rules, third party rules, and other
changes from SA stock, you'll likely be adding 1000+ lines of logging
for **EACH** message. Most of this is noise.

That said, if you really want to bring your server to its knees doing
this, look for the place in MailScanner where it creates the basic SA
library object - look for "Mail::SpamAssassin->new" or "new
Mail::SpamAssassin". Add "debug => 1" to the hash that's passed in.

It's remotely possible this is exposed somewhere in the more general
MailScanner configuration, but I doubt it.

-kgd