🇩🇪 DE 🇬🇧 EN

Set Up SPF, DKIM & DMARC – Configure Email DNS Correctly

Quick answer: SPF, DKIM and DMARC are DNS TXT records that prove your emails are legitimate. Without them emails land in spam or get rejected – with correct configuration you improve deliverability and protect your domain from spoofing.

Why SPF, DKIM & DMARC?

Step 1: Set MX record

Type: MX
Name: @
Value: mail.yourdomain.com
Priority: 10

Step 2: Set up SPF

Type: TXT
Name: @
Value: "v=spf1 mx a ip4:93.184.216.34 -all"
ScenarioSPF record
Own mail server onlyv=spf1 mx -all
With Google Workspacev=spf1 include:_spf.google.com -all
With Microsoft 365v=spf1 include:spf.protection.outlook.com -all

Step 3: Set up DKIM

Type: TXT
Name: default._domainkey
Value: "v=DKIM1; k=rsa; p=MIIB..."

Step 4: Set up DMARC

Type: TXT
Name: _dmarc
Value: "v=DMARC1; p=quarantine; rua=mailto:[email protected]"

Test setup

Related guides