Testing SpamAssassin filtering

By Fekete Zoltán , 4 November, 2026

Use these simple verification tests to validate the spam checker works

Pass a spam email to SpamAssassin directly
$ spamc < spam_email.txt

The email should look like this:

From: "Exclusive Offer" <winner@cheap-prize.example>
To: test@example.com
Subject: *** YOU HAVE WON 1,000,000 EUR!!! ***
Date: Wed, 04 Nov 2026 07:00:00 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
CONGRATULATIONS!!!
You have been selected as our LUCKY WINNER!
You have won 1,000,000 EUR in our exclusive
international lottery.
This is your FINAL NOTICE.
Your prize will EXPIRE TODAY!
Claim your FREE MONEY NOW!
No purchase necessary.
100% GUARANTEED!
Click here immediately to claim your prize:
http://spam-test.example/claim
Send us your bank account details and personal
information to receive your payment.
Act NOW!!! Don't miss this AMAZING opportunity!!!
BEST REGARDS,
International Lottery Commission

 

 

 

 

 

 

Comments