Deliverability

How to set up DKIM for your domain (2024 Update)

lemlist team
LAST UPDATED
July 23, 2024
READING TIME
7 min.

Setting up a DKIM record can increase your open rates by 50% or more.

DKIM adds a layer of security to your emails that email service providers love.

This added trust gives your emails superior inbox placement, leading to a higher ROI for your email outreach.

In short, setting up and configuring DKIM is a pivotal factor influencing your email deliverability.

You'll find out why that's the case, plus how-to tutorials on enabling DKIM and verifying DKIM settings.

What is a DKIM signature?

DKIM is an email authentication protocol and digital signature that fights email spoofing.

DKIM signature (DomainKeys Identified Mail) is an email authentication method that assists in detecting forged sender email addresses.

It helps senders associate a domain name with an email message, vouching for its authenticity in the process.

In simple terms, a DKIM key configures an encrypted signature to the header of all your outgoing messages, which email servers later decrypt, thus verifying the message was not changed after it was sent.

Why do you need DKIM?

You need DKIM to ensure that your emails are authentic and secure.

DKIM attaches a digital signature to your outgoing emails, which can be verified by the recipient's email server using a public key published in your DNS records.

This process confirms that the email truly came from your domain and has not been altered during transit.

For cold emailing, DKIM is especially important because it helps build trust with recipients and email providers.

When your emails are authenticated with DKIM, they are less likely to be marked as spam or rejected by email servers.

This increases the chances that your cold emails will reach the recipient's inbox, making your outreach efforts more effective.

How does DKIM authentification work?

Here is how DKIM (DomainKeys Identified Mail) authentication works:

1. Digital Signature Added: The sending mail server generates a unique digital signature for each email, using a private key stored on the server.

2. Signature in Header: This digital signature is inserted into the email's header as a DKIM-Signature field.

3. Public Key Published: The domain owner publishes the corresponding public key in their DNS records, which is accessible to receiving mail servers.

4. Verification by Receiver: The receiving mail server retrieves the public key from the DNS and uses it to decrypt the digital signature in the email's header.

5. Validation: If the decrypted signature matches the content of the received email, it verifies the email's authenticity and integrity, confirming that it hasn’t been altered during transit.

DKIM simplifies key management so that you don't have to rely on third-party certificate authorities.

Essentially, DKIM stores the public key in DNS so that you can manage the public DKIM keys yourself.

How to setup DKIM for your domain

No matter which mail server you use, setting up DKIM works the same.

It involves securely storing a private key and sharing a public key via your domain’s DNS records using a specific format.

Similar to SPF, DKIM requires DNS TXT records.

It’s recommended to rotate your DKIM keys every now and then (some say every quarter) and revoke old keys as part of this rotation.

The process involves adding new keys and removing the old keys from your DNS records.

To make setting DKIM easier for you, we've organized all tutorials into two groups: Google and Microsoft Office.

No matter which email service provider you use, you'll find how-to guides to help you out.

1. How Configure DKIM for Gmail

  • General set up (all domain providers)
  • Google with Namecheap
  • Google with Cloudflare
  • Google with Bluehost

2. Configure DKIM for Microsoft Office

  • General set up (all domain providers)
  • Microsoft with Namecheap
  • Microsoft with Cloudflare
  • Microsoft with Bluehost

1. How to set up DKIM for Gmail

Google is a straightforward choice for many.

Luckily for all, Google DKIM setup is a breeze if you have the right tutorial to follow.

We've prepared a few for you, depending on your domain provider.

How to create a DKIM record for all domain providers

To set up Google Workspace DKIM record, you need to get a unique record from Google, and to do that we need to go to Apps -> Google Workspace ->  Gmail -> Authenticate email:

Now click "Generate new record" and copy the hostname and TXT record value:

Now you need to:

  1. Go to DNS
  2. Click on "Add new record"
  3. Choose a TXT record
  4. Put DNS hostname in "Name"
  5. Put TXT record from Google in "Value"

DKIM Setup for Google with Namecheap

To set up a DKIM record, you need to get a unique record from Google, and to do that we need to go to Apps -> Google Workspace -> Settings for Gmail -> Authenticate email:

Now click "Generate new record" and copy the hostname and TXT record value:

  1. Log in to Namecheap
  2. Go to Domain list and choose your domain
  3. Go to Advanced DNS
  4. Click on "Add new record"
  5. Choose a TXT record
  6. Put DNS hostname in "Name"
  7. Put TXT record from Google in "Value"
  8. Save it!

Now come back to Google Workspace and click "Start authentication":

DKIM Setup for Google with Cloudflare

To set up a DKIM record, you need to get a unique record from Google, and to do that we need to go to Apps -> Google workspace -> Settings for Gmail -> Authenticate email:

Now click "Generate new record" and copy the hostname and TXT record value:

  1. Log in to Cloudflare
  2. Go to Domain list and choose your domain
  3. Go to Advanced DNS
  4. Click on "Add new record"
  5. Choose a TXT record
  6. Put DNS hostname in "Name"
  7. Put TXT record from Google in "Value"
  8. Save it!

Now come back to Google Workspace and click "Start authentication":

DKIM Setup for Google with Bluehost

To set up a DKIM record, you need to get a unique record from Google, and to do that we need to go to Apps -> Google Workspace -> Settings for Gmail -> Authenticate email:

Now click "Generate new record" and copy the hostname and TXT record value:

  1. Log in to Bluehost
  2. Go to Domain list and choose your domain
  3. Go to Advanced DNS
  4. Click on "Add new record"
  5. Choose a TXT record
  6. Put DNS hostname in "Name"
  7. Put TXT record from Google in "Value"
  8. Save it!

Now come back to Google Workspace and click "Start authentication":

2. How to set up DKIM for Microsoft Office 365

Microsoft Office is your preferred choice? We got you.

DKIM setup, depending on your domain provider, is a bit different than when you're using Google.

Let's crack on.

How to create a DKIM record for all domain providers

In order to set up a DKIM record, you need to get a unique record from Exchange, and to do that we need to go to Home -> Policy -> DKIM.

Select the domain for which you want to enable DKIM and then, for Sign messages for this domain with DKIM signatures, choose Enable. Repeat this step for each custom domain.

Configuring DKIM record for Microsoft Office & Namecheap

To set up a DKIM record, you need to get a unique record from Exchange, and to do that we need to go to Home -> Policy -> DKIM.

Select the domain for which you want to enable DKIM and then, for Sign messages for this domain with DKIM signatures, choose Enable. Repeat this step for each custom domain.

Setting up DKIM Record for Microsoft Office with Cloudflare

To set up a DKIM record, you need to get a unique record from Exchange, and to do that we need to go to Home -> Policy -> DKIM.

Select the domain for which you want to enable DKIM and then, for Sign messages for this domain with DKIM signatures, choose Enable. Repeat this step for each custom domain.

DKIM Record Setup for Microsoft Office with Bluehost

To set up a DKIM record, you need to get a unique record from Exchange, and to do that we need to go to Home -> Policy -> DKIM.

Select the domain for which you want to enable DKIM and then, for Sign messages for this domain with DKIM signatures, choose Enable. Repeat this step for each custom domain.

How to check if I set up DKIM correctly?

To check if you have set up DKIM correctly, follow these steps:

1. Access Your Email Provider's DNS Settings:

Ensure that the DKIM public key has been added to your DNS records. This typically involves creating a TXT record or a CNAME record with your DNS provider.

2. Send a Test Email:

Send a test email from the domain where DKIM has been set up to an external email address, preferably one that you can use for checking headers (like Gmail).

3. Inspect the Email Headers:

In the received test email, view the email headers. This is usually done through the "View Original" or "View Source" option in the email client.

Look for a header field named DKIM-Signature.

4. Check DKIM Validation Result:

In the email headers, search for the Authentication-Results header or something similar, which indicates the result of the DKIM check.

An example of a successful DKIM validation result might look like:

Authentication-Results: mx.google.com; dkim=pass (signature was verified); dkim-domain=example.com;

If the result is pass, it means that DKIM is set up correctly and the signature was validated.

5. Use Online DKIM Validators:

Use these online tools to validate your DKIM setup:

  • MXToolbox DKIM Record Lookup: This tool helps verify the technical configuration of your DKIM record. You provide your domain name and the DKIM selector (often found in your email provider's settings) to check if the record is properly published in your DNS.
  • DKIM Core Check Tool: It goes a step further and can inspect the actual DKIM keys used for signing your emails. It can help identify issues with the key itself, such as validity or potential security concerns.
  • Mail-Tester: This tool takes a more practical approach. You send an email to their test address, and they analyze it for various authentication factors, including DKIM. This allows you to see how your emails are actually treated by receiving mail servers and confirm if DKIM validation is successful.

7. Check DNS Configuration:

Verify that the DKIM public key is correctly published in your DNS records.

You can use various DNS lookup tools or commands like nslookup or dig to ensure the TXT or CNAME record exists and is formatted correctly.

You can also use DMARC reports to check that the messages sent using your domain are correctly authenticated with DKIM and SPF.

A DMARC monitoring service like DMARC Digests will process these reports for you and provide a useful summary of DKIM, SPF, and DMARC results for messages sent from all the mailbox providers you use.

Why SPF, DKIM & DMARC are important for cold emailing?

SPF, DKIM & DMARC are settings to certify that you're the sole owner of your cold email domain.

DKIM (DomainKeys Identified Mail) is essential for cold emailing because it adds a cryptographic signature to your emails, ensuring their authenticity and integrity.

This verification process proves that your emails genuinely come from your claimed domain and have not been tampered with during transit.

By implementing DKIM, you increase trust and credibility with recipients and email providers, significantly improving email deliverability and reducing the likelihood of your messages being marked as spam.

How DKIM protects from spoofing attacks?

Cyber criminals are getting more sophisticated and the volume of emails are constantly rising. Add automation tools and new phishing techniques and you get a rise in spoofing attacks we see recently.

Email spoofing is a common tactic used to deceive recipients into believing that an email comes from a legitimate source when it's‌ a fraudulent attempt to steal sensitive information.

DKIM helps in the fight against email spoofing, working alongside SPF and DMARC to enhance email deliverability and security.

It is an email authentication method designed to detect forged sender addresses in emails.

DKIM uses cryptographic signatures to verify that an email message has not been tampered with and that it truly comes from the claimed domain.

The recipient’s mail server uses the corresponding public key, published in the sender's DNS records, to validate the signature. If the signatures match, it confirms that the email has not been altered and is indeed from the authenticated domain.

In simple words, DKIM adds a digital signature to outgoing emails. This signature is verified by the recipient's email server, ensuring that the claimed domain has indeed sent the email.

Thanks to this added layer of authenticity to emails, it becomes much more difficult to forge the sender's identity.

While DKIM is a potent tool, combining it with other authentication protocols further strengthens email security:

  • Sender Policy Framework (SPF): SPF allows domain owners to specify authorized email servers for sending emails from their domain. When an email arrives via an authorized server, it's considered legitimate, helping prevent spoofed emails from reaching recipients.
  • Domain-based Message Authentication, Reporting, and Conformance (DMARC): DMARC works in conjunction with SPF and DKIM, providing instructions to email systems on how to handle emails that fail authentication. It helps organizations protect their brand and makes sure that only genuine emails from approved domains are delivered.
  • Brand Indicators for Message Identification (BIMI): BIMI enhances brand visibility in email clients by displaying a company's logo next to its emails. This not only verifies the email's authenticity but also reinforces brand trust and email sending reputation.

By implementing DKIM alongside SPF, DMARC, and BIMI, organizations can significantly reduce the risk of email spoofing attacks. Boost email deliverability, and provide recipients with a safer email experience.

Frequently Asked Questions

Can you send emails without DKIM?

Yes, you can send emails without DKIM.

But without DKIM, messages sent from your domain are more likely to be marked as spam. This can damage your domain reputation, trustworthiness, and deliverability.

DKIM helps prevent email spoofing, phishing, and impersonation by verifying that the email was sent by the domain owner and not someone else. So there’s no reason you’d like to send your email without DKIM.

Where is the DKIM signature?

The DKIM signature is in the email header that contains the encrypted hash of the message content and the domain name of the sender. It’s generated by using a private key that is kept secret by the sender, and a public key that is published in the DNS records of the sender’s domain.

How do I check my DKIM and SPF records?

To check your DKIM and SPF records, you can use various online tools or services that can help you test and validate your records. For example, you can use t free deliverability test, which will give you an overview of your technical setup including DKIM and SPF.

What is the difference between DKIM signature and public record?

The DKIM signature and the DKIM public record are two important components of the DKIM authentication system. The DKIM signature is a digital signature added to the email message header by the sending domain, while the DKIM public record is published as a DNS record in the DNS zone for the sending domain.

Key takeaways

  • Setting up DKIM records helps fight email spoofing and misuse
  • If you want to have high email deliverability, it's a must to enable DKIM record

☝️ Once you enable DKIM, the job isn't done. You have to set up SPF and MX records next.

Get weekly outreach tips
SHARE THIS ARTICLE
Thanks! You've successfully subscribed to lemlist newsletter
Oops! Something went wrong while submitting the form.
G2 Rating
Price
Best for
Standout feature
Con
4.9
star
star
star
star
star
$30/mo
$75/mo
$2,999/mo
Large, distributed sales teams
AI evaluation precision, gamified KPIs
Lack of tracking system
4.6
star
star
star
star
star-half
Not publicly available
Sales operations and finance teams
Powerful configurability
Limited training resources and complex to navigate
4.4
star
star
star
star
star-half
Not publicly available
Mid-market and enterprise businesses
Comprehensive incentive management
Potentially high cost and steep learning curve
4.7
star
star
star
star
star-half
$15/user/mo
$40/user/mo
Enterprise: custom price
Complex sales structures and businesses of all sizes
Complex sales structures and businesses of all sizes
Steep learning curve
4.6
star
star
star
star
star-half
Not publicly available
Collaborative teams
Connected planning
Complexity and steep learning curve
4.6
star
star
star
star
star-half
Not publicly available
Companies with complex sales structures
Complex incentive compensation management (ICM) with high efficiency and accuracy
Complexity for smaller teams and potentially high costs
4.7
star
star
star
star
star-half
Not publicly available
Companies who want to automate commission calculations and payouts
Simplicity and ease of use
Lack of features like redirection
4.7
star
star
star
star
star-half
$30/user/mo
$35/user/mo
Custom: upon request
Businesses that need a comprehensive and user-friendly sales compensation management software
Ease of use and adoption
Lack of ability to configure the product based on user needs
4.8
star
star
star
star
star-half
Not publicly available
Companies with modern sales culture and businesses who want real-time insights
A built-in dispute management and real-time visibility
Users say it works slowly, customer support is slow
4.9
star
star
star
star
star
$30/user/mo
$50/user/mo
Smaller sales teams
Powerful automation
Lesser user base and average user interface
4.7
star
star
star
star
star-half
Not publicly available
Companies with scalable needs
Automated Commission Calculations
Lack of filtering by date, no mobile app
ERP vs. CRM
ERP
CRM
Summary
Backbone of a business's internal operations.
Backbone of customer-centric interactions and operations.
Goal
To centralize and streamline core business processes in a company.
To increase customer experience, satisfaction and loyalty, and boost sales.
Focus
Internal operations and processes across departments (finance, accounting, inventory, supply chain, HR, and sales).
All interactions with leads and customers.
Manages
Internal business data like financial data, inventory levels, production details, supply chain, HR info.
All customer data like contact info, purchase history, communication history, customer preferences and more.
Users
Finance, accounting, operations, supply chain, and HR departments.
Customer-facing teams like sales, marketing, and customer service.
Benefits
Streamlines operations, improves data accuracy, enhances decision-making, boosts collaboration, increases productivity.
Improves customer relationships, increases sales, strengthens customer service, personalizes marketing campaigns, provides insights.
Price
$150 per user per year on average.
$10 to $30 per user per month on average.
PRM Tool
Rating
Feature
Pro
Con
Mobile App
Integrations
Free Plan
Pricing
4.65
star
star
star
star
star-half
Org-wide alignment
User-friendly layout and database
Suboptimal as a personal CRM
square-check
Lack of tracking system
square-check
Team: $20/month
Business: $45/month
4.7
star
star
star
star
star-half
Social Media Integration
Easy contact data collection
No marketing/sales features
square-check
Lack of tracking system
square-xmark
7-day trial
$12/month
4.75
star
star
star
star
star-half
Block Functions
High customization capability
Not a dedicated CRM
square-check
Limited
square-check
Plus: €7.50/month
Business: €14/month
N/A
Open-source
Open-source flexibility
Requires extensive manual input
square-xmark
Limited
square-check
Self-hosted
$9/month or
$90/year
3.1
star
star
star
Simple iOS app
Ideal for non-tech-savvy users
iPhone only
square-check
iOS only
Limited
square-xmark
1-month trial
$1.49/month or
$14.99/month
3.6
star
star
star
star-half
Smart Contact Management
Feature-rich and flexible
Reported bugs
square-check
Rich
square-xmark
7-day trial
Premium: $13.99/month
Teams: $17.99/month
4.4
star
star
star
star
star-half
Customizable Interface
Customizable for teamwork
Pricey for personal use
square-check
Rich
square-xmark
Standard: $24/member
Premium: $39/member
4.7
star
star
star
star
star-half
Integrated Calling
Integrated Calling
Too sales-oriented & pricey
square-check
Rich
square-xmark
14-day trial
Startup: $59/user/month
Professional: $329/user/month
4.8
star
star
star
star
star
Business Card Scanning
Business Card Scanning
Mobile only
square-check
Limited
square-check
$9.99/month
4.45
star
star
star
star
star-half
160+ app integrations
Comprehensive integrations
No free app version
square-check
Rich
square-xmark
14-day trial
$29.90/month or
$24.90/month (billed annually)
Capterra Rating
Free Trial
Free Plan
Starting Price (excluding the free plan)
Maximum Price (for the most expensive plan)
Best for
4.5
star
star
star
star
star-half
square-check
14-day
square-check
€15/month/seat billed annually
€792/month/3 seats billed annually + €45/month for each extra seat
Versatility and free plan
4.2
star
star
star
star
square-check
30-day
square-xmark
But it offers reduced price to authorised nonprofit organisations
€25/user/month
€500/user/month billed annually (includes Einstein AI)
Best overall operational CRM
4.3
star
star
star
star
star-half
square-xmark
square-check
Limited to 3 users
Comprehensive incentive management
€52/user/month billed annually
Small-medium businesses and automation
4.5
star
star
star
star
star-half
square-check
14-day
square-xmark
€14/seat/month billed annually
€99/seat/month billed annually
Sales teams and ease of use
4.1
star
star
star
star
square-xmark
square-check
Limited 10 users
$9.99/user/month billed annually
$64.99/user/month billed annually
Free plan for very small teams up to 10
CRM goal
Increase the sales conversion rate for qualified leads from marketing automation campaigns by 10% in the next 6 months.
SMART Breakdown
1. Specific: It targets a specific area (conversion rate) for a defined segment (qualified leads from marketing automation).
2. Measurable: The desired increase (10%) is a clear metric, and the timeframe (6 months) allows for progress tracking.
3. Achievable: A 10% increase is possible based on historical data and potential improvements.
4. Relevant: Boosting sales from marketing efforts aligns with overall business objectives.
5. Time-bound: The 6-month timeframe creates urgency and a clear target date.
Actions
Step 1: Refine lead qualification criteria to ensure high-quality leads are nurtured through marketing automation.
Step 2: Personalize marketing automation campaigns based on lead demographics, interests, and behavior.
Step 3: Develop targeted landing pages with clear calls to action for qualified leads.
Step 4: Implement lead scoring to prioritize high-potential leads for sales follow-up.
Step 5: Track and analyze campaign performance to identify areas for optimization.
Outcomes
Increased sales and revenue
Improved marketing automation ROI
Marketing and sales alignment
Data-driven marketing optimization
Table
CDP Software
CRM Software
Approach
Data-centric
Customer-centric
Focus
Interactions across various channels and touchpoints, both online and offline.
Sales, marketing, and customer service interactions.
Functionality
Automatically collects, organizes, tags, and makes data available in real-time.
Helps businesses track customer interactions, sales pipelines, prospects, and service requests.
Goals
Personalized customer experiences across all channels.
Better customer relationships, streamlined processes, and improved profitability.
Benefits
Data integration, management, and accessibility, allowing for detailed analysis and segmentation.
Better communication within teams and with customers by organizing information about customer interactions and history.
Data Handling
Handles both identified and anonymous data, stitches together various data points.
Deals primarily with identified customer data.
Use Cases
Personalized marketing campaigns, targeted advertising, content customization across multiple channels.
Managing campaigns and leads, enhancing customer service, providing better customer support, increasing customer satisfaction and loyalty.
Examples
Insider, Bloomreach, Salesforce Marketing Cloud CDP
HubSpot, Salesforce Sales Cloud Lightning Professional, and Zoho CRM

What you should look at next

Receive weekly outreach tips in your inbox, sent to 210 000+ salespeople, marketers, founders, and entrepreneurs worldwide!

Subscribe to the lemlist newsletter
You've successfully subscribed to the lemlist newsletter!
Oops! Something went wrong while submitting the form.