3

I have some rules in my local.cfg file with some addresses defined as blacklist_to. However, I keep getting spam for these addresses -- or rather any email whatsoever.

How can I test spamassassin to see why it keeps accepting said emails?

terdon
  • 234,489
  • 66
  • 447
  • 667

1 Answers1

3

You can feed an arbitrary message to spamassassin by piping it to spamc -R. You'll get a spamassassin report on your message that looks like

1.5/5.0
1.5 : -0.0 NO_RELAYS              Informational: message was not relayed via SMTP
 0.1 MISSING_MID            Missing Message-Id: header
-0.0 NO_RECEIVED            Informational: message has no Received headers
 1.4 MISSING_DATE           Missing Date: header

The first line is the score of the message and the threshold score for messages to be considered spam.

Flup
  • 8,017
  • 2
  • 33
  • 50