How to add SPF, DKIM and DMARC records at IONOS
Updated · 8 min read
In short
- On IONOS nameservers, IONOS SPF is on by default and IONOS adds its mail servers to any SPF record you create, so read the published record after every change.
- IONOS creates the DKIM CNAMEs for its own mail. For Microsoft 365, Google Workspace or a subdomain, you add the DKIM records yourself.
- DMARC is a TXT record at _dmarc that you add. Start at p=quarantine with a reporting address once every sender passes.
On this page
- IONOS's nameservers have to be in charge
- The DNS page, and fields that change names
- SPF: IONOS SPF, and the record it edits for you
- DKIM: the CNAMEs IONOS makes, and the ones you add
- DMARC: a TXT record you add yourself
- How to confirm it worked
- What commonly goes wrong at IONOS
- Sources, and how current this guide is
IONOS does a good deal of this work for you, which is exactly why it is worth checking. On a domain that uses IONOS's nameservers, IONOS SPF is switched on by default, the DKIM records for IONOS mail are created automatically, and when you add an SPF record for another service, IONOS adds its own mail servers to it. What is left for you is checking what is already published, adding the records your other services need, and publishing DMARC, which IONOS's help treats as a record you add yourself.
Where IONOS's help pages for different countries disagree — the SPF value does — both versions are given.
Checked against IONOS help, 2026-11-19. IONOS can rename a menu or move a button without notice, so treat the labels below as a dated snapshot: where your screen differs, look for the field each step describes. The pages we read are listed at the end, and where they say nothing, this guide says so rather than guessing.
Check yours now
IONOS's nameservers have to be in charge
IONOS's help says it plainly: the IONOS name servers must be in use for changes made in its DNS settings to take effect. If the domain's DNS is hosted elsewhere, IONOS's own advice for its mail is to set up the SPF record with that DNS provider instead.
That cuts both ways. A domain registered at IONOS but using another provider's nameservers ignores everything added at IONOS, and a domain that has just moved to IONOS's nameservers ignores whatever is still configured at its previous host.
dig +short NS example.comThe DNS page, and fields that change names
Log in, open Domains & SSL, select the gear icon under Actions next to the domain, and choose DNS. Add Record opens the form: choose the Type, fill in the fields, and select Save. IONOS's articles are not consistent about labels — Host name, Hostname and Host are the same field, as are Points to and Point to — so follow the steps below by field rather than by exact wording.
- Host name: @ for the domain itself, _dmarc for DMARC, and the selector followed by ._domainkey for a DKIM record. One sentence in IONOS's TXT help needs correcting here: it describes @ as a wildcard that also covers www and every subdomain. In DNS, @ means the domain itself and nothing else. An SPF record at @ does not apply to www.example.com or shop.example.com; a subdomain that sends mail needs its own SPF record, and it inherits DMARC only through the domain's policy for subdomains.
- Value, for a TXT record, or Points to, for a CNAME. For a CNAME, IONOS asks for the fully qualified host name without http:// or https:// in front.
- TTL: optional. IONOS's own DKIM records use one hour and its Microsoft 365 article asks for one hour, which suits all three records.
If a record you add conflicts with the records of a service active on the domain, IONOS shows a warning. Read it before saving: it usually means one of IONOS's services is managing that name for you.
Type TXT Host name @
Value: v=spf1 include:spf.protection.outlook.com ~all
Type CNAME Host name selector1._domainkey
Points to: copied from the Microsoft Defender portal
Type CNAME Host name selector2._domainkey
Points to: copied from the Microsoft Defender portal
Type TXT Host name _dmarc
Value: v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com
TTL: 1 hour for all four.SPF: IONOS SPF, and the record it edits for you
IONOS's help says IONOS SPF is enabled by default for all IONOS-hosted domains, and the form offers it as a type of its own, IONOS SPF (TXT). The value depends on where your contract is: IONOS's US and Canadian help gives v=spf1 include:_spf-us.ionos.com ~all, and its UK help gives v=spf1 include:_spf-eu.ionos.com ~all.
Here is the part to watch. IONOS says that if an SPF record already exists for another mail service you use, it is automatically supplemented with the information of the IONOS mail servers. So the record you find may contain an include you never typed. That is right if you also send mail through IONOS. If your mail moved to Google Workspace or Microsoft 365 and IONOS mail is no longer used, the IONOS include costs DNS lookups and authorises servers that no longer send for you. Every include counts against the ten-lookup limit of the whole record.
IONOS also states the rule that matters most: you can only set one SPF record for a domain. To add a service, add its include to the record that is there. For Microsoft 365, IONOS sends you to the value shown in the Microsoft 365 admin center's DNS settings.
Every IONOS value ends in ~all, and IONOS's SPF article never mentions -all. Keep ~all only for as long as you are still confirming who sends as you; after that, change the ending to -all, then look the record up again, because IONOS edits it as well. Microsoft explains why the ending matters: it recommends -all so that DMARC can act on a message that fails SPF and has no DKIM signature.
DKIM: the CNAMEs IONOS makes, and the ones you add
For IONOS's own mail, IONOS says there is nothing to do on a domain that uses its nameservers, because it sets up the DKIM records itself. Its help lists them as CNAME records with a one-hour TTL: s1-ionos._domainkey pointing at s1.dkim.ionos.com, s2-ionos._domainkey at s2.dkim.ionos.com, and a third, numbered selector of the same kind. They point at keys IONOS hosts, so IONOS can replace a key without you editing anything.
Subdomains are the exception. IONOS's help says that to sign mail for an existing subdomain you add three CNAME records yourself, with the subdomain's name after ._domainkey in each Host name. Its English pages still show the German placeholder NAME_DER_SUBDOMAIN in that position; it simply stands for the subdomain's name.
For Microsoft 365, IONOS's Defender article walks through adding the two CNAME records by hand: Hostname selector1._domainkey, then selector2._domainkey, each pointing at the target Microsoft shows you, with a one-hour TTL. The example target in IONOS's article ends in onmicrosoft.com. Microsoft moved domains added from May 2025 to a newer format, so copy the target from your own Defender portal rather than from the example, then turn on signing there.
For Google Workspace, the record is a TXT named google._domainkey. IONOS's help does not say how long a TXT value may be, so after publishing a 2048-bit key, let the DKIM checker confirm it finds the whole key, 2048 bits long, before you select Start authentication in Google's Admin console.
One rule from IONOS's CNAME help applies to every DKIM pointer: once a name has a CNAME, you can no longer add other settings for it. Never add a TXT record at a selector that is already a CNAME.
DMARC: a TXT record you add yourself
IONOS's help describes DMARC as a TXT record with the Host name _dmarc and the tags in the Value, separated by semicolons. None of the IONOS pages we read describes IONOS creating one for you, so look for an existing record first, and edit it if there is one. Until there is a record, receivers have no DMARC policy for your domain at all, and nobody reports to you who is sending mail in its name.
Its three examples are worth reading carefully. The first, with p=reject and a rua address, is a sound end point. The second, with p=none, is a monitoring step that protects nothing. The third, with p=quarantine and only a ruf address, asks for forensic reports, which few receivers send, and no aggregate reports, which are the ones you need to see what is failing.
The record to start from, once SPF or DKIM passes for every sender: v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com, with a mailbox at your own domain. Move to p=reject when a few weeks of reports show nothing legitimate failing.
How to confirm it worked
IONOS says changes take effect immediately on its own servers and can take up to an hour to be seen everywhere; its SPF article allows up to 48 hours for SPF to take effect globally. In practice the old record's TTL decides how long other servers keep their copy.
Because IONOS edits records on your behalf, read back what is published rather than what you typed: one line starting v=spf1, containing every include you expect and nothing else; the DKIM selectors you use; one DMARC record. Then run the SPF checker, which counts the lookups the IONOS include adds; the DKIM checker with your selector — s1-ionos, selector1 or google; and the DMARC checker.
Finally, send a message to an outside mailbox and open its headers. A message that passes shows spf=pass, dkim=pass and dmarc=pass in its Authentication-Results line.
# one line; look for an IONOS include you did not add
dig +short TXT example.com | grep spf1
# IONOS mail, created automatically
dig +short CNAME s1-ionos._domainkey.example.com
# Microsoft 365
dig +short CNAME selector1._domainkey.example.com
# exactly one v=DMARC1 record
dig +short TXT _dmarc.example.comWhat commonly goes wrong at IONOS
- Assuming a record at @ also covers www or a subdomain, as IONOS's wildcard wording suggests.
- An SPF record added by hand without first reading what IONOS SPF already publishes, and not looked up afterwards. Whatever IONOS merges, the domain must end up with exactly one.
- Keeping the IONOS include after the domain's mail has moved to another provider.
- A subdomain that sends mail without DKIM, because IONOS creates the records only for the domain itself.
- A DMARC record that asks for forensic reports only, so no aggregate report ever arrives.
- A second DMARC record added beside an existing one, so receivers apply neither.
- Copying the example Microsoft 365 target from IONOS's article instead of your own from Defender.
Sources, and how current this guide is
We read every page below on 2026-11-19 and wrote this guide from what they say, without screenshots, which go out of date faster than the text beside them.
From IONOS's own help:
- Managing TXT Records (www.ionos.com)
- Managing DNS Services (www.ionos.com)
- Using IONOS SPF to Improve Email Delivery (US) (www.ionos.com)
- Using IONOS SPF to Improve Email Delivery (UK) (www.ionos.co.uk)
- Using IONOS SPF to Improve Email Delivery (Canada) (www.ionos.ca)
- Setting the SPF Record for Microsoft 365 in the Domain Center (www.ionos.com)
- Email Authentication with DKIM (www.ionos.com)
- Microsoft 365: Creating a DKIM Entry for a Domain in the Microsoft 365 Defender Portal (www.ionos.com)
- Configuring a CNAME Record for a Subdomain (www.ionos.com)
- Configuring a DMARC Record for a Domain (www.ionos.com)
From Google's and Microsoft's documentation, read the same day, for the steps that depend on the mail provider:
- Google Workspace Admin Help, Set up SPF (knowledge.workspace.google.com)
- Google Workspace Admin Help, Set up DKIM (knowledge.workspace.google.com)
- Microsoft Learn, Set up SPF to identify valid email sources for your Microsoft 365 domain (learn.microsoft.com)
- Microsoft Learn, How to use DKIM for email in your custom domain (learn.microsoft.com)
Check your domain with the SPF checker