Install guide
Install DMARCo on your own server.
One command sets up the whole stack in a couple of minutes.
1. Requirements
- A Linux serverWith Docker and Docker Compose v2, on x86-64 or ARM64.
- Modest hardwareA small server is enough for a handful of domains.
- A way in from the internetA public IPv4 address with ports 80 and 443 reaching the server, or a Cloudflare Tunnel for a homelab.
- A domainOne you can add DNS records to.
- A report mailboxReachable over IMAP. Uploads through the API need none.
- Optional: an SMTP accountOnly for the notification emails. Any provider works.
2. Run the installer
bash -c "$(curl -fsSL https://raw.githubusercontent.com/dmarcoapp/dmarcoapp/main/install.sh)"
It asks a few questions, such as your domain and how reports should come in, checks that it can reach your mailbox, and sets up everything else, your account included.
Prefer to read before you run? The script is install.sh, and the README has the manual route.
3. Point the dashboard's domain
The dashboard needs one record. The HTTPS certificate is set up automatically.
| Type | Name | Value |
|---|---|---|
| A | dmarc.example.com | your server's IPv4 address |
Running it at home, behind a Cloudflare Tunnel?
That works too, and so does any other proxy that already handles HTTPS. You then need no A record and no open ports. The README shows the setup.
4. Publish the DMARC record
Put the address of your report mailbox in each domain's DMARC record. Add the domain in the dashboard and it shows this record with the right addresses filled in.
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
Watching a domain the mailbox is not on?
With reports going to dmarc@example.com, watching example.net needs this record on example.com. Without it, every large provider quietly stops sending reports for example.net.
example.net._report._dmarc.example.com. TXT "v=DMARC1"
Add one such record for each domain. Or cover every domain at once with a wildcard:
*._report._dmarc.example.com. TXT "v=DMARC1"
The wildcard also lets strangers aim their reports at your mailbox. That costs a little wasted processing and nothing else.
Providers send reports once every 24 hours, so the first numbers appear a day or two after the record goes live.
5. Platform settings
Everything else, such as outgoing email, report retention, and more mailboxes, is set in the dashboard, in Platform settings.
Upgrading
Run the same installer from GitHub inside your install directory, in upgrade mode. It always uses the latest version and reuses the settings your install already has, so it asks only when a release needs something new.
cd dmarco DMARCO_UPGRADE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/dmarcoapp/dmarcoapp/main/install.sh)"
Upgrade one release at a time
There is no stable 1.0 yet, so any release can bring breaking changes. The upgrade tries to handle them for you, but carrying an install across several releases at once is best effort. Go through them in order, 0.6 to 0.7 to 0.8, and do not skip one: the easiest way is to upgrade soon after each release comes out. This gets a firmer plan for 1.0.