spamc

spamc is the client side of the spamc/spamd pair. It is meant to be called by scripts, although there is no reason that it cannot be run manually. It is written in C and is meant for high performance. spamc reads from STDIN and then reads the results back from spamd and presents the output on STDOUT. The options it accepts are broken down by function in the next sections.

General

-B                                 BSMTP mode

Treat input as an SMTP-formatted message.

-c                                 check only

Print score/threshold and set exit code to 0 if message is not spam or 1 if it is spam.

-r                                 report if spam

Print report for spam messages.

-R

Print report for all messages.

-y

Output spam test names that are executed.

-d host
					

Specify host to connect to spamd on; defaults to 127.0.0.1. ...

Get Slamming Spam: A Guide for System Administrators now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.