synt4x n00b
Joined: 20 Jun 2005 Posts: 46
|
Posted: Wed Jan 25, 2006 3:36 pm Post subject: [SOLVED] SpamAssassin: Getting list of triggered rules? |
|
|
I recently migrated my mail server to a Qmail/Vpopmail/SpamAssassin installation. In my previous dabbles with SA (in the 2.0 days) it would insert headers listing which rules have been triggered on a particular message. This was really useful, as it allowed me to be fine tune my own settings, and to also know (when writting a PHP script) how to craft the message to keep it from unnecessarily trigger rules. Currently this is the only SpamAssassin related headers I get:
Code: | Received: from 207.235.15.88 by rackspace (envelope-from <continentalairlines@continental.com>, uid 201) with qmail-scanner-1.25st
(clamdscan: 0.88/1248. spamassassin: 3.1.0. perlscan: 1.25st.
Clear:RC:0(207.235.15.88):SA:0(-2.6/7.5):.
Processed in 1.772718 secs); 24 Jan 2006 23:09:09 -0000
X-Spam-Status: No, hits=-2.6 required=7.5 |
So -- is it still possible to get the list of triggered rules and their values, and what flag/setting do you turn on to do this? I've looked through the perldoc for it and their website and wiki without any luck. Googling for things like "spamassassin rules headers" is so broad I never get any close results.
qmail-scanner was stripping this out. To have it in the mail message itself, change this option in /var/qmail/bin/qmail-scanner-queue.pl:
Code: | my $sa_debug='1';
my $sa_hdr_report_site='1'; |
Last edited by synt4x on Wed Jan 25, 2006 9:41 pm; edited 2 times in total |
|