---
title: "Basics of DKIM syntax and tags | DuoCircle"
description: "Learn how a DKIM record is structured: the syntax, the required and optional tags like v=, a=, d=, and s=, and what each one means for email authentication."
image: "https://www.duocircle.com/images/og-default.png"
canonical: "https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/"
---

Quick Answer

A DKIM record is a DNS TXT record with tag=value pairs. Core tags: v= (DKIM1), a= (algorithm, typically rsa-sha256), b= (signature), bh= (body hash), c= (canonicalization), d= (signing domain), h= (signed header fields), s= (selector), and p= (public key). Receivers fetch it at selector.\_domainkey.yourdomain.com to verify the message.

Basics of DKIM syntax and tags

Your browser does not support the audio element.

[ Download episode](https://media.mailhop.org/duocircle/images/2024/12/Basics-of-DKIM-syntax-and-tags.mp3) 

Share 

[ ](https://www.linkedin.com/sharing/share-offsite/?url=undefined%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F "Share on LinkedIn") [ ](https://twitter.com/intent/tweet?text=Basics%20of%20DKIM%20syntax%20and%20tags&url=undefined%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F "Share on X/Twitter") [ ](https://www.facebook.com/sharer/sharer.php?u=undefined%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F "Share on Facebook") [ ](https://reddit.com/submit?url=undefined%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F&title=Basics%20of%20DKIM%20syntax%20and%20tags "Share on Reddit") [ ](mailto:?subject=Basics%20of%20DKIM%20syntax%20and%20tags&body=Check out this article: undefined%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F "Share via Email") 

![DKIM syntax and tags](https://media.mailhop.org/duocircle/images/2024/12/spf-record-tester-4.jpg) 

DKIM stands for DomainKeys Identified Mail, a cryptography-based [email authentication](/resources/email-authentication) protocol that helps receiving servers verify if an email sent from your domain was tampered with in transit. If you have DKIM deployed for your domain, then your server will affix a digital signature to the header with each outgoing email. This is a **cryptographically secured signature** that is produced using a private key that is known only to you. The counterpart of the private key is a public key, which is published in the DNS of your domain.

When the receiving server processes your email, it fetches the [public key](https://en.wikipedia.org/wiki/Public-key%5Fcryptography) to confirm its authenticity and **verify the message** remained unaltered during transit.

## Why is DKIM helpful to domain owners?

DKIM helps **domain owners** in their efforts to prevent their domain from getting involved in [phishing and spoofing attacks](https://thehackernews.com/2024/07/proofpoint-email-routing-flaw-exploited.html). It basically verifies the legitimacy of outgoing emails. This keeps their brands out of financial and legal problems.

What else [DKIM](/resources/what-is-dkim) does is improve the [sender’s reputation](https://sendpulse.com/support/glossary/sender-reputation), which means mailboxes regard your **domain as genuine and trusted**. If this happens, most of the emails sent by you will land in the desired recipients’ inboxes instead of [spam folders](https://cybernews.com/news/microsofts-breach-notification-emails-end-up-in-spam-folder/). _Deploying DKIM is also mandatory compliance with many regulations, so if your brand falls under any of such compliances, you will need DKIM_.

[![spam folders](https://media.mailhop.org/duocircle/images/2024/12/spf-permerror-3.jpg)](https://media.mailhop.org/duocircle/images/2024/12/spf-permerror-3.jpg)

## DKIM syntax

DKIM publishes the public key and associated information using a [DNS TXT record](https://www.cloudflare.com/learning/dns/dns-records/dns-txt-record/). The record’s syntax comprises various tags, each serving a specific purpose. Below are the most common tags found in DKIM records:

- **v**: Denotes the **DKIM version**. Currently, the only version available is v=DKIM1.
- **a**: Indicates the algorithm used to generate the DKIM signature. Common values include rsa-sha256 and rsa-sha1.
- **b**: Represents the actual digital signature of the [email headers](https://proton.me/blog/what-are-email-headers) and body, encoded as a base64 string and generated using the [private key](https://www.investopedia.com/terms/p/private-key.asp).
- **bh**: Stands for “body hash,” which is the hash of the canonicalized email body, encoded as a base64 value.
- **c**: Specifies the canonicalization algorithms applied to the header and body. Common options are simple/simple, relaxed/simple, and relaxed/relaxed.

[![outgoing emails](https://www.duocircle.com/wp-content/uploads/2024/12/spf-validator-2.jpg)](/wp-content/uploads/2024/12/spf-validator-2.jpg)

- **d**: Refers to the domain name of the signing entity. If you’re creating the [DKIM record](/resources/dkim-checker), include your domain name here. Ensure the domain matches or is a subdomain of the one used in the ‘From’ header of your outgoing emails.
- **h**: Lists the signed header fields, separated by colons. For example, h=from:to:subject:date.
- **i**: _An optional identity representing the user or agent on whose behalf the email is signed. For instance, i=[user@eng.example.com](mailto:user@eng.example.com)_.
- **l**: Known as the body length count tag, it indicates the **number of body bytes** included in the hash.

[![dkim record statistics](https://media.mailhop.org/duocircle/images/2024/12/DKIM-Record-Statistics.jpg)](https://media.mailhop.org/duocircle/images/2024/12/DKIM-Record-Statistics.jpg)

## Final words

These DKIM tags convey essential information that enables the **receiving server** to verify the authenticity of emails sent from your domain. _Therefore, it’s crucial to create your DKIM record with care_. If you need assistance with email authentication, feel free to [contact us](/contact) or book a demo with [DuoCircle](/) for expert support.

## Topics

DKIMemail headerTags 

![Brad Slavin](https://media.mailhop.org/dmarcreport/images/team/brad-slavin.jpg) 

Brad Slavin 

General Manager

General Manager at DuoCircle. Product strategy and commercial lead across the email security portfolio.

## Secure your email infrastructure

Protect, authenticate, and deliver. Contact our team to find the right solution.

[Contact Sales](/contact/) [Explore Products](/products/) 

Share this article

[ ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.duocircle.com%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F) [ ](https://twitter.com/intent/tweet?text=Basics%20of%20DKIM%20syntax%20and%20tags&url=https%3A%2F%2Fwww.duocircle.com%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F) [ ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.duocircle.com%2Fblog%2Femail-security%2Fbasics-of-dkim-syntax-and-tags%2F) Copy 

Related Articles

- [ ![DKIM fails](https://media.mailhop.org/duocircle/images/2025/08/spf-validator-3115.jpg)  7 reasons why DKIM fails and how to fix it Email Security ](/blog/email-security/7-reasons-why-dkim-fails-and-how-to-fix-it/)
- [ ![email authentication](https://media.mailhop.org/duocircle/images/2024/10/spf-record-4561.jpg)  What are the best practices to follow for managing DKIM keys? Email Security ](/blog/email-security/best-practices-to-follow-for-managing-dkim-keys/)
- [ ![Affiliate Marketing Campaigns](https://media.mailhop.org/duocircle/images/2025/06/sender-policy-framework-7712.jpg)  Email Security Risks in Affiliate Marketing Campaigns Email Security ](/blog/email-security/email-security-risks-in-affiliate-marketing-campaigns/)
- [ ![DKIM2](https://media.mailhop.org/duocircle/images/2025/03/email-smtp-service.jpg)  Is DKIM2 the next chapter in email authentication? Email Security ](/blog/email-security/is-dkim2-the-next-chapter-in-email-authentication/)

## Related Articles

[  Email Security 5m  7 reasons why DKIM fails and how to fix it  Aug 8, 2025 ](/blog/email-security/7-reasons-why-dkim-fails-and-how-to-fix-it/)[  Email Security 3m  What are the best practices to follow for managing DKIM keys?  Oct 25, 2024 ](/blog/email-security/best-practices-to-follow-for-managing-dkim-keys/)[  Email Security 11m  Email Security Risks in Affiliate Marketing Campaigns  Jun 13, 2025 ](/blog/email-security/email-security-risks-in-affiliate-marketing-campaigns/)[  Email Security 6m  Is DKIM2 the next chapter in email authentication?  Mar 18, 2025 ](/blog/email-security/is-dkim2-the-next-chapter-in-email-authentication/)

```json
{"@context":"https://schema.org","@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}],"sameAs":["https://www.linkedin.com/company/duocircle","https://x.com/duocirclellc","https://www.facebook.com/duocirclellc","https://www.g2.com/products/phish-protection-by-duocircle/reviews","https://github.com/duocircle","https://www.crunchbase.com/organization/duocircle-llc"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://support.duocircle.com"},"knowsAbout":["Email Security","Email Authentication","SPF","DKIM","DMARC","Phishing Protection","Spam Filtering","SMTP Relay","Email Deliverability","Email Forwarding"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"DuoCircle LLC","url":"https://www.duocircle.com","description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","publisher":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}
```

```json
[{"@context":"https://schema.org","@type":"BlogPosting","headline":"Basics of DKIM syntax and tags","description":"Learn how a DKIM record is structured: the syntax, the required and optional tags like v=, a=, d=, and s=, and what each one means for email authentication.","url":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/","datePublished":"2024-12-10T14:17:05.000Z","dateModified":"2025-10-24T20:53:07.000Z","dateCreated":"2024-12-10T14:17:05.000Z","author":{"@type":"Person","@id":"https://www.duocircle.com/authors/brad-slavin/#person","name":"Brad Slavin","url":"https://www.duocircle.com/authors/brad-slavin/","jobTitle":"General Manager","description":"Brad Slavin runs DuoCircle, the company behind DMARC Report, AutoSPF, Phish Protection, and Mailhop. His focus is product strategy, customer relationships, and the commercial and compliance side of email authentication (DPAs, SLAs, enterprise procurement).","image":"https://media.mailhop.org/dmarcreport/images/team/brad-slavin.jpg","knowsAbout":["Email Security Strategy","SaaS Product Management","Enterprise Compliance","Customer Success","Email Deliverability Business"],"worksFor":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com"},"sameAs":["https://www.linkedin.com/in/bradslavin"]},"publisher":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/"},"articleSection":"email-security","keywords":"DKIM, email header, Tags","wordCount":498,"image":{"@type":"ImageObject","url":"https://media.mailhop.org/duocircle/images/2024/12/spf-record-tester-4.jpg","caption":"DKIM syntax and tags","width":900,"height":600},"speakable":{"@type":"SpeakableSpecification","cssSelector":[".answer-block","h1"]}},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https://www.duocircle.com/blog/"},{"@type":"ListItem","position":2,"name":"Email Security"},{"@type":"ListItem","position":3,"name":"Basics of DKIM syntax and tags","item":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/"}]}]
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.duocircle.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://www.duocircle.com/blog/"},{"@type":"ListItem","position":3,"name":"Email Security","item":"https://www.duocircle.comundefined"},{"@type":"ListItem","position":4,"name":"Basics of DKIM syntax and tags","item":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/"}]}
```

```json
{"@context":"https://schema.org","@type":"BlogPosting","headline":"Basics of DKIM syntax and tags","description":"Learn how a DKIM record is structured: the syntax, the required and optional tags like v=, a=, d=, and s=, and what each one means for email authentication.","url":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/","datePublished":"2024-12-10T14:17:05.000Z","dateModified":"2025-10-24T20:53:07.000Z","dateCreated":"2024-12-10T14:17:05.000Z","author":{"@type":"Person","@id":"https://www.duocircle.com/authors/brad-slavin/#person","name":"Brad Slavin","url":"https://www.duocircle.com/authors/brad-slavin/","jobTitle":"General Manager","description":"Brad Slavin runs DuoCircle, the company behind DMARC Report, AutoSPF, Phish Protection, and Mailhop. His focus is product strategy, customer relationships, and the commercial and compliance side of email authentication (DPAs, SLAs, enterprise procurement).","image":"https://media.mailhop.org/dmarcreport/images/team/brad-slavin.jpg","knowsAbout":["Email Security Strategy","SaaS Product Management","Enterprise Compliance","Customer Success","Email Deliverability Business"],"worksFor":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com"},"sameAs":["https://www.linkedin.com/in/bradslavin"]},"publisher":{"@type":"Organization","name":"DuoCircle LLC","url":"https://www.duocircle.com","logo":{"@type":"ImageObject","url":"https://www.duocircle.com/images/duocircle-logo.png"},"description":"DuoCircle is a portfolio of specialized email products covering protection, authentication, delivery, and routing. We deliver about 90% of category-leader capability at roughly half the price, backed by experts who own the outcome. Trusted by 50,000+ organizations since 2014.","subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.duocircle.com/blog/email-security/basics-of-dkim-syntax-and-tags/"},"articleSection":"email-security","keywords":"DKIM, email header, Tags","wordCount":498,"image":{"@type":"ImageObject","url":"https://media.mailhop.org/duocircle/images/2024/12/spf-record-tester-4.jpg","caption":"DKIM syntax and tags","width":900,"height":600},"speakable":{"@type":"SpeakableSpecification","cssSelector":[".answer-block","h1"]}}
```
