What Are SPF and DKIM and How Do I Set Them Up?
To prevent others from sending emails under your domain name, you use authentication methods. They let receiving mail servers know that your emails really come from you. This article explains how to set up the two best-known methods: SPF and DKIM.
SPF
With SPF (Sender Policy Framework), you use a DNS record to state which mail servers may send emails on behalf of your domain. This prevents others from sending emails that appear to come from your domain.
DKIM
DKIM (DomainKeys Identified Mail) adds a digital signature to your emails. Receiving mail servers check that signature with a key in your DNS. That way they know the email really comes from your domain.
Do I need to set anything up myself?
By default, Inboxify uses SPF and DKIM for the return-path address, which we use to process bounces. For the best delivery, also set up SPF and DKIM for your own domain: the domain of the sender address recipients see.
Inboxify shows you which records you need:
- Click your initials at the top right and choose Settings.
- Choose Domains and senders and click your domain.
- Under DNS records you see for each record (SPF, DKIM and DMARC) whether it’s in order. If one is missing, you see which record to create. Copy it with the copy icon.
Tip: A domain appears here as soon as you add a sender address from it. The records are checked once there is a verified address. Read more in Sender Addresses and Domains.
Setting up an SPF record
Does your domain already have an SPF record? Then add include:_spf.inboxify.nl before ~all . Don’t create a second SPF record: a domain may only have one.
If your current SPF record is, for example:
v=spf1 a mx include:spf.protection.outlook.com ~all
it becomes:
v=spf1 a mx include:spf.protection.outlook.com include:_spf.inboxify.nl ~all
No SPF record yet? Then create a TXT record for your domain with:
v=spf1 include:_spf.inboxify.nl ~all
Setting up the DKIM record
For DKIM you don’t create a TXT record but a CNAME record. If your domain name is yourdomain.com, that is:
bm._domainkey.yourdomain.com CNAME dkim.inboxify.nl
How you do this differs per provider. Usually it goes like this:
- Log in to your DNS provider, for example your hosting provider’s control panel.
- Go to the DNS settings and choose your domain.
- Add a new record of the type CNAME.
- Enter
bm._domainkeyas the name. Some providers want the full subdomain, such asbm._domainkey.yourdomain.com. - Enter
dkim.inboxify.nlas the target or value. Some providers want a dot at the end:dkim.inboxify.nl.. - Save the record.
Switching on DKIM signing
Once the CNAME record is found, switch on signing with the DKIM signing toggle. You’ll find it on your domain’s page next to the DKIM record, and in the overview under Settings > Domains and senders. Your emails are now signed with your own domain.
Is the toggle greyed out? Then the CNAME record hasn’t been found yet. Hover over it and you’ll see “Set up the DKIM record first”.
Do you see an orange warning icon next to the toggle? Then signing is on, but the CNAME record can no longer be found. Recipients can only check the signature once the record is back. Restore the record in your DNS and click Check again.
Note: It can take up to 24 hours before a DNS change is known everywhere. Click Check again for your domain to have it checked again. Keep this in mind if you want to send a newsletter soon.
Tip: Not sure how to change DNS records? Ask the company where your domain name is registered. They’re usually happy to help.