
On Fri, 12 Apr 2013, Chris Samuel <chris@csamuel.org> wrote:
On 12/04/13 13:11, Russell Coker wrote:
add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES_ autolearn=_AUTOLEARN_ version=_VERSION_"
According to the below URL adding the above to local.cf should give the result I want. But on Debian/Wheezy it doesn't. Can anyone give me a pointer?
With amavisd-new you need to set $sa_tag_level_deflt to a low value (or just undef) to get the X-Spam-Status headers in your emails, viz:
X-Spam-Status: No, hits=-5.604 tagged_above=-100 required=5 tests=BAYES_00=-1.9, MISSING_FROM=1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-2.403, SPF_PASS=-0.001
A google search indicates that the $sa_tag_level_deflt variable merely determines when the headers will be added to the message - not what the headers will be. It turns out that the "add_header all" line I used changed the headers in delivered mail (which is handy on some systems) but not what is logged. So this is helpful for mail that gets through (user requests to make SA more aggressive) but not helpful for mail that is rejected (user requests to allow mail through). So it seems to me that you have done something (or accepted some default for your system) that causes the log entry to have the numbers in addition to that $sa_tag_level_deflt setting to make it apply to all local mail. I would appreciate it if you could do a grep of your config for TESTSSCORES and see if there's anything obvious. Thanks. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/