Skip to content
+2 (02) 20824060+2 012 77002700Pay in EGP: Fawry · InstaPay · Cards

How to Set Up SPF, DKIM and DMARC Records for Your Mail Server

SPF, DKIM and DMARC prove that mail from your domain really comes from you. They protect your customers from forged messages and help your own mail reach the inbox. Our Mail Server plans include SPF and DKIM tools.

SPF: who may send

SPF is a TXT record on your domain that lists allowed senders. A simple example for a domain whose mail is sent by your mail server:

v=spf1 mx ip4:YOUR_SERVER_IP ~all

A domain can have only one SPF record. If you also use a newsletter service, add it to the same record.

DKIM: a signature on every message

The server signs each outgoing message. You publish the public key as a TXT record, usually at a name like default._domainkey.yourdomain.com. In cPanel, the Email Deliverability page shows the exact record, and its Repair button can install the records for you when your DNS is on our servers.

DMARC: what to do when checks fail

DMARC is a TXT record at _dmarc.yourdomain.com:

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

Start with p=none, which only collects reports. When reports show your own mail passes, move to p=quarantine, and later p=reject.

Test it

Send a message to a Gmail address, open it, and choose Show original. SPF, DKIM and DMARC should all say PASS.

Common mistakes

Need help? Contact us. For general tips, read why emails go to spam.

Need help choosing?Tell us about your project and we will recommend the right solution.
Contact us