DMARC, SPF and DKIM for Mailjet
Updated 2026-11-21
Mailjet sends email on behalf of your own domain. You validate your sending domain, publish the SPF and DKIM records Mailjet shows, and publish DMARC yourself. This guide follows Mailjet's help center. For background on each standard, see SPF explained, DKIM explained and DMARC explained.
What Mailjet sends from
The visible From address is a sender address or domain you add and validate in Mailjet. Use your own domain: Mailjet says "SPF and DKIM cannot be configured for free webmail accounts like Gmail, Yahoo, or Hotmail." The examples below use yourdomain.com, as Mailjet's articles do.
The envelope sender (Return-Path, also called MAIL FROM or bounce address) is Mailjet's by default. As of November 2026 the help center says: "By default the Return-Path header points to bnc3.mailjet.com". You can move it to your own domain with a CNAME on bnc3.yourdomain.com and a support ticket, described under SPF below.
DKIM: Mailjet signs with a key you publish under mailjet._domainkey on your domain. The help center does not print a sample DKIM-Signature header and does not name the d= domain. Its DMARC article says that "with DKIM, achieving a strict alignment match is feasible, when configured correctly with Mailjet". In our reading the signature then carries d=yourdomain.com. Send a test mail and check d= and the Return-Path header yourself.
Mailjet's pages use different names for the same area of the app: "Account > Domains & Sender addresses > SPF/DKIM Authentication", "Account Settings > Domains & DNS" and "the Domains and Senders page (found in Account Settings)". Follow whichever label your account shows.
SPF
Mailjet's setup guide asks for one TXT record with "Name/Host: Use @ or leave it blank to apply to the root domain". As of November 2026 the value is:
yourdomain.com TXT v=spf1 include:spf.mailjet.com ~all
This record uses 1 DNS lookup in the record itself. Mailjet does not document how many nested lookups include:spf.mailjet.com uses. Counted with real DNS on 2026-11-21, it uses none: the record holds only ip4 ranges, so the include costs 1 lookup. RFC 7208 sets the "overall limit of 10" lookups for the whole tree, and the SPF lookup counter counts it (too many SPF lookups).
If the domain already has SPF, merge. Mailjet says "You can only have one SPF record for a domain" and shows this result, with spf.example1.com as its placeholder for your other sender:
yourdomain.com TXT v=spf1 include:spf.example1.com include:spf.mailjet.com ~all
That record uses 2 lookups itself, plus each include's nested lookups (multiple SPF records). Mailjet also notes the SPF record is a TXT record, "Not be confused with the SPF type."
~all or -all. Mailjet's setup value ends in ~all, but its troubleshooting article shows an example ending in -all, and its best practices list ~all, -all and ?all and say "Choose based on your risk tolerance." Keep ~all. RFC 9989 warns that -all can get a message "rejected early in the SMTP transaction, before any DMARC processing takes place", even when aligned DKIM would have passed it, and that such mail "will never appear in aggregate DMARC reports".
Where SPF is actually checked. Receivers check SPF on the Return-Path domain. With the default bnc3.mailjet.com, that is Mailjet's own domain, so in our reading the include on your root does not decide SPF for Mailjet mail, and the SPF pass does not align with your From. Mailjet still asks for the root record and shows a check for it in the app, so publish it.
Custom Return-Path. Mailjet's example record:
bnc3.yourdomain.com. IN CNAME bnc3.mailjet.com.
Then "Open a ticket with our support team" with the API key to customize and the CNAME record, as a screenshot or text. Validate the domain first, because support will ask. As of November 2026 Mailjet says "this option is available only for paid accounts and you can only have one active return-path per API key", and it may refuse accounts that break its Acceptable Use Policy. As a general DNS rule, not specific to Mailjet, a CNAME cannot share a name with other records, so publish nothing else on bnc3.yourdomain.com. The help center does not say which SPF record the CNAME leads to.
DKIM
As of November 2026 Mailjet's setup guide describes one TXT record:
mailjet._domainkey.yourdomain.com TXT k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNAD...
The value above is Mailjet's own shortened example. In general, not from Mailjet's docs, that prefix is the start of a 1024-bit key; a 2048-bit key, the default, is longer and starts differently, so do not compare your key against it. The selector is mailjet. Copy the full key "under the SPF/DKIM Authentication section" of your account. Mailjet warns that some DNS hosts require the whole value in double quotes, and that "some providers may automatically add the domain name to the end of the text value in the Host Field", so check the name after saving.
Key length: Mailjet lists 1024-bit, "2048-bit (Default)" and 4096-bit keys. It warns that some DNS providers "may reject or truncate longer DKIM records"; if yours does, generate a new 1024-bit key and replace the record. See weak DKIM key for what our check reports.
Changing the key: existing domains are not upgraded automatically. Go to Account, Domains & Sender addresses, SPF/DKIM Authentication, Setup SPF/DKIM Authentication, click Regenerate Key under DKIM, choose the size and confirm. The button is greyed out unless the whole domain is validated, not just one address on it. Mailjet does not say whether the selector changes or when it starts signing with the new key, so update DNS straight away and check a test mail.
DMARC alignment
DMARC passes when SPF or DKIM passes and that domain aligns with the From domain. Mailjet's DMARC article explains both modes: strict needs an exact match, relaxed accepts a match on the "parent/root domain" (the organizational domain in RFC 9989), and "By default, DMARC operates with a relaxed policy".
- SPF alignment compares the Return-Path domain with
From. With the defaultbnc3.mailjet.com, our reading is that SPF never aligns with your domain. With a custom Return-Path onbnc3.yourdomain.com, Mailjet's own example says "SPF alignment will PASS in relaxed mode", and it suggests "employing arelaxedSPF check". Keepaspf=r, the default. - DKIM alignment compares the signature's
d=withFrom. Mailjet says strict DKIM alignment is feasible when configured correctly. Mailjet's relaxed example matchesFromonyourdomain.comwith a signature domain oftest.yourdomain.com.
So on a free account, or without the custom Return-Path, DMARC for Mailjet mail rests on DKIM alignment alone. In general, not specific to Mailjet, DKIM usually survives forwarding and SPF often does not.
Step by step to p=reject
- Validate the sending domain. In Account Settings open the Domains and Senders page, click the cog wheel next to your domain and choose Validate. Publish the TXT record shown in the Host and Value fields, then click Validate my domain. Mailjet says DNS changes can take from "a few minutes to 48 hours".
- Publish SPF and DKIM. Add
include:spf.mailjet.comto the single SPF record on the root and themailjet._domainkeyTXT record with the key from your account. Check for green checkmarks next to SPF and DKIM on the domain. - Add a custom Return-Path if you have a paid account. Publish the
bnc3CNAME and open a support ticket. Skip this step on a free account; DMARC then rests on DKIM. - Publish DMARC with p=none and reports. Add a TXT record at
_dmarc.yourdomain.comwithv=DMARC1; p=none; rua=mailto:[email protected]. Delivery does not change; receivers start sending aggregate reports. - Read the reports and fix other senders. For a few weeks, check that Mailjet mail passes aligned DKIM, and give every other legitimate sender aligned DKIM or SPF.
- Move to p=quarantine. Change the policy to
p=quarantineand keep reading reports, because a sender you missed now lands in spam. - Move to p=reject. When the reports show nothing legitimate failing, change the policy to
p=reject.
The record for step 4:
_dmarc.yourdomain.com TXT v=DMARC1; p=none; rua=mailto:[email protected]
That record triggers our DMARC policy none note on purpose. The final record:
_dmarc.yourdomain.com TXT v=DMARC1; p=reject; rua=mailto:[email protected]
Mailjet's own examples also add ruf for failure reports. Its DMARC article recommends starting with p=none and "progressing from p=none to p=quarantine to p=reject", but its step 3 says to adjust "to quarantine or reject". Do not skip quarantine. Some receivers support pct (RFC 7489) or t=y (RFC 9989), but RFC 7489 says "unknown tags MUST be ignored", so a receiver may apply p=reject; t=y as a full reject. Neither tag is a safety net (partial pct).
Common mistakes
- Using
-allbecause an example shows it. Mailjet's setup value is~all; keep it (see the SPF section). - A second SPF record. Merge
include:spf.mailjet.cominto the existing record. - Expecting SPF alignment by default. The root include does not change the default
bnc3.mailjet.comReturn-Path. Without the custom Return-Path, rely on DKIM. - A doubled DKIM name. If your DNS host appends the domain,
mailjet._domainkey.yourdomain.com.yourdomain.comfails (DKIM not found). - A truncated 2048 or 4096-bit key. Check the published value against the one in Mailjet.
- No report address. Without
ruayou cannot see what fails (DMARC without rua).
How to check it
Run the email security check on yourdomain.com. Use the SPF lookup counter on the root to count the full tree, including include:spf.mailjet.com. Enter the selector mailjet in the DKIM selector finder. Build your policy with the DMARC record generator. Then send a test mail and read the Return-Path header and the d= in DKIM-Signature.
Frequently asked questions
Where does the Mailjet SPF record go?
Mailjet's setup guide puts it on the root domain: a TXT record with host @ and, as of November 2026, the value v=spf1 include:spf.mailjet.com ~all. If the domain already has an SPF record, add the include to it instead of publishing a second one. Note that by default the Return-Path points to bnc3.mailjet.com, so in our reading receivers check SPF on Mailjet's domain, not on yours, and that SPF result does not align with your From domain.
Can SPF align with my domain when I send through Mailjet?
Only with a custom Return-Path. Mailjet describes a CNAME bnc3.yourdomain.com pointing to bnc3.mailjet.com, which support then activates after you open a ticket. It is available only for paid accounts, with one active Return-Path per API key. Because bnc3.yourdomain.com is a subdomain, SPF aligns with yourdomain.com only under relaxed alignment, which Mailjet recommends.
What does the Mailjet DKIM record look like?
As of November 2026 it is a TXT record named mailjet._domainkey.yourdomain.com with a value that starts k=rsa; p=. Copy the full key from the SPF/DKIM Authentication section of your Mailjet account. Mailjet offers 1024, 2048 (the default) and 4096-bit keys; check that your DNS host accepts the longer records.
Does Mailjet set up DMARC for me?
No. Mailjet's DMARC article shows example records, but says its support is limited to guidelines and does not help with the setup itself or with reading reports. You publish a TXT record at _dmarc.yourdomain.com yourself, start with p=none and a rua address, then move to quarantine and reject.
Sources
- Authenticating Domains with SPF and DKIM: A Complete Guide, Mailjet Help Center, fetched 2026-11-21.
- Can I customize the return-path header with Mailjet?, Mailjet Help Center, fetched 2026-11-21.
- Understanding DMARC, Mailjet Help Center, fetched 2026-11-21.
- SPF (Sender Policy Framework) issues Troubleshooting, Mailjet Help Center, fetched 2026-11-21.
- Understanding SPF and how it works, Mailjet Help Center, fetched 2026-11-21.
- Understanding DKIM and how it works, Mailjet Help Center, fetched 2026-11-21.
- RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1, RFC Editor, fetched 2026-11-21.
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC), RFC Editor, fetched 2026-11-21.
- RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC), RFC Editor, fetched 2026-11-21.