Stop your emails going to spam: SPF, DKIM and DMARC
Updated 27 Nov 2026
If your messages land in your customers' Spam or Junk folder, or Gmail shows "Be careful with this message", the usual cause is missing SPF, DKIM or DMARC records. They tell Gmail, Outlook and Yahoo that your server is allowed to send for your domain.
| Record | What it does |
|---|---|
| SPF | Lists the servers allowed to send email for your domain. |
| DKIM | Adds a digital signature to every message, so it can't be faked or changed on the way. |
| DMARC | Tells other providers what to do with mail that fails SPF or DKIM, and sends you reports. |
Since 2024, Gmail and Yahoo reject or junk a lot of mail from domains without these records.
Step 1: Check and repair SPF and DKIM in cPanel
- Open Services, choose your hosting and press Login to cPanel.
- Under Email, open Email Deliverability.
- Find your domain. If it says Problems exist, press Repair.
- Press Repair again to confirm. cPanel writes the correct SPF and DKIM records for you.
The status should change to Valid for both.
Is your domain using our DNS service instead of the hosting's nameservers? Then cPanel can't change its records. In cPanel, open Manage next to the domain and copy the suggested SPF and DKIM values. Then add them as TXT records in the portal: Domains, choose the domain, then DNS records › Add a record.
Step 2: Add a DMARC record
cPanel doesn't add DMARC for you. Add one TXT record:
| Field | Value |
|---|---|
| Name | _dmarc |
| Type | TXT |
| Value | v=DMARC1; p=none; rua=mailto:you@yourdomain.co.tz |
Use an address you read for rua. Reports arrive there once a day.
Start with p=none (only watch). After two to four weeks with no surprises in the reports, change it to p=quarantine and later p=reject. That stops anyone else sending email in your name.
Step 3: Test it
- Go to mail-tester.com and copy the address it shows.
- Send an ordinary email to that address from your domain email.
- Press Then check your score.
A score of 9/10 or more is good. The report tells you exactly which record is still missing.
Still landing in spam?
- Don't send from a free address "on behalf of" your domain. Send from your domain email itself.
- Avoid spam words and all-caps subjects, such as FREE!!! or URGENT PAYMENT.
- Send newsletters through a proper mailing service. Sending hundreds of messages at once from a hosting mailbox harms your server's reputation.
- Ask regular contacts to mark you "Not spam" once. Their provider learns from it.
Need email on your own domain? Every Netpoa hosting plan includes professional email like info@yourcompany.co.tz, and you pay with M-Pesa, Airtel Money, Mixx by Yas or HaloPesa. See hosting plans or open a ticket and our team in Tanzania will set it up with you.