Flamingo Raises $4.5M to Get MSPs Out of the Ticket Queue

Skip to content
MIMEDefang logo

MIMEDefang

Secure Email Gateway

Open Source
Free Tier
Self-hosted
OpenMSP Score
51
40
Reddit Impact Score
Github Score
52K
32Stars
8Forks
822Commits
GNU General Public License v2.0License
Nov 18, 2026Last commit
MIMEDefang is an open-source email filtering framework, originally written by Roaring Penguin Software in 2000 and now maintained by The McGrail Foundation under the GNU GPL v2. It connects to Sendmail (8.12 or later) or Postfix (2.3 or later) through the Milter API and runs your filtering policy, written in Perl, during the SMTP transaction. A filter can reject, quarantine or modify messages: remove or replace attachments, add disclaimers, call SpamAssassin and antivirus scanners such as ClamAV, and apply per-sender or per-recipient rules. A multiplexor keeps a pool of Perl workers so each message is scanned once rather than once per recipient. The latest release is 3.7.1 (July 2026). There is no graphical interface and no hosted service; it suits MSPs and administrators who run their own mail gateways and are comfortable writing Perl.

Key Features

Perl-Based Filtering Policies

Express filtering policies in Perl rather than C, making it quick and easy to write high-performance mail filters with the flexibility of a full programming language.

Milter integration (Sendmail and Postfix)

Uses the Milter API to take part in the SMTP transaction on Sendmail or Postfix, scanning each message once rather than once per recipient.

Virus and Spam Filtering

Calls SpamAssassin for spam scoring and supports many antivirus scanners, including ClamAV, detected automatically at install time.

MIME Message Manipulation

Can remove or replace attachments, add disclaimers, rewrite headers and quarantine messages.

Multiplexor worker pool

The mimedefang-multiplexor manages a pool of persistent Perl workers to keep filtering fast under load.

Connection-stage checks

Filter hooks run at connect, HELO, sender and recipient stages, so mail can be rejected before the body is received.

Pros and Cons

Pros

Mature and maintained

In use since 2000 and still maintained by The McGrail Foundation; version 3.7.1 was released in July 2026.

Highly Flexible and Customizable

Perl-based filtering allows for sophisticated custom policies, integrations with multiple tools, and complete control over mail processing logic.

High Performance Architecture

Scans each message once rather than once per recipient, using a pool of persistent Perl workers.

Complete Open Source Freedom

GPL v2 licensed with full source code and no licensing cost.

Rejects during SMTP

Policies run inside the SMTP transaction, so bad mail is rejected instead of bounced later.

Cons

Requires a milter-capable MTA

Works only with Sendmail or Postfix through the Milter API; other mail servers need their own milter support.

Technical Complexity

Requires significant technical expertise in Perl programming, Sendmail configuration, and system administration for proper implementation and maintenance.

Community-Only Support

Help comes through the mailing list and GitHub issues; the project lists no paid support offering.

Mail Message Modification

Filters can rewrite message bodies and attachments, which can break DKIM signatures if done after signing.

No web interface

No GUI or quarantine portal; everything is configured in Perl and text files.

Feature Comparison

Features
Cost and Licensing
Loading the comparison

Comments

No reviews yet. Be the first to share your experience with MIMEDefang.

Frequently Asked Questions

/vendor/mimedefang