Mail server_Spamfilter configuration_Testing - SomethingWithHorizons/mailserver GitHub Wiki
-
Test whether Pyzor works correctly:
- Issue:
echo "test" | spamassassin -D pyzor 2>&1 - Check whether the table presented by the previous command includes:
2.0 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/)
- Issue:
-
Test whether a spam score is added to mail headers :
- Issue the following command to send a prototypical spam message (that is designed to be recognized as spam and should thus get a spam score assigned):
swaks --to [email protected] --server localhost --data /usr/share/doc/spamassassin/examples/sample-spam.txt - Check
/var/vmail/example.org/john.doe/Maildir/newthe header of the (latest) e-mail to contain something along these lines:X-Virus-Scanned: amavisd-new at example.org X-Spam-Flag: YES X-Spam-Score: 19.792 X-Spam-Level: ******************* X-Spam-Status: Yes, score=19.792 tagged_above=1 required=3
- Issue the following command to send a prototypical spam message (that is designed to be recognized as spam and should thus get a spam score assigned):