In brief
- Without SPF, DKIM and DMARC, business emails increasingly end up in spam, or are not delivered at all.
- All three are simple lines of text (TXT records) in your domain’s DNS.
- SPF defines who may send, DKIM signs every email, DMARC tells the recipient what to do with a forgery.
- Start DMARC in monitoring mode and only tighten the policy once everything checks out.
Why business emails end up in spam
Email was originally designed without sender verification: any server can send an email with your address as the sender. Fraudsters exploit exactly that for phishing and fake invoices. Major providers such as Gmail, Outlook.com and Yahoo therefore check whether an email really comes from the stated domain. Since 2024, Google and Yahoo have required at least SPF or DKIM from all senders, and DMARC as well from bulk senders. Without these records, even perfectly legitimate quotes and invoices land in the spam folder.
SPF: who may send for your domain?
The Sender Policy Framework (SPF) is a list of the servers allowed to send email on behalf of your domain. It is a TXT record placed directly on your domain, for example:
example.ch. TXT "v=spf1 mx a include:_spf.newsletter-service.example ~all"
v=spf1identifies the record as SPF.mxandaallow the servers already registered for your domain.include:adds other services, such as a newsletter tool or Microsoft 365.~allmeans: all other servers are suspicious.-allwould be the strict version: all others are not allowed.
Each domain may have only one SPF record. If you add a service, extend the existing record instead of creating a second one. In addition, an SPF record may trigger at most ten further DNS lookups, otherwise it is invalid.
DKIM: the digital signature
DomainKeys Identified Mail (DKIM) signs every outgoing email with a secret key on the mail server. You publish the matching public key in the DNS. This lets the recipient verify that the email really comes from your server and was not altered on the way.
default._domainkey.example.ch. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq…"
The part before ._domainkey is called the selector. This way, each service that sends on your behalf can have its own key. The key value is generated by the mail server or the service in question; you simply copy it into the DNS record.
DMARC: the policy that ties it all together
DMARC (Domain-based Message Authentication, Reporting and Conformance) builds on SPF and DKIM. It checks whether the verified domain matches the visible sender address and tells the recipient what to do with emails that fail the check:
_dmarc.example.ch. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.ch"
p=none: monitor only, block nothing (starting value).p=quarantine: move suspicious emails to the spam folder.p=reject: reject suspicious emails.rua=: the address to which recipients send daily reports. They show you which servers send in your name.
How the three records work together
| Record | Question it answers | Where in the DNS |
|---|---|---|
| SPF | May this server send for the domain? | on the domain itself |
| DKIM | Is the email genuine and unaltered? | selector._domainkey |
| DMARC | What happens if SPF and DKIM do not match? | _dmarc |
An email passes the DMARC check if at least SPF or DKIM is valid and matches the sender domain. It is most reliable when both are correct.
Step by step at Online Planet
If your domain uses our name servers ns1.servstar24.com and ns2.servstar24.com, you manage all DNS records yourself.
- Log in: log in to the client area and open the hosting panel from your hosting plan. There you will find the DNS editor for your domain.
- Check existing records: see whether there is already a TXT record with
v=spf1and a record with._domainkey. For email sent through our servers, they are often already in place. - Extend SPF: if other services send in your name, such as a newsletter tool, a shop or Microsoft 365, add their
include:to the existing SPF record. - Add the services’ DKIM: every external service gives you a DKIM record in its instructions. Add it as an additional TXT or CNAME record.
- Create DMARC: a new TXT record named
_dmarcwith the valuev=DMARC1; p=none; rua=mailto:your-address@your-domain.ch. - Test: send an email to a Gmail account and open “Show original”. SPF, DKIM and DMARC should each say “PASS”.
- Tighten: after two to four weeks without problems in the DMARC reports, switch to
p=quarantineand later top=reject.
Would you rather not do this yourself? Our support checks your records and sets up any that are missing. And if your email is still with another provider, we handle the migration of your mailboxes.
Common mistakes
- Two SPF records: then both are invalid. Always merge them into one.
- A forgotten service: the website contact form, accounting software or online shop often send emails too. Check the DMARC reports to see who is sending.
p=rejecttoo early: without a monitoring phase you may block your own emails.- Typos in the key: DKIM keys are long. Copy them completely and without extra spaces.
- Patience: depending on their time to live (TTL), DNS changes take a few minutes to a few hours to become visible everywhere.