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.
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.
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”.
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.
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.
Jose Argudo
CMO at Mailrelay. Writes about email marketing, copywriting, and conversion for small businesses and entrepreneurs.