smtpfilter is a filter for an SMTP session which passes the session through transparently in real time, except for the DATA command which is intercepted in order to scan the data for spam and/or viruses with the scanner of your choice. The sources are heavily commented. The default spam filtering is a hybrid approach that uses spamassassin to self-train the excellent spamprobe Bayesian filter which works on a per-site rather than per-user basis. The virus checking can use clamav or NAI, or any other command- line scanner.
SPF is a new strategy for preventing junk mail. The present SMTP standard for email allows anyone to forge anyone else's email address. SPF verifies that the Sender address of an email message matches (according to some policy) the client IP address that submitted it. libspf2 is a complete and robust implementation of SPF which provides support for many MTAs. Support for new MTAs is in progress.
P3Scan is a full transparent proxy server for email clients. It runs on a Linux box with iptables (for port redirection). It can be used to provide email scanning from the Internet to any internal network, and is ideal for helping to protect your "Other OS" LAN from harm, especially when used in conjunction with a firewall and other Internet proxy servers. It is designed to enable scanning of incoming email messages for viruses, worms, trojans, spam, and harmful attachments. Because viewing HTML email can enable a spammer to validate an email address (via Web bugs), it can also provide HTML stripping.
BitDefender Mail Protection is a powerful mail filtering solution that provides antivirus and antispam capabilities to Linux mail servers. Both sent and received messages are scanned in real-time, avoiding possible infections and preventing anyone from sending an infected message. It claims a 100% detection rate for all viruses in the wild through its powerful scanning engines, which are certified by prestigious testing labs.