Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does a command line based spam checker exist?

We have created a mailbox at a 3rd party, and unfortunately decided on spam checking 'disabled' in the initial setup.

There is no way to re-enable spam checking, the mailbox must be delete (and thus all contents lost) and re-created.

Does anything exist where we can pump in either:

A) Subject + from + to + body + all other fields.


B) Raw message dump (headers + body).

And the command line will let us know weather the email is possibly spam?


share|improve this question
up vote 7 down vote accepted

You may be looking for SpamAssassin. It uses various mechanisms for identifying spam, including text analysis, Bayesian filtering, DNS blocklists, and collaborative filtering databases.

share|improve this answer
bingo! thanks! exactly what we were looking for. – anonymous-one Sep 10 '12 at 15:00

bogofilter might be another option.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.