spamc -c < message.eml

Category: Mail Servers & Postfix

spamc -c < message.eml

Check a message via the spamd daemon

Asks the always-running spamd process to evaluate a message and sets the exit code to 1 if it is spam, which is far faster than launching spamassassin per message. -c also prints the score and threshold. Requires spamd running, normally as part of the mail stack.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.