Skip to main content

How can I add and troubleshoot DKIM records for my domain?

Garrett Saundry avatar
Written by Garrett Saundry
Updated yesterday

How can I add and troubleshoot DKIM records for my domain?

DomainKeys Identified Mail (DKIM) is an essential email authentication method that enables the sender to associate their domain with email messages, helping to prevent spoofing and ensuring message integrity. This guide provides an overview of how to add DKIM records to your domain's DNS settings and troubleshoot common DKIM validation issues.

Adding DKIM Records to Your Domain

Step 1: Determine Your DNS Management Provider

Find out which service manages your domain's DNS settings (e.g., Cloudflare, Webnames.ca, or another provider). Typically, this is the same service where your domain is registered or hosted. Without access to this service, you won't be able to make changes to DNS records. If your DNS is managed by a third party such as Cloudflare, for example, and you don’t have login access, you'll need to contact the organization or person managing these records to request the addition of the DKIM entry. Webnames.ca, for instance, does not have access to modify DNS records for domains hosted with Cloudflare.

Step 2: Add the DKIM Record

Once you determine where your DNS is managed:

  1. Log in to your DNS management portal.

  2. Navigate to the DNS settings for your domain.

  3. Add a new DNS record with the following details: - Type: TXT - Host/Name: mail._domainkey.[YOUR_DOMAIN] - Value: The DKIM public key provided by your email service (It typically starts with "v=DKIM1;").

  4. Save your changes.

Allow some time for DNS propagation (generally 24-48 hours) for the record to take effect. Ensure you input the correct selector and key specific to your domain services.

Troubleshooting DKIM Validation Failures

If DKIM validation is failing for your domain, follow these steps:

  1. Verify the DKIM Record: Double-check that the TXT record was added correctly. Ensure you’ve used the correct selector ("mail," "default," or as provided by your service) and public key.

  2. Check DNS Propagation: Use online tools (e.g., DNS Checker or similar) to verify if the DKIM record has propagated to DNS servers worldwide.

  3. Debugging Email Logs: Review the error messages or logs from your email service provider. These may indicate why the validation is failing.

  4. Re-Test: After correcting any issues, re-run the DKIM validation test through your email provider or a trusted third-party tool.

Additional Considerations

  • If you lack access to your DNS management account, you must coordinate with your domain administrator or service provider.

  • If DKIM validation continues to fail despite correct setup, other related records like SPF or DMARC might also influence authentication results. Double-check these for consistency.

Conclusion

Configuring and troubleshooting DKIM records is a crucial part of securing your email communications. By ensuring proper DNS setup and resolving validation failures quickly, you can enhance your domain's email authenticity and integrity.

Did this answer your question?