Apache SpamAssassin, the open source mail spam filter whose spamd daemon and rules engine score every message so your mail system can flag or reject junk.
Apache SpamAssassin is the long established open source anti spam platform. Its spamd daemon scores each message against a large, regularly updated rule set that combines header and body heuristics, Bayesian statistical filtering, DNS blocklists, SPF and DKIM checks and network tests, then returns a spam score and a verdict. Mail systems hand messages to it through the fast spamc client or a milter, so a message that crosses the score threshold is tagged with spam headers your mail server can act on, filing it, quarantining it or rejecting it. It runs as a single self contained service with no database to administer, and its behaviour is driven entirely from readable configuration files, so the whole filtering policy lives in text you can version and review.
It suits anyone running their own mail: pairing it with Postfix or Exim to score inbound mail, giving a small team a self hosted spam filter they own inside their own cloud account, or scoring messages on demand from a script.
SpamAssassin has no login of its own, so what matters is that the scanning daemon is never left open, and cloudimg ships it exactly that way. The spamd daemon runs as a dedicated non root system user and is bound to loopback with its accept list restricted to loopback, so nothing off the instance can reach it until you explicitly widen access to your own mail hosts with the bundled sa access tool. A current rule set is fetched at build time and the maintenance timer is left enabled so every instance keeps its rules fresh, the configuration is checked clean before the image is sealed, and a first boot service records the instance details to a root only file. Every deployment comes with a paired deploy guide and 24/7 cloudimg support.
Real screenshots taken while testing this image against its deployment guide.
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
## Overview
Apache SpamAssassin is the open source, Apache-2.0 licensed anti-spam platform: a rule-based mail filter that scores every message on hundreds of tests - header and body heuristics, Bayesian statistics, DNS blocklists, SPF/DKIM checks and collaborative-filtering signals - and flags anything over a configurable threshold as spam. It is the de facto standard spam filter for Unix mail servers and integrates with Postfix, Exim, Sendmail, amavisd and dovecot. This AMI delivers SpamAssassin fully configured as a ready-to-run scanning appliance: the spamd scanning daemon and the spamc client are installed, a current rule set is fetched, and the daemon is hardened - SSH in and pipe a message through spamc and it is scored immediately.
## Secure by Default - Loopback Only
The spamd daemon is bound to the loopback address (127.0.0.1) and its allow-list is restricted to 127.0.0.1, so nothing off the instance can reach it until you explicitly widen access. The security group opens only SSH. This means the image ships as a non-network service with no exposed scanning port - you decide which trusted mail hosts may connect, using the bundled sa-access tool, and open the matching port in your own security group.
## Why Choose This AMI Over Self-Installation
Standing SpamAssassin up correctly involves more than installing a package: the daemon should run as a non-root user, its network exposure must be locked down, and the rule set must be current and kept fresh. This AMI handles all of it:
## How Spam Scoring Works Here
## Getting Started
1. Launch the AMI on your preferred EC2 instance type
2. Connect over SSH using your key pair as the default login user
3. Read the instance note with sudo cat /root/spamassassin-info.txt
4. Confirm the daemon and its loopback-only exposure with sudo sa-access status
5. Pipe the GTUBE test string through spamc to see a message flagged as spam
6. When you are ready, open spamd to a trusted mail-host network with sudo sa-access allow, and open TCP 783 to that network in your security group
## Security Practices
SpamAssassin is installed unmodified from the operating system's official package archive, so it is covered by standard unattended security updates. The scanning daemon runs as a non-root user, binds loopback only, and accepts only a loopback allow-list by default. SSH access uses key-based authentication. There is no login, no web interface and no credential - access control is by network, and you grant it only to the networks you trust.
## Use Cases
## cloudimg Support
24/7 technical support by email and live chat covers integrating SpamAssassin with your MTA, opening spamd to trusted mail hosts safely, tuning scores and thresholds, custom rule development, keeping the rule set fresh, and Bayesian training. Critical issues receive a one-hour average response.
## Next Steps
Contact support@cloudimg.co.uk to request an integration walkthrough for your mail transport agent, a rule-tuning session, or to ask any pre-purchase questions about the product.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.