Complete Guide to Setting Up Email for Your Domain with cPanel DNS
May 26, 2025Complete Guide to Setting Up Email for Your Domain with cPanel DNS Learn how to configure DNS records in cPanel to enable reliable and secure email for your domain Introduction Setting up email for your domain requires proper DNS configuration. cPanel provides an easy way to manage these DNS records, including MX, SPF, DKIM, and DMARC. This guide walks you through the essential steps to get your domain email working smoothly and securely. Prerequisites Active hosting account with cPanel access Domain registered and pointed to your hosting name servers Basic understanding of DNS and email concepts Step 1: Access the DNS Zone Editor in cPanel Log in to your cPanel account. Scroll to the Domains section and click on Zone Editor or DNS Zone Editor. Select your domain from the list to manage its DNS records. Step 2: Configure MX Records for Email Routing MX (Mail Exchange) records tell the internet which server handles incoming email for your domain. In the DNS Zone Editor, look for existing MX records. Delete any incorrect or old MX records if necessary. Click Add Record and choose MX type. Enter the following: Name: your domain name (e.g., example.com) Priority: usually 10 (lower values mean higher priority) Destination: your mail server hostname (e.g., mail.example.com) Save the record. Step 3: Add SPF Record to Prevent Email Spoofing SPF (Sender Policy Framework) records specify which mail servers are authorized to send emails on behalf of your domain. In the Zone Editor, add a new TXT record. Enter your domain as the Name (or leave it blank/with “@” depending on cPanel). Enter your SPF rule in the TXT Data field. Example: v=spf1 a mx ip4:YOUR.SERVER.IP include:spf.yourmailprovider.com ~all Save the record. Step 4: Enable DKIM for Email Integrity DKIM (DomainKeys Identified Mail) adds a digital signature to emails that verifies they haven’t been tampered with. Go back to the cPanel main dashboard. Navigate to the Email section and click Email Deliverability or Authentication. Locate your domain and check the DKIM status. If disabled, click Enable to have cPanel automatically generate and add the DKIM record. Step 5: Configure DMARC for Monitoring and Enforcement DMARC (Domain-based Message Authentication, Reporting & Conformance) helps you monitor your email traffic and enforce SPF and DKIM policies. In the DNS Zone Editor, add a new TXT record. For the Name, enter _dmarc.example.com (replace example.com with your domain). In the TXT Data field, enter your DMARC policy. Example: v=DMARC1; p=none; rua=mailto:admin@example.com; ruf=mailto:admin@example.com; pct=100 Save the record. Note: The policy p=none is for monitoring only. Change it to p=quarantine or p=reject to enforce stricter handling after evaluating reports. Step 6: Verify Your DNS Records Use online tools to check if your DNS records are correctly set up and propagating: MXToolbox DKIM Validator DMARC Inspector Troubleshooting Tips Allow 24-48 hours for DNS propagation after changes. Check for duplicate or conflicting DNS records. Confirm your mail server hostname resolves correctly. Need Assistance? If you need help setting up email for your domain or managing DNS records in cPanel, contact Hiverift Dev Support. © 2025 Hiverift. All rights reserved.