← Back to Blog

Lappu AI Journal

Demystifying DKIM: Protecting Email Integrity

DKIM is an email authentication protocol that ensures an email message **hasn’t been modified in transit and that it really came from your domain. In this blog post we will explore what DKIM is, how it works, and how to get it set up correctly for your domain.

Vivek Uppal • August 1, 2025

Demystifying DKIM: Protecting Email IntegrityWhen you send an email, how does the recipient know it hasn’t been tampered with or forged?

That’s where DKIM (DomainKeys Identified Mail) comes in, a behind-the-scenes security measure that helps protect your brand, your customers, and your email deliverability. In this blog post, we’ll break down what DKIM is, how it works, and how to get it set up correctly for your domain.-------------------------------------## What Is DKIM?DKIM is an email authentication protocol that ensures an email message hasn’t been modified in transit and that it really came from your domain.It does this by digitally signing your emails using cryptographic keys. The recipient’s mail server then verifies this signature using a public key published in your DNS. If the signature matches, the email is considered authentic and trustworthy.-------------------------------------## How DKIM Works (Simplified)Let's walk through the process in simple terms:1. You send an email. - Your mail server adds a hidden DKIM signature to the email header using your private key.2. The receiving mail server checks your DNS. - It finds your public DKIM key stored as a TXT record.3. The signature is verified. - If the signature matches the email’s content, it's proof that: - The message wasn’t altered. - The sender is authorized to use the domain.If verification fails, the message might be marked as spam or flagged as suspicious.-------------------------------------## What Does a DKIM Record Look Like?Here’s an example of a DKIM record published in DNS:
Host: default._domainkey.yourdomain.com
Value (TXT): v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN... (public key continues)
- v=DKIM1 → Version- k=rsa → Key type (almost always RSA)- p= → Public key (used by receivers to verify your email)The selector (like default) allows you to manage multiple keys, for example, different keys for different providers.-------------------------------------## What Happens If You Don’t Have DKIM?Without DKIM, your emails are missing a key layer of trust:- Messages can be spoofed more easily - Deliverability suffers you’re more likely to land in spam - DMARC enforcement will fail, since DKIM is one of the two required checks for DMARC (the other is SPF) If your domain is used for phishing or spam and you don’t have DKIM set up, providers may start rejecting all your email.-------------------------------------## How to Set Up DKIMMost major providers (like Google Workspace, Microsoft 365, Sendgrid, etc.) will:1. Generate DKIM keys for you2. Provide a DNS record to add at your domain host### General Steps:1. Go to your provider’s DKIM settings panel2. Enable DKIM signing3. Copy the TXT record they give you4. Log in to your DNS provider (e.g., Dreamhost, GoDaddy, Cloudflare, etc.)5. Create a new TXT record at selector._domainkey.yourdomain.com6. Paste the value and savePropagation can take a few minutes to a few hours. Use testing tools like LappuAI, MXToolbox or DKIMCore to validate.-------------------------------------## DKIM Setup Tips for SMBs- Use a consistent selector name (e.g., default) unless you need multiple keys- Rotate keys atleast once a year for added security- If using third-party senders (like Sendgrid), ensure they provide a DKIM key you can publish- Always verify DKIM alignment if you're using DMARC with p=quarantine or p=reject-------------------------------------## Final ThoughtsDKIM may sound like alphabet soup, but it plays a critical role in protecting your brand from spoofing and ensuring your emails actually reach inboxes.For small and medium businesses, getting DKIM right is essential and easier than you might think with the right tools and guidance.Need help generating, publishing, or verifying your DKIM setup?Our platform helps automate this for popular services and tracks failures before they hurt your deliverability.We will gladly help you with a free DKIM checkup