Docker Image for OpenDMARC 1.4.2 on Ubuntu 26.10. Follows the sender's DMARC policy.
225
OpenDMARC milter for Postfix. The image listens on a TCP port and evaluates DMARC for incoming mail.
ubuntu:26.10inet:${DMARC_PORT} instead of a local socketAuthservID and TrustedAuthservIDs are set to PF_HOSTNAME. OpenDKIM should use that same name, so OpenDMARC trusts its DKIM result.RejectFailures is off. A failure is handled with the sender’s published policy (none, quarantine, or reject).SPFSelfValidate).IgnoreAuthenticatedClients).RequiredHeaders).The container needs DNS that can look up DMARC and SPF records.
| Variable | Purpose |
|---|---|
PF_HOSTNAME | Public mail hostname. Used as the auth server id. |
DMARC_PORT | TCP port OpenDMARC listens on. This stack uses 10020. |
docker run -d --name opendmarc \
-p 10020:10020 \
-e PF_HOSTNAME=mail.example.com \
-e DMARC_PORT=10020 \
webkutir/opendmarc:1.4.2
Point Postfix at that port, after the DKIM milter:
smtpd_milters = inet:opendkim:41001, inet:opendmarc:10020
docker pull webkutir/opendmarc:latest