Documentation
New to MIMEDefang? The Getting Started guide walks you through installation, writing your first filter, and connecting it to your MTA.
Want a working filter quickly? The Filter Generator builds a mimedefang-filter with spam and virus checks, attachment blocking, SPF, DKIM and more.
Man Pages - Commands
| Page | Description |
|---|---|
| mimedefang(8) | Main milter daemon; connects Sendmail or Postfix to the multiplexor |
| mimedefang.pl(8) | Perl worker process that loads the filter script and processes messages |
| mimedefang-multiplexor(8) | Manages the pool of Perl worker processes |
| md-mx-ctrl(8) | Command-line tool for communicating with the multiplexor |
| mimedefang-filter(5) | Reference for writing your filter script (callbacks, actions, variables) |
| mimedefang-release(8) | Releases or forwards quarantined messages |
| mimedefang-notify(7) | External socket notification interface for multiplexor state changes |
| mimedefang-protocol(7) | Internal communication protocol between the daemon and multiplexor |
| mimedefang-dashboard(1) | Live web console for the mail flow, workers, spam and ML scores (screenshots) |
| mimedefang-test-mail(1) | Runs a message through your filter offline, without an MTA |
| mimedefang-util(1) | Debugging tools for the MIME structure of messages |
| filter-mimedefang.pl(1) | OpenSMTPD filter that connects smtpd(8) to the multiplexor |
Man Pages - Perl API
Core
- Mail::MIMEDefang – core email filtering framework module
- Mail::MIMEDefang::Actions – accept, reject, or modify message actions
- Mail::MIMEDefang::MIME – MIME part manipulation methods
- Mail::MIMEDefang::MIME::Base64 – base64 decoder that detects concatenated streams
- Mail::MIMEDefang::Mail – send mail and run SMTP checks
- Mail::MIMEDefang::Utils – general utility helpers
- Mail::MIMEDefang::RFC2822 – RFC 2822 date formatting
- Mail::MIMEDefang::Unit – unit testing support for filters
Network and spam/virus checks
- Mail::MIMEDefang::Net – RBL and network service lookups
- Mail::MIMEDefang::Antispam – SpamAssassin and rspamd integration
- Mail::MIMEDefang::Antivirus – antivirus scanner integration
- Mail::MIMEDefang::Antivirus::ClamAV – ClamAV (clamd, clamdscan, clamscan)
- Mail::MIMEDefang::Antivirus::NAI – NAI/McAfee (Trellix) uvscan
- Legacy scanners, kept for backward compatibility:
- Mail::MIMEDefang::Antivirus::Legacy::BDC – Bitdefender bdc
- Mail::MIMEDefang::Antivirus::Legacy::CarrierScan – Symantec CarrierScan
- Mail::MIMEDefang::Antivirus::Legacy::CSAV – Command Anti-Virus
- Mail::MIMEDefang::Antivirus::Legacy::FProt – F-Prot
- Mail::MIMEDefang::Antivirus::Legacy::FSAV – F-Secure Anti-Virus
- Mail::MIMEDefang::Antivirus::Legacy::HBEDV – H+BEDV AntiVir
- Mail::MIMEDefang::Antivirus::Legacy::Kaspersky – Kaspersky
- Mail::MIMEDefang::Antivirus::Legacy::NOD32 – ESET NOD32
- Mail::MIMEDefang::Antivirus::Legacy::NVCC – Norman Virus Control
- Mail::MIMEDefang::Antivirus::Legacy::Sophos – Sophos
- Mail::MIMEDefang::Antivirus::Legacy::Trend – Trend Micro
- Mail::MIMEDefang::Antivirus::Legacy::Vexira – Central Command Vexira
Email authentication
- Mail::MIMEDefang::DKIM – DKIM signing and verification
- Mail::MIMEDefang::DKIM::ARC – ARC (Authenticated Received Chain) signing
- Mail::MIMEDefang::SPF – Sender Policy Framework checks
- Mail::MIMEDefang::Authres – Authentication-Results header helpers
- Mail::MIMEDefang::BIMI – BIMI DNS record lookup and verification
- Mail::MIMEDefang::TLSPolicy – MTA-STS and DANE/TLSA outbound TLS policy
Machine learning
- Mail::MIMEDefang::ML – ham/spam/phishing verdicts from self-hosted models
- Mail::MIMEDefang::ML::Laya – Laya backend (mimedefang-laya-server)
- Mail::MIMEDefang::ML::GLiClass – GLiClass backend (mimedefang-gliclass-server)
- Mail::MIMEDefang::ML::OpenAI – OpenAI-compatible backend (Ollama, llama.cpp, vLLM, LM Studio)
Asynchronous checks
- Mail::MIMEDefang::Async – concurrent DNS, socket, and process checks
- Mail::MIMEDefang::Async::Checks – pre-built check descriptors for async use
- Mail::MIMEDefang::Async::Results – translate async check output into filter decisions
OpenSMTPD
- Mail::MIMEDefang::OpenSMTPD – helpers used by the OpenSMTPD filter (multiplexor requests, results and header rewriting)
Changelog
Additional Resources
- Fighting Spam with Perl using Apache SpamAssassin & MIMEDefang - slide deck from The Perl Conference 2019