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?58.30.16.120>]
4.0 RCVD_IN_CASA_CBLLESS RBL: IP has be listed in China Anti-Spam
Alliance CBL-, http://anti-spam.org.cn/
[58.30.16.120 listed in cblless.anti-spam.org.cn]
2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL
[58.30.16.120 listed in psbl.surriel.com]
1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT
[58.30.16.120 listed in bb.barracudacentral.org]
0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
[58.30.16.120 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.