Am 28.02.2016 um 18:53 schrieb Roman Gelfand:
Consider the following header

X-Spam-Status: No, score=4.4 required=5.0 tests=AWL,BAYES_99,BAYES_999,
        DCC_CHECK,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,
        RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2


Where the scores configured for the above test?  Also, if there is a command 
that would show the running scores for these tests.


[root@mail-gw:~]$ sa-score.sh SPF_PASS
/usr/share/spamassassin
score SPF_PASS -0.001

/var/lib/spamassassin/3.004001/updates_spamassassin_org
score SPF_PASS -0.001

/etc/mail/spamassassin/local-*.cf
score SPF_PASS -0.05
_________________________________

[root@mail-gw:~]$ cat /usr/local/bin/sa-score.sh
#!/usr/bin/bash

su -c "/usr/bin/bash /usr/local/bin/workers/sa-score.sh $1" - sa-milt
[root@mail-gw:~]$ cat /usr/local/bin/workers/sa-score.sh
_________________________________

#!/usr/bin/bash

UPDATE_DIR="/var/lib/spamassassin/3.004001/updates_spamassassin_org"

echo "/usr/share/spamassassin"
cat /usr/share/spamassassin/*.cf | grep --text "score" | grep --text -v -P '^#' | grep --text --color "$1"
echo ""

echo "$UPDATE_DIR"
cat $UPDATE_DIR/*.cf | grep --text "score" | grep --text -v -P '^#' | grep --text --color "$1"
echo ""

echo "/etc/mail/spamassassin/local-*.cf"
cat /etc/mail/spamassassin/local*.cf | grep --text "score" | grep --text -v -P '^#' | grep --text --color "$1"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to