Mail server_Spamfilter configuration_Testing - SomethingWithHorizons/mailserver GitHub Wiki

  1. Test whether Pyzor works correctly:

    1. Issue:
      echo "test" | spamassassin -D pyzor 2>&1 
      
    2. Check whether the table presented by the previous command includes: 2.0 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/)
  2. Test whether a spam score is added to mail headers :

    1. 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
      
    2. Check /var/vmail/example.org/john.doe/Maildir/new the 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