MIMEDefang

From Wikipedia, the free encyclopedia
MIMEDefang
Mimedefang-logo.png
Developer(s)Dianne Skoll, Dave O'Neill, Faraz Vahabzadeh, Giovanni Bechis, Bill Cole, Kevin A. McGrail
Stable release
2.86 / December 17, 2021 (2021-12-17)[1]
Repository
Written inC, Perl
TypeMail filtering
LicenseGNU General Public License
Websitemimedefang.org

MIMEDefang is a GPL licensed framework for filtering e-mail. It uses sendmail's "Milter" API, some C glue code, and some Perl code to let the user write high-performance mail filters in Perl.[2]

MIMEDefang can be used to:[3]

  • Block viruses (e.g. using Clamav)
  • Block or tag spam (e.g. using SpamAssassin)
  • Remove HTML mail parts
  • Add boilerplate disclaimers to outgoing mail
  • Remove or alter attachments
  • Replace attachments with URLs
  • Implement sophisticated access controls.

History[]

MIMEDefang was originally developed by ,[4] who was contracted by the Royal College of Physicians and Surgeons of Canada in 2000 to help stop the flood of email viruses to the college's network. The software was written to filter attachments and was originally called MIMESweeper, then MIMEDefanger, and currently MIMEDefang. Skoll announced her software to the public on August 28, 2000. On December 21, 2001, a version incorporating support for SpamAssassin was released, making MIMEDefang a filter for both spam and viruses. Skoll's company, Roaring Penguin Software, developed and sold a commercial anti-spam product known as CanIt, which is based on the open-source version of MIMEDefang.

Roaring Penguin Software was acquired by AppRiver in March 2018.

On March 5th, 2020, AppRiver agreed to give The McGrail Foundation leadership of the open-source MIMEDefang project[5] for a period of three years, automatically renewable for one-year terms after that unless either AppRiver or The McGrail Foundation chooses not to renew the agreement.

On May 28th, 2021, Dianne Skoll announced[6] a fork of the project, known as Mailmunge.

Architecture[]

The Milter library included with Sendmail uses POSIX threads to allow multiple concurrent filters. MIMEDefang's Perl filter uses a pre-forked process model, similar to the traditional Apache Web server multi-processing model. MIMEDefang therefore consists of three components:[3]

  • A multithreaded C program that communicates with Sendmail and the filtering processes
  • A multiplexer (written in C) that manages a pool of Perl scanning processes (called "slaves")
  • A Perl program called mimedefang.pl that provides the basic filtering infrastructure.

MIMEDefang users code their filtering policies in Perl, using the infrastructure provided by mimedefang.pl. They don't need to worry about thread synchronizations because each Perl filter is a separate single-threaded process.

The infrastructure provided by mimedefang.pl follows the Milter API reasonably closely, but not exactly. It includes convenience routines for parsing and rebuilding MIME messages so that filter authors can concentrate on high-level policy rather than worry about low-level API details. This convenience comes with a small loss of flexibility and some loss of performance.

References[]

  1. ^ Bechis, Giovanni (17 December 2021). "MIMEDefang 2.86 released". mimedefang (Mailing list).
  2. ^ "MIMEDefang". Archived from the original on 21 May 2014. Retrieved 21 May 2014.
  3. ^ a b "Frequently Asked Questions". Archived from the original on 21 May 2014. Retrieved 21 May 2014.
  4. ^ "Who is Dianne?".
  5. ^ "MIMEDefang donated to The McGrail Foundation".
  6. ^ "Mailmunge Announcement".

External links[]

Retrieved from ""