I configure spamassassin with postfix.
####/etc/mail/spamassassin/local.cf #####
required_hits 3
add_header all Level _STARS(X)_
rewrite_subject 1
subject_tag Spam [_HITS_]
#####################################
#####User Rules for testing#########################
#####################################
body LOCAL_DEMONSTRATION_RULE /test/
score LOCAL_DEMONSTRATION_RULE 10
#describe LOCAL_DEMONSTRATION_RULE This is a simple test rule
auto_white_list_path /etc/mail/spamassassign/auto_white_list
auto_whitelist_file_mode 0666
#####/usr/local/bin/sa-filter.sh#################
#!/bin/bash
/usr/local/bin/spamassassin a | /usr/sbin/sendmail -i "$@"
exit $?
I send a mail (from
test1@example.com to
test2@example.com)
Subject: test
Body: test
Check mail for
test2@example.com, receive a mail from
test1@example.com
Mail's header:
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on Testcomp
X-Spam-Level: XXXXX
X-Spam-Status: Yes, hits=10.9 required=8.0 tests=AWL, FROM_ENDS_IN_NUMS,
LOCAL_DEMONSTRATION_RULE autolearn=no version=2.63
Is my AWL good???? I can't see file /etc/mail/spamassassign/auto_white_list. This file is automatically created or i must create manually????
And how can i add a entry to auto_white_list ????
Thanks