How do you set up DMARC for Mailjet?
Mailjet DMARC setup has three parts: validate the sending domain, publish the SPF and DKIM records Mailjet generates (include:spf.mailjet.com and a TXT key at mailjet._domainkey), then publish one DMARC record at _dmarc. DKIM signs with your domain and aligns with the From address, so DMARC passes even though SPF checks Mailjet's own return path.
Mailjet (now Sinch Mailjet) is an email service provider (ESP) for marketing and transactional mail that MSPs (managed service providers) find at many UK and European SMB clients, often set up by a marketing team or a web developer without IT involvement. This guide lists the records Mailjet asks for, as documented in Mailjet's SPF and DKIM guide and its developer documentation as of November 2026, and explains what each one means for DMARC (Domain-based Message Authentication, Reporting and Conformance). For protocol background, start with the DMARC guide.
Key takeaways
- Mailjet generates two TXT records per domain: an SPF value containing
include:spf.mailjet.comand a DKIM key atmailjet._domainkey. Domain ownership is proved with a TXT token or a file on the website. - By default the return path is
bnc3.mailjet.com, so SPF passes for Mailjet but does not align. DKIM is the aligned path unless you add a custom return path. - Mailjet documents a custom return path: a CNAME from
bnc3.yourdomaintobnc3.mailjet.com, activated through a support ticket, one per API key. - Domain validation applies only to the API key (account or sub-account) it was done in. A metasender, approved by Mailjet support, shares a sender across all API keys.
- Mailjet's own DMARC guidance follows the same order RFC 9989 does:
p=none, thenp=quarantine, thenp=reject.
Which DNS records does Mailjet ask for?
Mailjet asks for a domain ownership proof, an SPF TXT record and a DKIM TXT record, and recommends a DMARC record. The developer documentation shows the SPF value as v=spf1 include:spf.mailjet.com ?all and the DKIM record name as mailjet._domainkey.example.com. Copy the exact values from the client's Mailjet account, because the DKIM key and ownership token are unique.
| Record | Type | Host | Value (example) | Purpose |
|---|---|---|---|---|
| Ownership token | TXT | mailjet._<token-id> |
Token string from Mailjet | Proves you control the domain (alternative: a file on the website) |
| SPF | TXT | @ (root of the sending domain) |
v=spf1 include:spf.mailjet.com ~all merged into the existing record |
Authorises Mailjet servers |
| DKIM | TXT | mailjet._domainkey |
k=rsa; p=MIGf... (from Mailjet) |
Public key for Mailjet's DKIM signature |
| Custom return path (optional) | CNAME | bnc3 |
bnc3.mailjet.com |
Moves the envelope sender onto the client's domain |
| DMARC | TXT | _dmarc |
v=DMARC1; p=none; rua=mailto:... |
Policy and reporting |
The ownership token host follows the pattern mailjet._123a4bc56.example.com in Mailjet's API example, with the token value in the TXT record. A complete zone for a client sending from example.co.uk looks like this (values illustrative):
mailjet._123a4bc56.example.co.uk. TXT "123a4bc56d7890efg123h4ijk56l78mn"
example.co.uk. TXT "v=spf1 include:spf.protection.outlook.com include:spf.mailjet.com -all"
mailjet._domainkey.example.co.uk. TXT "k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
bnc3.example.co.uk. CNAME bnc3.mailjet.com.
_dmarc.example.co.uk. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.co.uk"
How do you validate a domain in Mailjet?
Add the domain, prove ownership, then publish SPF and DKIM. Mailjet's domain validation article says to click Add Domain, enter the domain and an optional label, then choose either a temporary file in the website root or a DNS TXT record, and click Check now.
For SPF and DKIM, Mailjet's guide uses the cog wheel next to the domain and Setup SPF/DKIM Authentication, then Refresh to recheck. A green status confirms the records. Mailjet's menu labels vary slightly between its help pages, so follow what the client's account shows. Mailjet says DNS changes may take up to 24 hours to show, and its longer guide allows up to 48 hours.
For MSPs, the DNS TXT method is the better choice. A file in the web root is easy to delete during a website rebuild and leaves no trace in your DNS change log, while a TXT record sits in the zone you already document.
Should you keep Mailjet's ?all in the SPF value?
No. Mailjet's API returns a default SPF value ending in ?all, and its documentation notes that this default does not take existing SPF records into account. Do not publish it as a second record. Take only include:spf.mailjet.com and add it to the client's existing record, keeping the client's own ~all or -all.
Mailjet's guide is explicit that each domain should have just one SPF record. RFC 7208 is stricter: two v=spf1 records produce a permanent error, and evaluation is limited to ten DNS lookups. Each include counts towards that limit, so check the budget before adding Mailjet to a client that already uses several SaaS senders. SPF too many DNS lookups covers the fix.
Why does Mailjet pass DMARC through DKIM and not SPF?
Because SPF checks the envelope sender (the Return-Path), and Mailjet uses its own domain there by default. Mailjet's return-path article states that the default return path is bnc3.mailjet.com. SPF passes for that domain, but it never matches the client's From domain, so SPF cannot align.
RFC 9989, the DMARC standard that obsoletes RFC 7489, passes a message when SPF or DKIM passes and aligns with the From domain. One aligned result is enough. Once the mailjet._domainkey record is live and validated, Mailjet signs with d=example.co.uk, and DKIM, defined in RFC 6376, carries DMARC on its own. Mailjet's own June 2026 article on the new DMARC RFCs makes the same point: reliably passing DKIM alignment is sufficient for DMARC.
In aggregate reports, authenticated Mailjet mail without a custom return path typically looks like this:
| Field | Value | Aligned? |
|---|---|---|
| SPF domain | bnc3.mailjet.com |
No |
| DKIM domain | example.co.uk |
Yes |
| DMARC result | pass |
That is a healthy result. The include:spf.mailjet.com in the client's own SPF record is not what makes this mail pass, because receivers evaluate SPF against bnc3.mailjet.com. It matters for mail that uses the client's domain as the envelope sender, such as a custom return path. Relaxed and strict matching are explained in DMARC alignment explained.
Does Mailjet support a custom return path for SPF alignment?
Yes. Mailjet documents a custom return path in its help article Can I customize the return-path header with Mailjet?. You create a CNAME such as bnc3.example.co.uk pointing to bnc3.mailjet.com, then open a support ticket with the API key and the CNAME. Mailjet activates it.
Three limits matter for planning:
- It is not self-service. Activation goes through Mailjet support, and Mailjet says it can refuse accounts that do not comply with its Acceptable Use Policy.
- One active return path per API key. A client with several brands on one API key cannot give each brand its own aligned return path.
- Relaxed alignment only, in practice.
bnc3.example.co.ukshares the organisational domain withexample.co.uk, so SPF aligns under relaxed mode (the default). Underaspf=s, the exact-match rule means it would not.
Mailjet's June 2026 RFC article calls the custom return path optional and notes that availability may change, so treat it as a second signal, not a dependency. DKIM alignment remains the path that must work.
What does Mailjet say about DMARC?
Mailjet recommends DMARC and describes a staged rollout. Its Understanding DMARC article says to begin with a none policy, analyse reports, and progress to quarantine and then reject, with caution at reject. Unlike some ESPs, Mailjet does not ask you to add its own reporting address to the client's record.
Mailjet's examples include both rua (aggregate) and ruf (failure) addresses. Keep rua and decide on ruf deliberately. Failure reports are defined in RFC 9991, few large receivers send them, and they can contain message content, so many MSPs leave ruf out for privacy reasons.
Mailjet's article on Gmail and Yahoo rules states that bulk senders, which it describes as more than 5,000 messages a day, must publish at least p=none, and that marketing mail must support one-click unsubscribe. It cites Gmail's advice to stay below a 0.10% spam rate and never exceed 0.30%. Google's email sender guidelines are the primary source, and the wider picture is in Google and Yahoo sender requirements.
Does the pct tag still apply to Mailjet clients?
No. RFC 9989 removed pct, so there is no percentage ramp. Mailjet's June 2026 article lists pct, rf and ri as retired tags senders may remove, and notes that receivers ignore unknown tags. The rollout is p=none, then p=quarantine, then p=reject. The new t=y flag marks a policy as in testing while you validate.
How do Mailjet sub-accounts affect domain validation?
Each API key validates domains separately. Mailjet's domain validation article says a domain verification applies only to the API key it was verified for, so a domain used in three sub-accounts must be verified three times. Senders are not shared between the primary and sub-account API keys by default.
Mailjet calls sub-accounts "API keys" and creates them under Account settings > API Key management (Primary and Subaccount). Agencies and MSPs often use them to separate clients or brands under one billing account. That convenience creates two checks:
- Verify the domain in every API key that sends for it. A domain that shows as validated in the primary account can still be unvalidated in a sub-account.
- Check the DKIM value each API key displays. There is only one
mailjet._domainkeyhost per domain. If a sub-account shows a different key from the one already published, ask Mailjet support before overwriting, or you may break signing for the other account.
Mailjet offers a metasender to share a sender across all API keys. You create it with POST /v3/REST/metasender, then request validation from Mailjet support. Once approved, it is authorised on all API keys, and matching senders are validated too.
Which Mailjet API calls help an MSP manage many domains?
Four Mailjet API resources cover most authentication work. POST /v3/REST/sender registers a sender or a whole domain with *@example.com, and creates a DNS entry. GET /v3/REST/dns/{domain} returns the records and status. POST /v3/REST/dns/{domain}/check re-runs the check, and POST /v3/REST/sender/{id}/validate completes validation.
The DNS response returns the fields an MSP needs for a portfolio audit: DKIMRecordName, DKIMRecordValue, DKIMStatus, SPFRecordValue, SPFStatus, OwnerShipTokenRecordName and OwnerShipToken. Status values are Not checked, OK or Error. Because validation is per API key, run the calls with each sub-account's own key pair, not only the primary one:
curl -s --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE"
https://api.mailjet.com/v3/REST/dns/example.co.uk
curl -s -X POST --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE"
https://api.mailjet.com/v3/REST/dns/example.co.uk/check
Store API keys in your password vault with the client record, not in scripts. A scheduled job that flags any domain where DKIMStatus is not OK catches a deleted DNS record before the client's DMARC reports do.
How do you verify a Mailjet setup with dig and email headers?
Check DNS first, then a real message. DNS confirms the records exist; headers confirm Mailjet signs with the client's domain. Run these from any workstation, replacing example.co.uk with the client domain:
dig +short TXT example.co.uk | grep spf1
dig +short TXT mailjet._domainkey.example.co.uk
dig +short CNAME bnc3.example.co.uk
dig +short TXT _dmarc.example.co.uk
Expect exactly one v=spf1 string containing include:spf.mailjet.com, one DKIM key beginning k=rsa; p=, the bnc3.mailjet.com target if a custom return path was set up, and exactly one v=DMARC1 record. On Windows, Resolve-DnsName -Type TXT mailjet._domainkey.example.co.uk does the same job. The DKIM validator checks the published key for the mailjet selector.
Then send a Mailjet test campaign to a Gmail or Outlook mailbox and open the original message. In the Authentication-Results header, a correctly authenticated message without a custom return path looks like this:
Authentication-Results: mx.google.com;
dkim=pass header.i=@example.co.uk header.s=mailjet header.b=AbCdEf12;
spf=pass (google.com: domain of bounce@bnc3.mailjet.com designates 192.0.2.10 as permitted sender) smtp.mailfrom=bounce@bnc3.mailjet.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=example.co.uk
The IP address and local part are illustrative. With a custom return path, smtp.mailfrom should show bnc3.example.co.uk. If header.d or header.i shows a Mailjet domain instead of the client's, DKIM is not set up for that domain or API key. The email header analyzer gives a readable breakdown, and how to read email headers explains each field.
What are the common Mailjet DMARC failure cases?
Most Mailjet failures come from SPF formatting, a domain validated in the wrong API key, or a From address that differs from the authenticated domain. This table maps each symptom to a fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| DMARC fails, DKIM domain is not the client's | DKIM not set up, or set up in another API key | Validate the domain and DKIM in the API key that sends |
| SPF permerror at receivers | Mailjet's SPF value added as a second v=spf1 record |
Merge include:spf.mailjet.com into the one existing record |
| Domain stays in Error status | Host doubled, such as mailjet._domainkey.example.co.uk.example.co.uk |
Enter only mailjet._domainkey, or add a trailing dot |
| DKIM key rejected or truncated | Long TXT value pasted without quotes or split badly | Paste the full value; Mailjet notes some DNS hosts need quotes |
| DKIM fails after a key change | Someone clicked Regenerate Key without updating DNS | Publish the new value straight away, then Refresh |
| Sending works in one sub-account only | Validation applies per API key | Verify the domain in each sub-account, or request a metasender |
Mail from news.example.co.uk fails |
Only the root domain was authenticated | Add and validate the subdomain separately |
| SPF aligned before, now not | Custom return path tied to a different API key | Request the return path for the API key that sends |
For general record errors, see common DMARC errors and how to fix them.
What should an MSP check before moving a Mailjet client to p=quarantine or p=reject?
Confirm that every Mailjet API key passes through aligned DKIM, that the records are documented, and that ownership is agreed. Under RFC 9989, the rollout is p=none, then p=quarantine, then p=reject, with no percentage steps. The UK NCSC guidance follows the same staged path, from a policy of none to rejecting spoofed mail.
- Find every Mailjet stream. Search aggregate reports for SPF domain
bnc3.mailjet.comand DKIM selectormailjet. Ask the client for every Mailjet login and sub-account. Client discovery covers the method. - Validate the domain in each API key that sends for it, using the DNS TXT method so the change sits in your DNS log.
- Merge SPF, do not add. One
v=spf1record, with the client's own-allor~all, inside the ten-lookup limit. - Check DKIM alignment in reports for a full campaign cycle, including transactional mail sent through the Mailjet API or SMTP relay.
- Decide on a custom return path. Request it per API key if the client wants SPF alignment as a second signal before
p=reject. - Authenticate every subdomain used in From addresses, and set
spdeliberately. DMARC for subdomains explains the inheritance. - Document the
mailjetselector, the ownership token, thebnc3CNAME and which API key each belongs to. - Plan offboarding. When the client leaves Mailjet, remove the include, DKIM record, token and CNAME.
DMARC AI classifies sending sources in aggregate reports across all client domains, so a Mailjet sub-account that fails DKIM alignment shows up as a failing source for that client. The broader method is in how to handle third-party senders during DMARC projects, and the same DKIM-first pattern applies to Brevo, Mailgun and SendGrid. Before enforcing, read how to move from DMARC monitoring to enforcement safely.
FAQ
What is the Mailjet SPF include?
The Mailjet SPF include is include:spf.mailjet.com. Add it to the client's existing SPF record rather than publishing Mailjet's default value as a second record. With Mailjet's default return path, SPF is evaluated against bnc3.mailjet.com, so DMARC alignment for Mailjet mail normally comes from DKIM, not from this include.
What is the Mailjet DKIM selector?
Mailjet uses the selector mailjet, so the DKIM record is a TXT record at mailjet._domainkey.example.co.uk. The value is a public key that begins k=rsa; p= and is unique to the account. Copy it from the domain's SPF/DKIM settings in Mailjet or from the DKIMRecordValue field in the API.
Does Mailjet create a DMARC record for my domain?
No. Mailjet generates SPF and DKIM values, but you publish the DMARC record yourself at _dmarc. Mailjet recommends starting at p=none, reading reports and moving to quarantine and reject. It does not ask you to add a Mailjet reporting address, so keep your own monitoring address in the rua tag.
Can Mailjet pass DMARC with SPF alignment?
Yes, with a custom return path. You publish a CNAME from bnc3.example.co.uk to bnc3.mailjet.com and ask Mailjet support to activate it for the API key. SPF then aligns under relaxed mode. Without it, SPF passes for bnc3.mailjet.com and does not align, so DKIM carries DMARC.
Do I have to validate a domain in every Mailjet sub-account?
Yes. Mailjet states that domain verification applies only to the API key it was verified in, so each sub-account that sends for the domain needs its own validation. Alternatively, create a metasender through the API and ask Mailjet support to approve it, which authorises that sender on all API keys.