Test a e-mail by Spamassassin manually and get spam report

If you want to test a e-mail or test whether the spamassassin rule is working or not, you can use the following command

spamassassin -t  /the_message.txt

Then you will get something like this

Received: from localhost by hostname.yourserver.com
with SpamAssassin (version 3.3.2);
Wed, 22 Aug 2012 21:58:21 +0800
From: =?utf-8?B?5om25reR5rK7?= <webmaster@123.net>


Content analysis details: (10.3 points, 5.0 required)

pts rule name description
—- ———————- ————————————————–
1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
[Blocked – see <http://www.spamcop.net/bl.shtml?>]
4.0 RCVD_IN_CASA_CBLLESS RBL: IP has be listed in China Anti-Spam
Alliance CBL-, http://anti-spam.org.cn/
[ listed in cblless.anti-spam.org.cn]
2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL
[ listed in psbl.surriel.com]
[ listed in bb.barracudacentral.org]
0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
[ listed in zen.spamhaus.org]
0.0 HTML_MESSAGE BODY: HTML included in message


Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.