
spamd: result: . 1 - DKIM_ADSP_DISCARD,SPF_PASS,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY Currently I'm getting log entries like the above from SpamAssassin. spamd: result: . 1 - DKIM_ADSP_DISCARD=1,SPF_PASS=-1,T_RP_MATCHES_RCVD=1,UNPARSEABLE_RELAY=0 I want to see something like the above with numbers for each test so I can easily determine why the total was determined. I know that I can search through the SA configuration for each test, but this is time consuming and has the problem that the SA configuration might not do what I want. 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? As an aside I'm configuring my personal server on Debian/Wheezy and when I get it right I'll do it on a bigger server running CentOS 5. So if there are any relevant differences between Debian and CentOS in this regard I'd like to know about them. http://mail-archives.apache.org/mod_mbox/spamassassin- users/200703.mbox/%3C20070304222615.D13968@duane.dbq.yournetplus.com%3E Thanks. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

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 Don't know what that translates to in terms of SA settings I'm afraid. That's with SA 3.3.2 (the latest version). Hope that helps! Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC

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:
I'm using spamass-milter. Do you know how I'd get the same result? Thanks for the suggestion.
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
Don't know what that translates to in terms of SA settings I'm afraid.
That's with SA 3.3.2 (the latest version).
Hope that helps! Chris
-- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On 12/04/13 14:00, Russell Coker wrote:
I'm using spamass-milter. Do you know how I'd get the same result?
Thanks for the suggestion.
No idea sorry. :-( -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC

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/

On Fri, 12 Apr 2013, Chris Samuel <chris@csamuel.org> 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
Looking at your message again, you've quoted an email header. The entry that I'm using (double quoted above) gives those headers. What I'm after is log files which contain the same data. The fact that I used a message header config directive when trying to change the syslog logging was due to confusing web pages about it. spamd: result: . 1 - DKIM_ADSP_DISCARD,SPF_PASS,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY Do you have /var/log/mail.log or similar logging the numbers or is it just like the above entry from my /var/log/mail.log? -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On 17/04/13 13:54, Russell Coker wrote:
What I'm after is log files which contain the same data.
Oh right, I saw you quote the "add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_" line as a directive you'd tried and assumed that you wanted headers because of it. Unfortunately whilst I get the logs you want they are inserted by amavisd-new, not by SpamAssassin. Apr 17 14:19:10 csamuel amavis[21131]: (21131-01) SPAM-TAG, <bounce@cbsend.com> -> <foo@bar.org>, No, hits=2.609 tagged_above=-100 required=5 tests=BAYES_00=-1.9, DKIM_ADSP_NXDOMAIN=0.9, DKIM_SIGNED=0 .1, DKIM_VALID=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, LOCAL_DONNA_TO1=1, LOW_PRICE=1.4 64, MISSING_FROM=1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_SBL=0.141, RP_MATCHES_RCVD=-1.344, SPF_PASS=- 0.001 All the best, Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
participants (2)
-
Chris Samuel
-
Russell Coker