DEV Community

Cover image for How to add DKIM Records For Emails
Chetan Rohilla
Chetan Rohilla

Posted on • Edited on • Originally published at w3courses.org

How to add DKIM Records For Emails

Basically to prevent spamming, phishing or hacking our emails system we needs some TXT Records in Our DNS like SPF, DMARC, DKIM. DKIM is one of these which refers to DomainKeys Identified Mail. It is a technical standard that helps protect email senders and recipients from spamming, spoofing, and phishing. It is a form of email authentication that allows an organization to claim responsibility for a message in a way that can be validated by the recipient. Here we are adding DKIM Records For Emails to prevent emails bouncing, spamming or phishing.

Adding DKIM Records For Emails

  1. Generate DKIM Public Key and Private Key and add the key or DomainKey Selector(this can be any random alphabets or numbers)

  2. Add TXT Record in DNS as:

Name: {key}._domainkey.YourDomain.com.
Value: v=DKIM1\; k=rsa\; p=[YourPublicKey]
TTL: 1800

  1. Add Private Key at Email Service Provider, generated at step 1

  2. After adding you can check TXT DNS here


Please like share and give positive feedback to motivate me to write more.

For more tutorials visit my website.

Thanks:)
Happy Coding:)

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more