Setting Up SPF, DKIM, and DMARC for Email Security
Email remains one of the most powerful business communication tools — and one of the most targeted by cybercriminals. Attackers often attempt to spoof your domain, sending fake messages that appear to come from your company.
To combat this, modern email systems rely on three essential DNS-based authentication standards: SPF, DKIM, and DMARC. Setting these up correctly protects your brand, boosts deliverability, and builds trust with your clients.
Why Email Authentication Matters
Without proper email authentication, your messages can:
- End up in spam folders.
- Be rejected by recipient mail servers.
- Be used by attackers to impersonate your business.
Implementing SPF, DKIM, and DMARC helps you prove that emails sent from your domain are legitimate and verified.
1. SPF (Sender Policy Framework)
Purpose: Defines which mail servers are authorized to send emails on behalf of your domain.
SPF helps prevent forged sender addresses in emails.
Example SPF Record:
Type: TXT
Host: @
Value: "v=spf1 include:_spf.google.com include:mail.vicservers.com ~all"
TTL: 3600
✅ Explanation:
v=spf1indicates this is an SPF record.include:_spf.google.comallows Google Workspace to send emails for your domain.include:mail.vicservers.comauthorizes your own mail server.~allmeans “soft fail” for unauthorized senders (emails may be flagged but not fully rejected).
Tip: For stricter enforcement, use -all instead of ~all.
2. DKIM (DomainKeys Identified Mail)
Purpose: Adds a digital signature to your outgoing emails to verify they haven’t been tampered with.
The DKIM signature is created by your mail server and verified using a public key stored in your DNS.
Example DKIM Record:
Type: TXT
Host: default._domainkey
Value: "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
TTL: 3600
✅ Explanation:
- The “p=” value contains your public key.
- Your email system uses the matching private key to sign each email.
- Recipients verify that signature using this DNS record.
Tip: DKIM setup is usually handled automatically by your email provider (e.g., Google Workspace, Microsoft 365, or cPanel mail).
3. DMARC (Domain-based Message Authentication, Reporting, and Conformance)
Purpose: Combines SPF and DKIM results to instruct receiving mail servers on what to do if authentication fails.
DMARC also provides reports on how your domain is being used in email traffic — including unauthorized senders.
Example DMARC Record:
Type: TXT
Host: _dmarc
Value: "v=DMARC1; p=quarantine; rua=mailto:[email protected]; ruf=mailto:[email protected]; pct=100"
TTL: 3600
✅ Explanation:
p=quarantinetells recipients to place failing emails in spam.ruaandrufspecify where to send aggregate and forensic reports.pct=100applies the rule to all emails.
📘 Tip: Start with p=none to monitor activity without affecting delivery. Once stable, upgrade to p=quarantine or p=reject.
How to Set Up SPF, DKIM, and DMARC
- Log in to your DNS management dashboard (at your domain registrar or hosting provider).
- Add the TXT records for SPF, DKIM, and DMARC as shown above.
- Wait for DNS propagation (can take a few hours).
- Test your setup using tools like:
Vicservers Pro Tip
✅ Use consistent domain names for sending all business emails.
✅ Monitor DMARC reports regularly for signs of spoofing.
✅ Keep your DNS and mail server credentials secure.
✅ Review and update your SPF record when adding new services (like CRMs or marketing tools).
Final Thoughts
Email authentication is not optional anymore — it’s a fundamental layer of trust for any professional domain.
By properly setting up SPF, DKIM, and DMARC, your business ensures safe communication, protects your reputation, and boosts email deliverability.
At Vicservers Technologies Limited, we specialize in domain management, secure web hosting, and IT consultancy, helping businesses configure their DNS and email systems for maximum security and reliability.
Need help securing your email domain?
Visit vicservers.com and let our experts handle it for you.









