AGPLv3 OPEN SOURCE · POSTFIX & SENDMAIL

One high-performance Go milter to replace the entire legacy stack.

SPF, DKIM, DMARC, ARC, BIMI, IPRev, DNSBLs, streaming ClamAV, greylisting, and telemetry feeds: one Go binary, one socket, and one YAML config.

milter protocol v6 · async DNS & streaming MIME AUTHENTICATED · PASS
Authentication-Results: mx.example.com;
  iprev=pass policy.iprev=198.51.100.25 (mail.sender.org);
  spf=pass smtp.mailfrom=alice@sender.org;
  dkim=pass header.d=sender.org header.s=mail;
  dmarc=pass header.from=sender.org; arc=pass
DNSBL-Results: mx.example.com; ip=pass smtp.remote-ip=198.51.100.25 dns.zone=ip.bl.example.com
Architecture

Built for modern, high-volume mail gateways

Eliminate fragile multi-milter socket chains, redundant DNS lookups, and unmaintained C daemons.

Asynchronous Pipeline

I/O-heavy modules (IPRev, SPF, BIMI, DNSBL, ClamAV) start work as soon as their SMTP phase arrives and synchronize cleanly at End-of-Message.

Atomic SIGHUP Reloads

Reload gomilterd.yaml, DKIM/ARC keys, and DNSBL rules without dropping active SMTP sessions. Built-in pre-flight checks validate configs before swapping.

Zero-Disk Streaming

Messages stream directly to clamd via zINSTREAM, while a 32-shard in-memory greylist store and shared resolver pool keep latency flat.

All-In-One Suite

Built-In Modules

Enable only what you need in gomilterd.yaml, or drop in custom Go modules using skeleton.go.

Module Standard / Protocol Capabilities
iprev RFC 8601 (FCrDNS) Async IP → PTR → A/AAAA verification; shares smtp.rdns with DNSBL
spf RFC 7208 Async HELO & MAIL FROM evaluation with configurable lookup limits and trace headers
dkim RFC 6376 Verifies incoming signatures (configurable max_signatures, default 3) and signs outbound mail with RSA keys
dmarc RFC 7489 Evaluates domain adkim/aspf alignment against From using collected SPF and DKIM results
arc RFC 8617 Validates incoming chains and seals forwarded/mailing-list traffic
bimi BIMI Group Speculative BIMI-Selector lookups at EOH with VMC validation and BIMI-Location stamping
dnsbl DNSBL-Results Async IPv4/IPv6/domain/hash lookups, commercial {key} redaction, and DNSBL-Results headers
clamav ClamAV zINSTREAM Streams raw message headers and body chunks over Unix or TCP sockets without buffering to disk
greylist Triplet Deferral 32-shard FNV-1a in-memory store with subnet matching and optional snapshot or WAL persistence
auth_results RFC 8601 Aggregates all active authentication modules into a single Authentication-Results header
telemetry UDP / Protobuf + HMAC Zero-PII, UDP datagrams with HMAC-SHA256 authentication
Consolidation

Replace 7+ fragile milters with one socket

Stop babysitting half a dozen separate daemons, init scripts, and conflicting DNS caches.

Legacy Postfix Milter Chain FRAGILE
# /etc/postfix/main.cf
smtpd_milters =
  unix:/var/run/spf-milter/spf.sock,            # Python
  unix:/var/run/opendkim/opendkim.sock,
  unix:/var/run/opendmarc/opendmarc.sock,
  unix:/var/run/openarc/openarc.sock,
  unix:/var/run/authmilter/authmilter.sock,     # Perl: IPRev & BIMI
  unix:/var/run/milter-greylist/greylist.sock,
  unix:/var/run/clamav/clamav-milter.sock

# Separate list required so SPF/DMARC/greylist don't hit local mail
non_smtpd_milters =
  unix:/var/run/opendkim/opendkim.sock,
  unix:/var/run/openarc/openarc.sock

milter_protocol = 6
milter_default_action = tempfail

# Synchronous DNSBL checks (no header/Received-hop or DNSBL-Results support)
smtpd_recipient_restrictions =
  reject_rbl_client ip.bl.example.com=127.0.0.2,
  reject_rhsbl_sender dom.example.com=127.0.0.2,
  reject_rhsbl_helo dom.example.com=127.0.0.2,
  reject_rhsbl_reverse_client dom.example.com=127.0.0.2

# 7 daemons, 7 config formats, 7 init scripts, duplicate DNS lookups
Postfix + GoMilterD UNIFIED
# /etc/postfix/main.cf
smtpd_milters = unix:/var/run/gomilterd/gomilterd.sock
non_smtpd_milters = $smtpd_milters
milter_protocol = 6
milter_default_action = tempfail

# 1 binary, 1 YAML config, shared async DNS pool
OPEN SOURCE

AGPLv3 Core & Modules

The full milter daemon, protocol engine, and all built-in authentication, DNSBL, ClamAV, and greylisting modules are freely available under the GNU AGPLv3 license.

EXTENSIBLE

Drop-In Custom Go Modules

GoMilterD handles the milter protocol, session state, and async lifecycle so your custom modules can focus strictly on policy logic. Start from the included skeleton.go template.