Stop the emails you send from being marked as spam for no reason by setting up SPF records on your domain.
Did you know that anyone can pretend to send email as someone else? That's why it's so easy to send fake email that looks like it comes from the right sender.
Being able to sign as anyone is actually the very feature we rely on in systems that send newsletters. It's really just like sending regular post. We can sign it as anyone we like.
The bigger the spam problem has grown, the smarter the solutions have become. One of them is called SPF records, and it protects against fake senders.
What is an SPF record?
SPF, which stands for Sender Policy Framework, is really nothing more than a list of trusted servers that are allowed to send email on behalf of your domain name. The list is published on your domain name.
Imagine you send a newsletter from [email protected] through a popular service like MailChimp. When the email reaches the recipient's mail server, it will ask your domain name which senders you've allowed. If MailChimp isn't on the list, the email will probably be marked as spam.
The same goes if you use Google G Suite or Microsoft Office 365 for your regular email, for example. If you don't say that their servers are allowed to send email, your messages won't get through properly.
How do I create an SPF record?
Technically, an SPF record is a DNS record of the type “TXT” (text) with a list of different rules.
You also say what you want the recipient to do if the email doesn't match the list. Should it be accepted anyway, marked as spam or simply rejected? You choose for your recipients.
A very simple SPF record looks like this:
v=spf1 a mx ~allIt reads like this: Allow all web servers on the domain (A records) and all connected mail servers (MX records). Mark email that doesn't meet the rule as spam (~all).
For services like Office 365 or MailChimp, it's not unusual to get more rules to add that include their servers. Then it can look like this (with MailChimp as the example):
v=spf1 a mx include:servers.mcsv.net ~allIf you want to tinker more and understand how to build an SPF record, you can use a generator to create the records. You can also easily check what your SPF record looks like today.
💡 Tip: Every provider that deals with email has guides today on which SPF records you need to add for their particular service.
Also keep in mind that the maximum length of an SPF record is roughly 255 characters.
How do I add this to my domain name?
It's best to get in touch with your web host or the company your domain is registered with. They'll help you with exactly how to do it on their service. How you get to your DNS records varies from provider to provider.