Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Apache SpamAssassin

spamassassin.apache.org

  • Free plan
  • Open source
  • Windows
  • macOS
  • Linux
  • API
  • Self-hosted

What Apache SpamAssassin is

Apache SpamAssassin is free, open-source software that classifies email and helps administrators block unsolicited bulk messages. It runs on a server to filter spam before it reaches a mailbox. Detection combines header and text analysis, Bayesian filtering, DNS blocklists, collaborative filtering databases, and local and network tests. A scoring framework and plugins add heuristic and statistical checks. Tests and configuration are stored in plain text, allowing administrators to change settings and add rules. The Mail::SpamAssassin API can be integrated into email systems including procmail, sendmail, Postfix, and qmail. Its core distribution provides 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 signed with a GPG key, and downloads include links to 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. The project advises administrators to replace the default report-template contact details with their own support desk information. SpamAssassin is licensed as open-source software.

Who it suits

SpamAssassin suits system administrators who manage email servers and can configure filtering rules or integrate Perl modules. It is intended for server-side spam filtering before messages reach users' mailboxes.

Good to know, and what to watch

  • Combines Bayesian, DNS, collaborative, and content analysis.
  • Plain-text rules and configuration can be customized.
  • API supports procmail, sendmail, Postfix, and qmail.
  • Official downloads include signature and checksum links.
  • Runs on a server rather than as a listed end-user app.
  • Mailing-list responses are provided as time permits.
  • Administrators should replace default report-template contact details.

Apache SpamAssassin

Free

Open source

Getting started

  1. Open the Apache SpamAssassin website
  2. Select Linux or another self-hosted server environment
  3. Deploy the command-line filtering tools or Perl modules
  4. Connect SpamAssassin through its API to procmail, sendmail, Postfix, or qmail
  5. Adjust plain-text tests and configuration, including custom rules
  6. Replace default report-template contact details with your support desk information

Limits to check

SpamAssassin is provided as self-hosted software, with command-line filtering tools and Perl modules in the core distribution. The project lists no free trial, and administrators are responsible for deployment and configuration.

The verdict

SpamAssassin gives administrators several filtering methods and configurable rules, with an API for integration into supported mail systems. It requires server-side setup and ongoing administrative attention, including updating the report-template contact details.

Questions people ask

How much does Apache SpamAssassin cost?

The Apache SpamAssassin plan is free as open-source software.

Which mail systems can it integrate with?

Its Mail::SpamAssassin API can integrate with procmail, sendmail, Postfix, and qmail.

Where does SpamAssassin run?

It runs on Linux, through an API, and in self-hosted server deployments.

What detection methods does it use?

It combines header and text analysis, Bayesian filtering, DNS blocklists, collaborative databases, scoring, plugins, and local or network tests.

What release is listed?

The downloads page lists version 4.0.2 as the released version.

Can administrators change its filtering rules?

Yes. Tests and configuration are stored in plain text, allowing administrators to adjust settings and add rules.

What the maker publishes

API
The Mail::SpamAssassin classes expose an abstract API for embedding the engine in mail systems. source
Bayesian filtering
The software includes Bayesian learning that can be trained with ham and spam examples using sa-learn. source
Command-line tools
The distribution includes filtering tools plus spamc, spamd, sa-learn, sa-update and sa-compile utilities. source
Company ownership
SpamAssassin is an Apache Software Foundation project rather than a commercial vendor product. source
Configuration
Anti-spam tests and configuration are stored in plain text, so users can configure the software and add rules. source
Current listed release
The downloads page lists version 4.0.2 as the released version. source
Current release
The official site lists Apache SpamAssassin 4.0.2, released on 2025-08-30. source
Deployment
The project wiki says SpamAssassin runs on a server and filters spam before it reaches the mailbox. source
Detection methods
It combines header and text analysis, Bayesian filtering, DNS blocklists, and collaborative filtering databases. source
Detection methods
Its scoring framework combines heuristic and statistical tests on headers and message bodies. source
Distribution
The core distribution consists of command-line filtering tools and Perl modules for use in other products. source
Documentation depth
Documentation includes README, INSTALL, UPGRADE, spamd and SQL-preference guides, wiki material and versioned POD manuals. source
Download integrity
Official release archives provide GPG signatures and SHA-256 and SHA-512 checksums. source
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. source
Independent feature gaps
SourceForge marks allow/block lists, audit logs, archiving, recovery, routing, encryption, fraud detection, quarantine, reporting and statistics as not supported. source
Independent integrations listing
SourceForge lists Exim, GlockApps, KMail, Rad Web Hosting, Sekoia.io and SPanel as integrations. source
Independent limitation
Wikipedia notes that heuristic classification can produce both false positives and false negatives. source
Independent platform listing
AlternativeTo categorizes SpamAssassin for Linux, self-hosted, Windows, web and Mac environments. source
Independent popularity
AlternativeTo shows 15 likes for SpamAssassin and labels it free and open source. source
Independent review availability
SourceForge states that SpamAssassin had not been reviewed on its listing when accessed. source
Independent training listing
SourceForge says the available training format is documentation. source
Integration
Its Mail::SpamAssassin API can be integrated into email systems including procmail, sendmail, Postfix, and qmail. source
License
Apache SpamAssassin is free open-source software under the Apache License 2.0. source
Limit: false positives
Project guidance says occasional false positives are unavoidable and recommends checking Bayes and AWL training when they recur. source

Checked against the maker's pages on 14 Oct 2026.