How to set up SPF, DKIM, DMARC and a custom domain in Mailrelay, step by step
The DNS records you need to authenticate your emails, where to add them and how to check they work.

The DNS records you need to authenticate your emails, where to add them and how to check they work.
Setting up SPF, DKIM, DMARC and a custom domain is what lets Gmail, Outlook or Yahoo verify that your emails really come from you. Without these records, your campaigns are more likely to end up in the spam folder.
In this guide you’ll see which record to add to your domain’s DNS for each one, where to enable it in Mailrelay and how to check that it works. These are the same steps explained in our help article.
Set up your authentication in just a few minutes
Follow this step-by-step guide to get your SPF, domain and DKIM ready in Mailrelay.
By setting up the three records in your domain’s DNS, in this order:
p=none, which only monitors, and tighten it once everything works.On top of those three there’s the custom domain, which puts your own subdomain in the links and images of your emails.
In Mailrelay, the “Email authentication” panel tells you which record to add in each case and checks that all four are correct. With some hosting providers, it can even do the setup automatically. And it’s the same on every plan, including the free account.
Technical setup is essential for good deliverability. Mailrelay helps you with it: it tells you what to enter for each record and, with some hosting providers, it can even do it automatically for you. And if in doubt, you can always count on our support team. My advice: get them ready before your first send, not when problems start.
Jose Argudo, CMO at Mailrelay
Here’s a summary of the four records:
| Record | Type | Name (host) | Value |
|---|---|---|---|
| SPF | TXT | yourdomain.com | v=spf1 a mx include:spf.ipzmarketing.com -all |
| Custom domain | CNAME | newsletter.yourdomain.com (whichever you choose) | yourdomain.ipzmarketing.com |
| DKIM | CNAME | ipz._domainkey.yourdomain.com | dkim.ipzmarketing.com. |
| DMARC | TXT | _dmarc.yourdomain.com | v=DMARC1; p=none; |
SPF is a DNS record that specifies which servers can send emails on behalf of your domain. This way, spam filters know that Mailrelay sends with your permission and don’t mistake you for someone spoofing your address.
Go to your domain’s DNS panel, or ask your hosting provider to do it:
include:spf.ipzmarketing.comv=spf1 a mx include:spf.ipzmarketing.com -allA domain can only have one SPF record. If you create a second one, both stop working.
It tells servers what to do with emails coming from an unauthorized IP:

A custom domain replaces Mailrelay’s generic domain in the tracking links and images of your emails with one of your own. It will look something like newsletter.yourdomain.com, and your reputation will depend only on your own sending.
tudominio.ipzmarketing.com

Don’t have a Mailrelay account yet?
Create your free account and set up your sending domain with SPF and DKIM from day one.
DKIM adds an encrypted signature to every email. The receiving server checks it, so it knows the message comes from your domain and that nobody has altered it along the way.
In the DNS panel, create a CNAME record:
ipz._domainkey.tudominio.com (replace yourdomain.com with your domain).dkim.ipzmarketing.com. (including the trailing dot).If your DNS provider gives an error with the trailing dot, try without it.
DMARC tells servers what to do with emails from your domain that fail the SPF or DKIM checks.
Create a TXT record in your DNS:
_dmarc.tudominio.comv=DMARC1; p=none;With p=none, servers don’t block anything: they just monitor. It’s the safe way to start. Later on, once everything is working, you can tighten the policy.
A dedicated sending domain is a subdomain you use only for your campaigns, such as news.yourdomain.com. This keeps the reputation of your marketing emails separate from your everyday email: if a campaign generates complaints, your team’s email isn’t affected.
To set it up in Mailrelay:
If you send large volumes, you can go a step further with a dedicated IP, used only by your emails. It’s purchased separately, with any plan, and you’ll find the details in More services. If you use one, warm up the IP gradually: you’ll find how in IP warming.
If your company uses several domains or brands, you can create several custom domains in the same Mailrelay account. Keep three rules in mind:
include:spf.ipzmarketing.com to the existing one.A tidy way to split them:
| Use | Example | What for |
|---|---|---|
| Everyday email | yourdomain.com | Your team’s emails, with your email provider |
| Campaigns and newsletters | news.yourdomain.com | Marketing emails sent from Mailrelay |
| Transactional emails | alerts.yourdomain.com | Confirmations and notifications via SMTP or API |
Go to Settings > Email authentication and enter your domain. The panel tells you whether SPF, the custom domain, DKIM and DMARC are set up correctly.


For the custom domain, you can also use the MxToolbox CNAME lookup: enter your subdomain and click “CNAME Lookup”.
Besides checking the headers, it’s a good idea to analyze the content before sending:

If something doesn’t add up, contact us through any of our support channels and we’ll help you check it.
It’s usually a matter of minutes or a few hours, but some providers take up to 24-48 hours. If the panel doesn’t detect them yet, wait a little and check again.
No. If you already use SPF for other services, such as your business email, add include:spf.ipzmarketing.com to your existing record.
Since 2024, Gmail and Yahoo have required it from anyone sending more than 5,000 emails a day to their users. Even if you send fewer, it’s worth having: with p=none it doesn’t block anything and it makes your domain more trustworthy.
Your emails are still sent, but the links and images use a generic domain. With your own subdomain, the reputation of your sending depends only on you.
Yes, and it’s recommended. Authentication doesn’t depend on your plan: it depends on your domain. Doing it from your first send helps you reach the inbox.
With some hosting providers, yes: the Email authentication panel detects when it’s possible and does the setup automatically. If that’s not your case, it tells you which record to add where, and the support team will help you check it.
Setting up these records correctly improves your inbox placement rate. And if you also send through an SMTP relay server or smarthost, it’s just as important. To learn more, read our posts on sending domains and deliverability.
Send with maximum deliverability
With the right setup, your campaigns will always reach the inbox. Get started with Mailrelay.
How to achieve the best email marketing deliverability
What deliverability measures and which settings get your emails into the inbox.
What Outlook, Gmail and Yahoo require to keep you out of spam
The major providers’ current requirements for getting your emails delivered.
Email headers: how to show them
What email headers are, how to view them and what sending problems they reveal.
Mailing bounce reasons and solutions
Why emails bounce and what to do in each case.
Jose Argudo
CMO at Mailrelay. Writes about email marketing, copywriting and conversion for small businesses and entrepreneurs.