Skip to main content

Getting Started

dotMARC needs two separate Microsoft Entra app registrations, one to read the DMARC reports mailbox and one to sign people in to the dashboard. Do not reuse one for both purposes. Each deployment guide below walks you through creating them at the point you need them, so pick how you want to run dotMARC first.

Configure​

This is a reference, not a setup guide

This table only explains what each setting means. It is not the place to set dotMARC up, and following it on its own will leave you with a half-configured install. All setup instructions, including creating the Entra app registrations and supplying these values, are in the deployment guides: Deploy with Docker or Deploy to Azure.

Everything dotMARC reads is set through configuration. Both deployment guides set these for you.

Set via environment variables (double-underscore nesting):

VariableDescription
Graph__ClientIdMailbox app registration's client ID
Graph__TenantIdYour tenant ID
Graph__ClientSecretMailbox app registration's client secret
Graph__MailboxAddressThe shared mailbox address receiving DMARC reports
Graph__PollIntervalSecondsDefault 300
EntraId__TenantIdYour tenant ID
EntraId__ClientIdDashboard app registration's client ID
EntraId__ClientSecretDashboard app registration's client secret
ConnectionStrings__DotMarcPostgreSQL connection string; defaults to Host=localhost;Database=dotmarc;Username=dotmarc;Password=dotmarc
InitialAdmins__EmailsComma-separated list of email addresses granted the Admin role the very first time the app starts with no existing access grants either a genuinely fresh install, or this app's first deploy of the permissions feature to an existing live environment. Only takes effect while the UserAccess table is empty; harmless to leave set afterwards.
Set InitialAdmins__Emails before deploying this feature

Authorization is deny-by-default: with no existing access grants, the fallback policy locks out every user, including the operator, unless InitialAdmins__Emails seeds at least one Admin grant on that first startup. If you deploy without it, recovery requires direct database access to insert a UserAccess row pointing at a locked Admin role.

Choose how to run it​

Both paths run the exact same product image and cover the same ground end to end - pick whichever fits how you already operate:

Deploy with DockerDeploy to Azure
Best forSelf-hosters: your own hardware, a home/office server, or any VPSTeams already running infrastructure on Azure
You manageThe host, Docker, TLS (a bundled Caddy setup handles this for you)Nothing beyond the app config - Container Apps handles the rest
DatabasePostgreSQL container, your own volume/backupsManaged Azure Database for PostgreSQL Flexible Server
Cost modelWhatever your own hardware/VPS costsPay-as-you-go Azure resources

Not sure? Deploy with Docker is the faster path to a first working instance - a single docker compose command gets you a complete stack, including HTTPS. Deploy to Azure trades a bit more setup for infrastructure you don't have to maintain yourself.

What you'll see​

Once your first DMARC report arrives, Dashboard shows the action centre: message volume and pass rates, domains needing attention, outstanding sender decisions, and quarantines/rejects to investigate. Domains in the main navigation is the full domain list, with per-domain report and DNS status. The screenshot below shows the earlier combined layout; in 0.14 the list has its own page.

On narrower screens, use the Open navigation menu beside the logo to reach Dashboard, Domains, Alerts and the management pages your permissions allow. The menu scrolls on short screens, and dark mode and sign-out remain directly available in the app bar.

dotMARC dashboard showing pass/fail rates, DNS status, and polling status across monitored domainsdotMARC dashboard showing pass/fail rates, DNS status, and polling status across monitored domains

Domains and filters​

Staff lists use the same control order: visible Search, Sort where ordering is available, one Filters button, then Add and other list actions. Search labels say what they match, such as domains, message IDs or audit summaries; they are not a cross-field global search. Add, Grant access and Create key open their input forms only when selected. Controls wrap on narrow screens.

Domains supports All domains and By group. Both use exactly one Filters panel above the list, with visible domain search and sort outside it. The panel contains Group, Tag, report status, pass rate, last report, monitored state, DMARC target and DNS status filters. Domains also includes minimum report count, PSA company override and Dashboard queue filters. Filters apply to every group together; groups without matches disappear. A domain in several groups may appear in each, but the matching-domain count counts it once.

Collapsing Filters leaves the criteria active. The button counts advanced criteria, not the visible search or sort. Clear filters resets the advanced criteria while keeping search and sort; clear the search input separately to remove that criterion. It does not change your access scope or saved default. Server logs reset to their default Warning level. Domains also shows a summary below the toolbar. Save as my default remembers structured criteria, view and sort for that page; text searches and temporary Dashboard queues are not saved as defaults. Dashboard and Domains defaults are independent. Existing saved Dashboard list preferences migrate to Domains. Audit and server logs keep newest-first ordering; alert rules keep processing order even when filtered.

Status columns use compact labelled icons: hover for the status, or open the domain for full detail. Use Show management columns, then expand a domain's Manage control for group/tag assignment, PSA overrides, report counts and deletion, subject to your existing permissions. Management opens beneath the row rather than appending wide columns; group/tag/report sorting is in Sort domains. When a table still overflows, a synchronized horizontal scrollbar remains at the browser bottom while that table is in view, including keyboard access. Manual drag ordering requires All domains with no active filters or column sort. Authorised DNS editors can select domains and choose Review selected DNS for bulk DNS review and results. The selection toolbar stays beneath the app bar while scrolling. Selection follows distinct domains across grouped views, survives sorting and drops domains hidden by filters or changed access. Add and Import are available with domain-creation permission. Manage > Tags owns tag creation, renaming, colours and deletion, separately from Groups.

Opening a domain and using its Back button or browser Back restores the list's filters, sort and position for up to 30 minutes in the same tab. Fresh navigation starts from that page's saved default. A directly opened domain falls back to Domains.

Dashboard action centre​

The summary cards and both domain queues share the single Filters panel and your authorised group scope. Large numbers, labels and reporting windows are shown consistently; a missing pass rate reads No data, not 0% or an all-clear.

Both queue sections place their Open ... in Domains action directly below the title, left-aligned consistently on desktop and mobile. Action labels wrap rather than pushing beyond a narrow card.

The first row puts action, sender decisions and checks before the domain count. The second shows pass rate, quarantined, rejected and reported messages. Reported messages is observed aggregate volume over 30 days, not a deduplicated count of unique mail across receivers.

Domains needing attention explains each confirmed DNS/configuration problem, overdue expected report or unresolved sender decision, with links to the relevant domain tab. Confirmed problems appear first, then sender decisions, then unchecked evidence, with deterministic name tie-breaking. Click an action, sender-review or needs-checking card to narrow this queue; Show all attention restores the whole queue without changing the domain filters. Open attention in Domains carries the same scope, filters and selected issue categories into a full-page domain list using the same attention predicate. Clear dashboard queue removes just the temporary queue criterion. Queue choices survive Back navigation but are not saved as defaults. Unknown checks are labelled Needs checking, not confirmed failures. DKIM selectors and MTA-STS are assessed only when configured, and null-SPF domains do not require incoming DMARC reports, usable DKIM selectors or MTA-STS. Known DKIM selectors on null-SPF domains are checked for absence/revocation instead: published keys and malformed records remain visible, while old sending-key evidence needs verification. See Non-sending and parked domains. This is a view of existing observations, not the deferred baseline-aware security score.

Sender-review counts use the same unresolved-decision resolver as Domain Overview, including domain/group/default decisions: Under review is already a decision, not an unresolved sender. Counts cover 30 days and are per sender per domain, not globally unique organisations. Dashboard uses cached sender attribution without performing new DNS or IP lookups; Domain Sources can refine attribution when its live lookups finish.

The attention queue also has multi-select Issue categories: DNS/configuration, Missing reports, Sender review and Needs checking. Select any combination to match a domain in any selected category, counted once. All clears the category selection. Counts show matching domains under the current shared domain filters; they can overlap and should not be added together. Category choices survive Back but do not affect summary cards, investigations or saved domain defaults; only the explicit Open attention in Domains action carries them to the list.

Each attention row separates the domain name, labelled issue descriptions, action links and sender-review work, without the extra report-context column. Authorised users can Add domain directly on Dashboard, Domains or Import. On Dashboard and Domains the button reveals the form only when needed; direct #add-domain links reveal and focus it automatically. The shared form validates names and duplicates and defaults Add to group to the current group filter, which is also carried by the Import domains link. You can change that choice without changing your filters. Scoped editors must choose one of their groups; assigning a group also requires domain-edit permission. Creation does not publish DNS or require a baseline. Expand Advanced for policy, monitoring, DKIM selectors and MTA-STS settings. By default the saved domain opens on Overview with a DNS-review prompt; clear Open domain and set up DNS to stay on the current page with a confirmation link. See single-domain onboarding.

Quarantines and rejects to investigate is separate from configuration problems: rejecting spoofing can mean protection is working. Open investigations in Domains opens the same domain set under the current scope and filters. Its chart, domain counts and View records evidence all use the same seven UTC calendar dates, including today through the displayed snapshot time, bucketed by when reports arrived. Counts are messages, not report or record counts. The evidence dialog shows receiver, receipt time, source IP, disposition, aligned SPF/DKIM results and any supplied override/authentication evidence. The domain Sources page retains its separate 30-day view.

Authorised users also see Integration and ingestion status, explicitly global and unaffected by domain filters: the latest mailbox poll result, retained parse failures and enabled PSA configuration problems. It stays in place but collapses to a status icon and heading when the available checks show no problems; unknown polling, failures, parse errors, missing PSA configuration or recent warnings leave it expanded. Recent integration warnings/errors come from this instance's retained log buffer (up to five events in the last 24 hours), may already be resolved and reset on restart. A ready configuration or an empty log buffer is not a successful live connection test. Polling diagnostics stay below the queues, collapsed after a successful poll without parse failures and expanded for unknown or failed polling.

Drill into any domain for a 30-day pass/quarantine/reject chart, its DMARC record status, and a breakdown of why any rejected/quarantined mail happened - a benign forwarder tripping alignment reads very differently from no reason given at all:

dotMARC domain detail page showing a 30-day pass/fail chart and reject/quarantine reason breakdown for cobalt-freight.exampledotMARC domain detail page showing a 30-day pass/fail chart and reject/quarantine reason breakdown for cobalt-freight.example

The Sources tab breaks that down further per source IP, with the actual SPF/DKIM domain and result behind each pass/fail on hover, plus who owns the IP:

dotMARC Sources tab showing per-source volume, SPF/DKIM results, reject reason, and IP ownershipdotMARC Sources tab showing per-source volume, SPF/DKIM results, reject reason, and IP ownership

Which services are sending​

Above the per-IP table, the Sources tab has a Senders table with one row per sending service your reports point to, such as Microsoft 365, Google Workspace or Mailchimp:

  • Messages and Share are how much of the domain's mail the service sent in the last 30 days.
  • Evidence is a score of the signals dotMARC found for that service, with a label of strong, moderate or weak. It is not a probability, and it never reaches 100%. Open a row to see the signals behind it.
  • Pass rate and Failing show how much of its mail passed DMARC, and how much was quarantined or rejected.
  • Fix says what is failing and what to do about it, naming the service. It appears only when some of that service's mail is failing.

The signals are:

  • an SPF or DKIM domain in the report that belongs to the service
  • the DKIM selector the service is known to use
  • who owns the sending IP
  • the sending IP falling inside an IP range your domain's own SPF record authorises for the service, which is a strong signal
  • the service being included in the domain's own SPF record without a matching IP, which is the weakest signal because it shows what is allowed to send, not what did

dotMARC reads those SPF ranges when it runs the daily SPF check, by following the record's include: and redirect= entries. The evidence says "Your SPF record authorises this IP for" the service. It does not say confirmed: a range shared by many customers of a service shows the service, not that this particular sender is yours. Only entries that authorise count, so a -ip4: or ~ip4: entry is ignored. If the check can't read the record, the last ranges dotMARC read are kept.

Mail from a properly set up Microsoft 365 or Google Workspace signs as your own domain, so it is recognised by its IP owner and DKIM selector instead.

Sources that match no known service are listed last as Not matched to a known service. That means dotMARC could not match them, not that they are bad. The matching is worked out each time you open the page, so it improves as dotMARC learns more services, and it also names the service in failure recommendations, client reports, the client portal and the service field of the sources API.

Decide which senders are authorised​

Overview shows an outlined Review action when sender decisions are outstanding, linking directly to Sources. The count uses the same unresolved-decision resolver as Dashboard: recognised services without a service-level decision plus unrecognised IPs without an IP decision. Under review is already a decision. Sources may refine cached Dashboard attribution with live lookups.

On Sources, expand a service's Source IPs (count) button to inspect its evidence and individual IP decisions. Each Decide or Change control names its service or IP for assistive technology. People without SenderReview see View evidence on Overview and read-only decisions on Sources, not instructions to make changes.

The Decision column is where your team records what it has decided about a sender on this domain:

  • Authorised: it should send as this domain.
  • Unauthorised: it should not.
  • Under review: you are still finding out, for example waiting for the client to answer.
  • Unreviewed: nobody has decided yet. This is the default.

Select Decide (or Change, once there is a decision) beside the status, pick a new one, add an optional note, and save. Hover over a status to see where it came from: this domain, its group, or the baseline. A decision never changes DNS and never blocks mail, because your DMARC policy decides what receivers do. It does change what dotMARC tells you:

  • A sender with no decision raises a new sender alert when it first appears, and counts towards "senders need a decision" on the Overview. Authorised and Under review both stop the alert and the count.
  • An Unauthorised sender whose mail is still being delivered raises an alert (see Alerts).
  • The Fix column changes, as described below.
  • Client reports summarise the decisions, and the API returns each sender's decision.

The row shows who decided and when, and every change is recorded in the audit log.

Change a domain's groups​

Overview's Groups section shows memberships in your authorised scope. With DomainsEdit, use Change groups, choose memberships and select Save groups. The domain's effective DMARC target and inherited sender decisions update immediately; group changes are recorded in the audit log.

Group-limited editors can select only their own groups, must keep at least one, and cannot remove memberships outside their scope. Access and available groups are checked again on save. The same rules apply to Inventory assignment; scoped API keys also cannot remove a domain from their last accessible group. People without edit permission can view memberships but have no change control.

The Fix column changes with the decision:

  • An Unauthorised sender is not asked to be fixed. If its failing mail is all blocked, the row says your policy is blocking it. If some was still delivered, it says how much and what your policy means for that: at none nothing is blocked, at quarantine it goes to spam, and at reject receivers should refuse it.
  • An Unauthorised sender whose mail passes DMARC is flagged first, because it means the sender authenticates as your domain. Decide whether it should be authorised, or remove its access.
  • An Authorised sender gets no fix while its mail passes. If some of it fails, the row says you authorised it but it is failing, and keeps the fix.

Open a service row to decide on a single IP address. An IP decision overrides the decision on its service, and the other IPs show "same as the service". A source in the Not matched row has no service, so you decide on its IPs.

Changing decisions needs the SenderReview permission, which the Admin role has. Custom roles can be given it on the Access page. Anyone who can see the domain can see the decisions.

The domain's Overview tab shows how many senders still have no decision, with a Review button that opens the Sources tab, and it goes away once every sender has one. The sources API returns each source's decision in a read-only decision field: Authorised, UnderReview, Unauthorised or Unreviewed. Client reports say how much mail from unauthorised senders was blocked or delivered.

dotMARC also raises two sender alerts: one when a new sender appears that nobody has reviewed, and one when mail from a sender you marked Unauthorised is being delivered.

Set an answer once for many domains​

You don't have to decide the same sender on every domain. Decisions can be made at three levels, and the most specific one wins:

  1. The domain's own decision, on the service or on a single IP. It overrides everything below.
  2. The group's defaults, set from Manage > Groups with the Sender defaults button on a group.
  3. The baseline, set from Manage > Baselines > Sender. It applies to every domain.

For example, authorise Microsoft 365 in the baseline, mark it Unauthorised in the defaults of a client group that has moved away from it, and authorise it again on one domain of that client that still uses it. Each row in the Senders table says where its decision came from: set on this domain, from a group, or from the baseline. Choosing Reset to inherited in the dialog removes the domain's own decision, so the row falls back to the level below.

  • A baseline or group decision only matters on a domain whose reports show that service. Nothing is added to domains that don't use it.
  • The Domains column on the baseline and group defaults pages says how many monitored domains show each service in their last 30 days of reports, so you can see how far a decision reaches. Found means strong evidence and likely means the service is attributed on weaker evidence. It uses the same evidence as the Senders table, and the owner of an address only counts once that address has been looked up, so a likely count can rise as lookups finish. On a group's page it counts only that group's domains.
  • If a domain is in several groups that disagree, the most cautious decision wins: Unauthorised, then Under review, then Authorised. The row says which groups disagree, and a decision on the domain itself settles it.
  • A sender left Under review can be reminded about. The new sender alert rule can count Under review as undecided, or alert again after a number of days. By default Under review stops the alert.
  • The baseline can be changed only by someone who isn't limited to particular groups. A person limited to some groups can change the defaults of their own groups, and no others.
  • If a service later leaves dotMARC's list of known services, its decision is kept and shown as "no longer recognised", with a button to remove it.

Next: Deploy with Docker or Deploy to Azure to run it in production, or Local Development to run and test from source. Once you're up and running, DNS Provider Push lets dotMARC fix DNS records for you instead of copying them in by hand.