SPF, DKIM, and DMARC are DNS records that stop your emails from getting marked as spam. Here is how to set them up:
SPF (Sender Policy Framework)
SPF tells mail servers which IP addresses are allowed to send email for your domain.
- Go to Zone Editor in cPanel's Domains section.
- Click Manage next to your domain.
- Add a new TXT record with this value:
v=spf1 +a +mx +ip4:YOUR_SERVER_IP ~all
Replace YOUR_SERVER_IP with your server's IP address.
DKIM (DomainKeys Identified Mail)
- In cPanel, go to Email Deliverability.
- Find your domain and click Manage.
- If DKIM is not enabled, click Enable.
- If prompted, add the generated TXT record to your DNS zone.
DMARC (Domain-based Message Authentication, Reporting & Conformance)
- In the Zone Editor, add a new TXT record for
_dmarc.yourdomain.com. - Use a value like:
v=DMARC1; p=none; rua=mailto:[email protected] - Once verified, change
p=nonetop=quarantineorp=rejectfor better protection.