When DNS providers impose TXT record length limits, DKIM key issues arise, leading to authentication failures, deliverability problems, and potential spoofing. This can stem from truncated records or incorrect DMARC configurations. TXT records have a defined size limit, often 255 characters per string, and deviations from this standard or using duplicate TXT records cause issues. While concatenating strings within a TXT record or splitting keys into multiple records are potential workarounds, they aren't universally reliable. Competent DNS hosting is vital, and upgrading to providers supporting longer records is often the best solution. Verify complete DKIM keys with external tools and consider hacking client-side validations where applicable, while adhering to DNS record limits and ensuring the DNS system is RFC compliant.
11 marketer opinions
When DNS providers impose TXT record length limits, DKIM key issues arise, causing authentication failures and deliverability problems. Several workarounds exist, including splitting the DKIM key into multiple TXT records or hacking client-side validations, but these are not universally reliable. Checking the raw DNS records and validating with external tools is recommended. Upgrading to a premium DNS service or migrating to a more compliant provider with better support for longer records and DKIM management is often the best long-term solution.
Marketer view
Email marketer from SuperUser responds that some DNS providers have UI limitations that impose character limits even when the underlying DNS system supports longer records. They suggest checking the raw DNS records to confirm whether the entire key is actually being stored.
23 Jul 2021 - SuperUser
Marketer view
Email marketer from Email Geeks shares that sometimes those character limits are set up and enforced client side only, suggesting to try hacking the HTML or JavaScript validation.
17 Mar 2025 - Email Geeks
5 expert opinions
When DNS providers impose TXT record length limits, several issues arise impacting DKIM and DMARC. Duplicate TXT entries can invalidate DKIM keys. While multiple strings can be concatenated within a single TXT record, many providers have arbitrary limitations. Utilizing a competent DNS host is crucial for system stability. The Domain Name System (DNS) and TXT records are fundamental for email security and preventing malicious activity. Problems with DMARC setup, including incorrect or excessive TXT records, need proper attention and adherence to DNS record limits.
Expert view
Expert from Email Geeks explains that duplicate TXT entries will lead to an invalid DKIM key, and hence to no valid DKIM signatures.
9 May 2022 - Email Geeks
Expert view
Expert from Word to the Wise explains that because TXT records can be used to setup DMARC, problems can occur if there are too many of them, or they are not set up correctly. Advice is given to make sure any DNS record is not only correct but also conforms to any DNS record limits the provider might have.
22 May 2024 - Word to the Wise
4 technical articles
TXT records have a defined size limit, commonly 255 characters per string, as per RFC standards. DNS providers that truncate DKIM records exceeding this limit can cause DKIM validation failures. When TXT record data exceeds the limit, it should be split into multiple strings within the same record for concatenation by the DNS resolver. Splitting the record is sometimes necessary for providers with length restrictions, however it is best practice to choose DNS providers that support longer records.
Technical article
Documentation from RFC Editor details the standard format for TXT records, indicating that they consist of one or more character strings, each with a maximum length of 255 octets. DNS servers should support this standard, and deviations can cause interoperability problems.
27 Nov 2024 - RFC Editor
Technical article
Documentation from Google explains the process of adding a DKIM record to your domain's DNS records. If the DNS provider limits the TXT record length, splitting the record might be necessary, but providers supporting longer records are preferred.
4 Sep 2023 - Google
Are people using 4096-bit DKIM keys, and what is the recommended DKIM key length?
Can DKIM be set up on a subdomain, and which domain should be used for signing?
Do DKIM selectors affect email reputation?
How do I find the DKIM selector for my domain in Dmarcian or Hubspot?
How do I fix DKIM alignment errors and configure DKIM signing for a custom domain in Microsoft 365 and is include:spf.mtasv.net required for mailchimp?
How should DKIM selector names be interpreted and what is the recommended DKIM key size?