- Home
- Email Anti-Spam Software
- Apache SpamAssassin
Apache SpamAssassin
What it is
Apache SpamAssassin is free, open-source software that classifies email and helps system administrators block unsolicited bulk messages. It runs on a server to filter spam before it reaches a mailbox. Its detection methods combine header and message-text analysis, Bayesian filtering, DNS blocklists, collaborative filtering databases, and other local and network tests. A scoring framework and plugins add heuristic and statistical checks. Because tests and configuration are stored in plain text, administrators can adjust settings and add rules. The Mail::SpamAssassin API can be integrated with email systems such as procmail, sendmail, Postfix, and qmail. The core distribution includes command-line filtering tools and Perl modules for use in other products. The downloads page lists version 4.0.2 as the released version; official releases are GPG-signed, and downloads include links to GPG signatures and SHA-256 and SHA-512 checksums. Users can ask questions on the mailing list, where developers and PMC members respond as time permits.
For and against
For
- Free, open-source software.
- Combines several analysis methods and filtering databases.
- Plain-text configuration lets administrators add rules.
- API integration supports procmail, sendmail, Postfix, and qmail.
- Official releases include GPG signature and checksum links.
Against
- Deployment is self-hosted and server-based.
- The distribution centers on command-line tools and Perl modules.
- Mailing-list responses depend on developer and PMC availability.
The verdict
Apache SpamAssassin offers configurable server-side email filtering with multiple detection methods and integration options. It is a fit for administrators prepared to manage a self-hosted filter and its rules.
Who it suits
SpamAssassin is suited to system administrators who want to filter email on a server and configure spam rules themselves. Its API and Perl modules may suit teams integrating filtering into supported mail systems or other products.
Plans and prices
Apache SpamAssassin
self-hosted mail filtering · administrator-managed configuration · no hosted service described
Read 14 Oct 2026 · spamassassin.apache.org
On the record
- API
- The Mail::SpamAssassin classes expose an abstract API for embedding the engine in mail systems.spamassassin.apache.org · read 14 Oct 2026
- Bayesian filtering
- The software includes Bayesian learning that can be trained with ham and spam examples using sa-learn.en.wikipedia.org · read 14 Oct 2026
- Command-line tools
- The distribution includes filtering tools plus spamc, spamd, sa-learn, sa-update and sa-compile utilities.spamassassin.apache.org · read 14 Oct 2026
- Company ownership
- SpamAssassin is an Apache Software Foundation project rather than a commercial vendor product.spamassassin.apache.org · read 14 Oct 2026
- Configuration
- Anti-spam tests and configuration are stored in plain text, so users can configure the software and add rules.spamassassin.apache.org · read 5 Oct 2026
- Current listed release
- The downloads page lists version 4.0.2 as the released version.spamassassin.apache.org · read 5 Oct 2026
- Current release
- The official site lists Apache SpamAssassin 4.0.2, released on 2025-08-30.spamassassin.apache.org · read 14 Oct 2026
- Deployment
- The project wiki says SpamAssassin runs on a server and filters spam before it reaches the mailbox.cwiki.apache.org · read 5 Oct 2026
- Detection methods
- Its scoring framework combines heuristic and statistical tests on headers and message bodies.spamassassin.apache.org · read 14 Oct 2026
- Distribution
- The core distribution consists of command-line filtering tools and Perl modules for use in other products.spamassassin.apache.org · read 5 Oct 2026
- Documentation depth
- Documentation includes README, INSTALL, UPGRADE, spamd and SQL-preference guides, wiki material and versioned POD manuals.spamassassin.apache.org · read 14 Oct 2026
- Download integrity
- Official release archives provide GPG signatures and SHA-256 and SHA-512 checksums.spamassassin.apache.org · read 14 Oct 2026
- Independent architecture
- Wikipedia describes it as a Perl-based application that can run standalone, behind spamd, or inside mail-filter programs such as Amavis and MIMEDefang.en.wikipedia.org · read 14 Oct 2026
- Independent feature gaps
- SourceForge marks allow/block lists, audit logs, archiving, recovery, routing, encryption, fraud detection, quarantine, reporting and statistics as not supported.sourceforge.net · read 14 Oct 2026
- Independent integrations listing
- SourceForge lists Exim, GlockApps, KMail, Rad Web Hosting, Sekoia.io and SPanel as integrations.sourceforge.net · read 14 Oct 2026
- Independent limitation
- Wikipedia notes that heuristic classification can produce both false positives and false negatives.en.wikipedia.org · read 14 Oct 2026
- Independent platform listing
- AlternativeTo categorizes SpamAssassin for Linux, self-hosted, Windows, web and Mac environments.alternativeto.net · read 14 Oct 2026
- Independent popularity
- AlternativeTo shows 15 likes for SpamAssassin and labels it free and open source.alternativeto.net · read 14 Oct 2026
The review
Overview
Apache SpamAssassin is a free, open-source filter for classifying email. It is best suited to administrators who want to control spam filtering within their own mail setup, rather than hand filtering operations to a hosted provider. Its flexibility is a real advantage, but it comes with responsibility for configuration and deployment.
Key features
SpamAssassin evaluates message headers and text, and combines Bayesian filtering with DNS blocklists and collaborative filtering databases. A scoring framework and plugins bring heuristic and statistical tests into the same process, alongside local and network checks for spam signatures. That variety gives administrators multiple ways to shape classification, but it also means results depend on managing the rules and configuration for the environment.
Tests and settings are kept in plain text, so administrators can adjust existing rules and add their own. The core package provides command-line filtering tools and Perl modules for use in other products. Its Mail::SpamAssassin API can connect filtering to procmail, sendmail, Postfix and qmail, placing it on a server before messages reach a mailbox. Phishing detection, malware scanning and attachment scanning are supported.
The current listed release is 4.0.2. Official releases include GPG signatures and SHA-256 and SHA-512 checksum links, giving administrators ways to verify a download. The project advises replacing the default report-template contact details with the administrator’s own support desk information. User questions go to a mailing list, where developers and PMC members respond as time permits; security issues can be emailed to the project or reported in Bugzilla.
Pricing
Apache SpamAssassin costs nothing. The open-source plan includes command-line filtering tools and Perl modules, with no trial needed. There is no paid tier described; the tradeoff is that administrators must deploy and manage the self-hosted filter themselves.
Platforms
SpamAssassin is available for Linux and self-hosted use, with an API for integration into mail systems. It is not positioned as a consumer mobile or desktop mail app; its command-line tools and server deployment are aimed at people responsible for mail infrastructure.
Who it's for
Choose SpamAssassin if you administer a mail server and want an open-source filter whose tests, scoring and integrations can be configured directly. It is a poor fit for individuals or organizations seeking a turnkey hosted service, packaged user support, or filtering without server and rule maintenance.
Pros and cons
- Pros: Multiple detection methods and a plugin-based scoring framework let administrators tune filtering beyond a single signal.
- Pros: Plain-text rules and an API for four named mail systems support direct configuration and integration.
- Pros: The software is free and open source, and official releases provide signature and checksum links for verification.
- Cons: Self-hosting and configuration place deployment and ongoing rule management on the administrator.
- Cons: Mailing-list responses arrive as time permits, so it is not a fit for teams that require a defined support response.
Alternatives
MailWasher is worth considering for users who want Android, iOS or Windows support and a free plan limited to one email account, though that plan has no support. JetEmail is a better match for marketing teams seeking a web or API service with a non-expiring free tier for 1,000 subscribers and 1 GB of image storage. Mailprotector offers a free email security check and paid products with custom pricing.
Rspamd is another open-source, self-hosted option for Linux or macOS; its free core may suit administrators comparing server-side filters, while its Scale plan is £100 a month. Cleanmail is a paid alternative with a free trial and self-hosted or web platforms. MailChannels Inbound Filtering is a paid API or web alternative with pricing available through sales.
Mimecast Data Leak Prevention is a paid web option with Professional and Enterprise plans at custom pricing. Mailinblack Protect is a paid alternative available through API, self-hosted and web platforms. For more options, see Email Anti-Spam Software.
Verdict
Apache SpamAssassin is a strong choice for administrators who want a free, configurable filter integrated into mail infrastructure they control. Its range of detection methods and mail-system integrations are the main reasons to choose it; look elsewhere if you need hosted filtering, turnkey setup or predictable support.