Milter
Milter (portmanteau for mail filter) is an extension to the widely used open source mail transfer agents (MTA) Sendmail and Postfix.[src] It allows administrators to add mail filters for filtering spam or viruses in the mail-processing chain.[src] In the language of the art, "milter" refers to the protocol and API implementing the service, while "a milter" has come to refer to a filter application that uses milter to provide service.[src]
Milter (portmanteau for mail filter) is an extension to the widely used open source mail transfer agents (MTA) Sendmail and Postfix.[src] It allows administrators to add mail filters for filtering spam or viruses in the mail-processing chain.[src] In the language of the art, "milter" refers to the protocol and API implementing the service, while "a milter" has come to refer to a filter application that uses milter to provide service.[src] ==History== Prior to the advent of milter, an email filter was generally implemented as a program to which an MTA would hand the message once it has completely arrived, with most of the message's envelope information removed.[src] That program could then analyze the header and body of the message and make a decision to accept the message (i.e.[src] return a "success" status to the MTA) or reject it (i.e.[src] return a "failed" status to the MTA).[src] The MTA would then log a successful delivery or return a failure message to the sender as appropriate, and the filter would be responsible for affecting the delivery of the message (to the intended inbox(es) as-is, or modified to remove unwanted content, or to specific folder(s), etc.).[src] An MTA that is milter-capable instead notifies filters to which it is connected about each phase of the delivery of a message, from initial client connection through completion of transmission.[src] At each phase of the SMTP session, the filter is given data about the arriving message and then has an opportunity to terminate acceptance of the message early when appropriate.[src] For very large messages, this can have an enormous impact when a decision to reject can be made as early as possible.[src] Moreover, unlike the former model, a milter-capable MTA can connect to multiple filters in parallel that serve specific purposes such as anti-virus, anti-spam, message authentication, flow regulation, etc.[src] Finally, such filters can take special action on the message: add or remove recipients in the envelope; alter the body prior to delivery; add, change or remove header fields in the message, etc.[src] The Sendmail Consortium includes a special thread-based library in the sendmail distribution that provides the milter API.[src] ==MTAs== ===Sendmail=== Milter was first officially introduced to Sendmail 8.12.0 released on September 8, 2001.[src] Milter was available in sendmail 8.11.x versions as an FFR (For Future Release/Beta code).[src] Milter has undergone substantial improvements since its first official release.[src] ===Postfix=== Milter support was added to Postfix 2.3.0 released July 12, 2006.[src] Many, but not all, milters can be used with Postfix "out of the box".[src] ==Interface== The Sendmail Consortium provides a documented Application Programming Interface that can be used to create milters for special needs.[src] The library provided by The Sendmail Consortium is pthread-based.[src] However, documentation of the protocol used for communication between sendmail and milter processes is not provided.[src] This internal protocol is subject to changes in new sendmail versions.[src] ==Sample Milters== MIMEDefang ClamAV Amavis with the tool amavis-milter Rspamd ==References==[src]
27 sentences · 27 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Milter." encyclopegia.org, 2025, https://encyclopegia.org/wiki/milter. Accessed 28 November 2026.
Chicago
"Milter." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/milter.
APA
encyclopegia.org. (2025). Milter. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/milter
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2001-09-08 | Wikipedia |
| release date | 2006-07-12 | Wikipedia |