Web hosting

E-mail with your own domain: setting up SPF, DKIM and DMARC

Three DNS records decide whether your mails arrive or end up in spam. What they do, what they look like and how to test them.

6 min readUpdated 13.10.2026FameSystems editorial team
In short

So that your e-mails with your own domain do not end up in spam, you need three DNS records: SPF says which servers may send for your domain, DKIM signs every mail, DMARC defines what recipients do with mails that fail both. All three are TXT records and set up in ten minutes.

Why mails without these records end up in spam

Large providers such as Gmail and Outlook check with every incoming mail whether the sender is allowed to use the domain at all. If SPF and DKIM are missing, the mail counts as unverified and is downgraded or rejected. Since 2024 the major providers require these records from everyone who sends mail regularly.

SPF: who may send

SPF is a TXT record on your domain that lists the permitted mail servers. For e-mail hosting at FameSystems you enter the FameSystems mail server; if you also use a newsletter service, its include is added. It ends with "-all", everything else is rejected.

RecordTypeExample value
SPFTXT on your-domain.dev=spf1 include:your-provider-mail-server -all
DKIMTXT on selector._domainkey.your-domain.dev=DKIM1; k=rsa; p=public key
DMARCTXT on _dmarc.your-domain.dev=DMARC1; p=quarantine; rua=mailto:[email protected]

DKIM: every mail signed

DKIM attaches a signature to every outgoing mail, which the recipient checks with the public key from your DNS. Your mail provider generates the key, you enter it as a TXT record under a selector. If the mail is changed en route, the check fails.

DMARC: what happens to forgeries

DMARC combines SPF and DKIM into a rule: "p=none" only observes, "p=quarantine" moves failed mails to spam, "p=reject" rejects them. Start with "none" and a report address, check the reports for a week and then switch to "quarantine". This way you find forgotten senders such as forms or shops before their mails get lost.

Testing and typical mistakes

  • Send a mail to a Gmail account and check "Show original" in the header: SPF, DKIM and DMARC must show "PASS".
  • Only one SPF record per domain. Two records make SPF invalid.
  • A maximum of ten DNS lookups in SPF, every include counts.
  • After every DNS change wait up to an hour before testing again.
With FameSystems e-mail hosting, mailboxes and DNS management are in the same customer area. You will find the values for SPF and DKIM there with your mailbox.
Matching product

E-mail hosting with your own domain

Mailboxes with spam protection, IMAP and webmail, DNS management in the same customer area. Packages and prices at a glance.

Published 13.10.2026Updated 13.10.2026

Frequently asked questions

Short answers to the points that usually remain open after the article.

Yes. SPF and DKIM make the mail verifiable, DMARC tells the recipient what should happen in case of failure. Without DMARC the effect of the other two stays small.

Usually DKIM is missing or the SPF record is invalid, for example due to two records or too many includes. The Gmail header shows which check fails.

A freely selectable name under which the key is stored in the DNS. This way several services can have their own keys for the same domain.

No. First "none" with reports, then "quarantine", and only when all legitimate senders pass, "reject".