Setting up DKIM on DirectAdmin

DKIM (DomainKeys Identified Mail) is one of the most critical tools for ensuring your emails reach the inbox. If you've set up only SPF and left DKIM unconfigured, your emails are at high risk of landing in spam regardless of how perfectly your SPF is configured. On AsiaGB Hosting, setting up DKIM is simple — just enable one toggle in DirectAdmin and you're done. This guide will walk you through each step in detail.

2024-2026 Requirement: Google and Yahoo now mandate DKIM for bulk senders (5,000+ emails/day). Without DKIM configured alongside SPF and DMARC, emails will be rejected or automatically classified as spam with no exceptions.

What is DKIM and Why Does It Matter?

DKIM is a digital signature for emails. The way it works: DKIM uses a Private Key to sign every outgoing email, and publishes a corresponding Public Key in DNS. When a recipient's mail server (Gmail, Yahoo, etc.) receives your email, it uses the Public Key to verify that the email truly came from your server and that the content hasn't been tampered with during transmission.

In simple terms, if you only have SPF without DKIM, an attacker could still spoof your domain by faking the From address to look like it came from an authorized server, but the email body could be anything malicious. DKIM stops this type of attack because it cryptographically verifies that the email body was actually signed by your server's private key.

2026 Statistics: Emails that pass DKIM verification are 90% more likely to reach the inbox than emails without DKIM, even if SPF passes.

How DKIM, SPF, and DMARC Work Together

When talking about email authentication, people often say \"SPF, DKIM, DMARC\" in sequence, but these are actually three distinct technologies with different roles:

All three work together. SPF and DKIM are the \"proofs,\" while DMARC is the \"policy.\" Together, they create a comprehensive authentication framework that email providers trust.

Preparing Before You Set Up DKIM

Before you enter DirectAdmin, make sure you have this information ready:

Step 1: Log Into DirectAdmin Control Panel

First, log into your DirectAdmin control panel:

Once inside DirectAdmin, locate the \"Email Management\" or \"Mail\" section in the main menu. This is typically found in the left sidebar.

Step 2: Select Your Domain and Open Email Manager

Click on \"Email Management\" or \"Mail Manager.\" DirectAdmin will display all domains hosted on your account.

DirectAdmin will now show the Email Manager for that specific domain. You'll see sections for email accounts and, most importantly, a toggle or button for \"DKIM\" or \"Enable DKIM.\"

Step 3: Enable DKIM

Look for the toggle or checkbox labeled \"Enable DKIM\" or a button that says \"Create DKIM.\" You'll have two options:

After clicking, DirectAdmin will display your Public Key. Don't leave this page yet — you'll need the Public Key content in the next step.

Step 4: Copy the DKIM Public Key and Create a DNS Record

DirectAdmin will show your DKIM Public Key in a format like this:

v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC...

Copy the entire Public Key (starting from \"v=DKIM1\" through the end) and create a TXT DNS record with this information:

If your domain uses DNS managed through DirectAdmin itself, go to DNS Management within DirectAdmin and add the record there. If your domain uses external DNS (Cloudflare, Google Domains, etc.), log into that provider's control panel and add the record with the same information.

Warning: Never modify or delete the DKIM key after creation. The private key is stored on AsiaGB's servers and if you delete it, you'll have to create a new one. The DNS record you added will then be invalid for several days, causing all your emails to fail DKIM verification and land in spam until DNS fully propagates.

Step 5: Wait for DNS Propagation and Verify

After adding the DKIM DNS record, you need to wait for it to propagate globally — typically 24-48 hours, though most of the time it's just 2-4 hours. You can check propagation status using MXToolbox or other DNS propagation checkers:

Step 6: Test DKIM With Mail-Tester

After confirming the DKIM record in MXToolbox, perform a real-world test to ensure DKIM signature verification passes:

If DKIM passes, you'll see \"DKIM: PASS\" in the report. If it fails, Mail-Tester will explain why — typically either the DNS record hasn't fully propagated yet or there's an issue with the key format.

Complete Your Authentication Setup With SPF and DMARC

DKIM alone isn't enough. You must also configure SPF and DMARC for maximum email deliverability. On AsiaGB, setting up SPF is straightforward:

SPF Record

Add a basic SPF record to your DNS:

v=spf1 a mx ~all

If you use external services to send emails (like Mailchimp or Google Workspace), add their include directives:

v=spf1 a mx include:sendgrid.net ~all

DMARC Record

Add a basic DMARC record:

v=DMARC1; p=quarantine; rua=mailto:[email protected]

This record tells mail providers to quarantine emails that fail SPF/DKIM and to send daily reports to [email protected].

Additional Tips for Better Email Deliverability

Common Problems and Solutions

Problem: DKIM record still hasn't updated even after 24+ hours

Solution: Check DNS propagation status using MXToolbox or whatsmydns.net. If propagation is incomplete, wait 24 more hours. If it's still not complete after 48 hours, contact Support.

Problem: Mail-Tester says DKIM Failed

Solution: Verify that your DKIM Public Key is correct. The p= value should be roughly 380–420 characters for a 2048-bit key. If it's significantly shorter, you may have missed characters when copying. If you're confident it's correct, wait 24 hours for DNS to fully propagate, then test again.

Problem: Emails still landing in spam even though DKIM passes

Solution: DKIM alone isn't sufficient — you must also configure SPF and DMARC. Additionally, check your IP reputation, domain reputation, complaint rate, and bounce rate using email analytics tools.

Business Email on Your Domain — DKIM and DirectAdmin Ready

Set up DKIM easily on DirectAdmin with AsiaGB Hosting. Unlimited email accounts, professional business email, DirectAdmin control panel included. Starting at just 500 THB/year.

View Hosting Plans →