Imagine receiving a letter with your bank's logo on it, asking you to confirm your password. Would you trust it? You would check the envelope, the letterhead, the return address — anything that proves it really came from your bank. Email works the same way. Every day, criminals send emails that pretend to come from banks, shops and well-known brands. Because of that, mailbox providers check every incoming email for proof that it really came from the sender it claims to come from.
That proof is called email authentication, and it comes down to four records: SPF, DKIM, DMARC and rDNS. They are small entries in your domain's DNS settings, and they make the difference between an email that lands in the inbox and an email that lands in spam — or is rejected outright. This guide explains each one in plain English, shows how they work together, and lists the mistakes that cause the most trouble.
Why authentication exists
Email was invented in a more trusting time. The original design of SMTP did not ask the sender to prove who they were — any server could claim to send from any address. That worked when the internet was small and everyone knew each other. It does not work now. Forged email is the starting point for phishing, the scam where a criminal sends an email pretending to be a bank, a supplier or a boss, and tricks the recipient into handing over a password or paying a fake invoice.
Mailbox providers — Gmail, Yahoo, Outlook and company mail servers — fight this by checking authentication on every message. If your email passes the checks, it is treated as genuine. If it fails, it is treated with suspicion. And the providers have made the checks stricter over time: today, bulk senders are expected to have SPF, DKIM and DMARC all in place, and mail that lacks them is far more likely to be filtered or rejected.
That is why authentication is not optional for a business that sends email. It is the identity card your emails carry. Without it, even a perfectly honest email looks exactly like a forgery, and the receiving server has no way to tell the difference.
SPF: who is allowed to send for your domain
SPF stands for Sender Policy Framework. It is a record in your domain's DNS that lists the servers and IP addresses allowed to send email on behalf of your domain. Think of it as a guest list at the door of a club: if your name is on the list, you get in; if it is not, you are turned away.
Here is how it works in practice. When your email arrives at the receiving server, that server looks up your domain's SPF record and compares the IP address your email came from against the list. If the IP is on the list, the SPF check passes. If it is not on the list, the check fails, and the receiving server treats your email as suspicious.
Setting up SPF means writing a short text record in your DNS. It lists your sending servers — for example, your SenderGun server's IP addresses — and ends with a rule that says what to do with senders who are not on the list. The most common ending is a soft fail, which means "treat unlisted senders with suspicion", or a hard fail, which means "reject unlisted senders". A hard fail is stronger, but you should only use it when you are sure every legitimate sender is on the list, including any other service that sends mail for you, such as your website host or your invoicing tool.
The most common SPF mistakes are easy to make: forgetting to add a new sending server to the list, having more than one SPF record for the same domain, or writing a record with a typo. A domain should have exactly one SPF record, and it should list every service that sends mail as that domain. When SenderGun sets up your server, the SPF record is written for you, including your server's IP addresses.
DKIM: the signature that proves the email is genuine
DKIM stands for DomainKeys Identified Mail. It is a digital signature added to every email your server sends. Think of it as a wax seal on a letter: the seal proves the letter came from the person it claims to come from, and that nobody opened it and changed the contents on the way.
Here is how it works. When your server sends an email, it takes certain parts of the message — the sender, the subject, the body — and creates a unique signature from them using a private key that only your server holds. That signature travels with the email as a header. When the email arrives, the receiving server looks up the matching public key in your domain's DNS, and uses it to check the signature. If the signature matches, two things are proven: the email really came from your domain, and the message was not altered in transit. If someone changed even a single word of the message, the signature would no longer match, and the check would fail.
The strength of the signature depends on the key. A 2048-bit DKIM key is the current standard for serious senders, and it is what SenderGun uses. Shorter keys are easier to forge, and some providers now treat them with suspicion. DKIM also needs to be kept consistent: if you change your sending server or your signing setup, the public key in your DNS must match the private key on the server, or every signature will fail.
One more thing to know about DKIM: it survives forwarding. When an email is forwarded, the sender address often changes, which can break SPF — but the DKIM signature stays with the message, so the receiving server can still verify it. That is one reason DKIM and SPF are used together: each one covers the cases where the other is weak.
DMARC: the policy that ties it together
DMARC stands for Domain-based Message Authentication, Reporting and Conformance. It is the record that tells receiving servers what to do with the results of the SPF and DKIM checks. Without DMARC, a receiving server that sees a failed SPF or DKIM check has to guess what to do. With DMARC, you tell it.
A DMARC record has three parts. First, it states your policy: none, quarantine, or reject. A policy of none means "deliver the message, but send me a report" — this is the safe starting point when you are setting things up, because it lets you see problems without losing email. Quarantine means "send failed messages to the spam folder". Reject means "refuse failed messages entirely". Most businesses start at none, check the reports, fix any problems, and then move to quarantine and finally to reject. Second, the record states which addresses should receive the reports. Third, it states how strictly the checks should be applied, including whether the domain in the checks must match your domain exactly.
Those reports are one of the most valuable parts of DMARC. Receiving servers send you regular reports showing which servers sent mail as your domain, and whether the messages passed or failed authentication. If a criminal is impersonating your domain, the reports will show an unfamiliar server sending mail as you — and you will know about it. If one of your own legitimate services is failing authentication, the reports will show that too, so you can fix it before it becomes a deliverability problem.
DMARC also requires alignment: the domain in the SPF check or the DKIM signature must match the domain your recipients see in the From address. This stops a common trick where a criminal passes SPF using their own domain while showing your domain in the From line. When SPF or DKIM is aligned and passing, DMARC passes, and your email is treated as genuine.
rDNS: the reverse check
rDNS stands for reverse DNS. It is the check that confirms your server's IP address points back to your server's hostname. Normal DNS turns a name into an address: example.com points to an IP address. Reverse DNS turns an address into a name: the IP address points back to a hostname, such as mail.example.com.
When your email arrives, the receiving server looks up the rDNS of the IP address it came from. If the IP has no rDNS record at all, or if the record points to a generic name that does not match your server, many receiving servers will reject the message outright. The reasoning is simple: legitimate mail servers have proper rDNS, while the computers used by spammers usually do not.
rDNS is different from the other three records in one way: it is not set in your domain's DNS. It is set by whoever owns the IP address — usually your hosting provider or your server provider. That makes it easy to forget, and a missing rDNS record is one of the most common reasons a new server's mail gets rejected. When SenderGun sets up a dedicated server, rDNS is configured for your server's IP addresses as part of the setup, so this check passes from day one.
How the four work together
Here is what happens when all four records are in place and an email travels from your server to a customer. Your server sends the email, signed with DKIM, from one of your IP addresses. The receiving server looks up the rDNS of that IP and confirms it matches your server's hostname. It looks up your SPF record and confirms the IP is allowed to send for your domain. It verifies the DKIM signature against the public key in your DNS and confirms the message is genuine and unchanged. It reads your DMARC record, sees that SPF and DKIM both pass and are aligned with your domain, and applies your policy — which, for a genuine message, means deliver it. The message goes to the inbox.
Now imagine one piece is missing. Suppose your SPF record does not include your new server's IP addresses. The receiving server sees an IP that is not on the guest list. DKIM might still pass, so the message might still be delivered — but with a mark against it, and under a strict DMARC policy it could be rejected. Or suppose your DKIM key in DNS does not match the key on your server. Every signature fails, and only SPF is left holding the door. Or suppose rDNS is missing entirely: some receiving servers will refuse the connection before they even look at SPF or DKIM.
The lesson is that authentication is a chain, and the chain is only as strong as its weakest link. All four records need to be present, correct, and consistent with each other. That is why it is worth having them set up by people who do it every day, rather than piecing them together from guesswork.
Common setup mistakes
Here is a checklist of the mistakes we see most often, and how to avoid them.
- More than one SPF record: a domain must have exactly one SPF record. Two records cancel each other out, and the check fails. Combine all your senders into a single record.
- SPF record missing a sender: every service that sends mail as your domain must be in the SPF record — your SMTP server, your website host, your invoicing tool, your support desk. Miss one, and its mail fails the check.
- DKIM key mismatch: the public key in DNS must match the private key on your sending server. If you change servers or regenerate keys, update DNS at the same time.
- Short DKIM keys: use 2048-bit keys. Shorter keys are weaker and some providers treat them with suspicion.
- DMARC set to reject too early: start with a policy of none, read the reports for a few weeks, fix every legitimate sender that is failing, and only then move to quarantine and reject.
- Missing rDNS: check that every sending IP has a reverse DNS record pointing to your server's hostname. This is set by your IP provider, not in your domain's DNS.
- Forgetting subdomains: if you send from a subdomain, such as mail.example.com, that subdomain needs its own SPF and DMARC records.
- Never checking the reports: DMARC reports are only useful if someone reads them. Set aside time each month to review them, or ask your provider to monitor them for you.
How to check your own domain
You do not need to take anyone's word for whether your authentication is working. There are free tools that check your records and tell you what is missing. You can look up your SPF, DKIM, DMARC and rDNS records with any DNS lookup tool, and there are dedicated email authentication checkers that send a test email and report on every check. If you are a SenderGun customer, you can also write to support@sendergun.com and ask the team to review your records for you.
When you check, look for four things: one SPF record, listing all your senders; a valid DKIM signature with a 2048-bit key; a DMARC record with a sensible policy; and rDNS on every sending IP that matches your hostname. If all four are in place, your authentication is doing its job. If any one is missing or wrong, fix it before you send your next campaign — it is a small job, and it protects every email you send.
What SenderGun sets up for you
Every SenderGun dedicated SMTP server includes the full authentication setup: SPF, DKIM with 2048-bit keys, DMARC, rDNS and MX records, configured for your domain as part of the setup. Your IP addresses are warmed up gradually, so the mailbox providers learn to trust them, and your sending is monitored against a Sender Score target above 90 out of 100.
The dedicated plans run from Basic at $89 a month — 100,000 emails a day, 3 million a month, 10 IPs, 1 domain — up to Business at $729 a month — 2,000,000 emails a day, 60 million a month, 200 IPs, up to 50 domains — with Regular, Silver, Gold and Platinum in between. Every plan includes unlimited subscribers, the authentication setup, a mail app, SMTP credentials and reports, with no setup or hidden fee. The full comparison is on the pricing page, and the infrastructure page explains how the servers are built.
If you already have a server and only need the mail software installed and configured, the one-time SMTP setup service covers PowerMTA for $75, Exim for $70, or Postfix for $70, including the authentication setup. Either way, you get working records and working credentials, not a list of homework.
Final thoughts
SPF, DKIM, DMARC and rDNS are not glamorous, and they are not something your customers will ever see. But they are the reason your customers see your emails at all. They prove your mail is genuine, they protect your domain from impersonation, and they are the first thing a mailbox provider checks before deciding inbox or spam.
If you have never checked your authentication records, check them today. If something is missing, fix it before your next campaign. And if you would rather have the whole setup handled for you — server, software, authentication, warm-up and reports — talk to the SenderGun team. Tell us your domain and your daily volume, and we will set up a server whose emails carry the proof that they are really from you.
