Skip to main content
Enter TitanOS

Email authentication error

DMARC TXT record too long: the 255 character limit and quotes

A single string inside a DNS TXT record can hold at most 255 characters. A DMARC record with several report addresses can run past that, and then the panel either rejects it, truncates it or stores it badly. A record that is cut off or has stray quote marks inside the value fails DMARC syntax checks, and receivers may ignore it.

By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.

Most DMARC records are short, so this only affects domains with long address lists or extra tags. This page explains the limit, how splitting works, and the quoting habits of common DNS panels, so you can publish a long record that reads correctly.

The limit and how splitting works

DNS stores a TXT record as one or more character strings, each limited to 255 bytes, as set out in RFC 1035. A record that needs more room is written as several strings in a row. A receiving system joins the strings together, with nothing added between them, before reading the value. RFC 7208 section 3.3 states this for SPF and RFC 6376 section 3.6.2.2 does so for DKIM keys, and DMARC records are read the same way in practice.

In zone file notation the strings are shown as separate quoted pieces on one line. The quotes belong to DNS, not to the record value. The text a DMARC parser sees is the contents of the strings joined together, so the version tag must still start the joined text, as in v=DMARC1.

When a DMARC record gets long

A basic record is well under the limit. The usual cause of length is the rua and ruf tags holding several mailto addresses, particularly when a reporting service gives long addresses. Adding an sp tag, a pct tag and two alignment tags makes it longer again. If your record is approaching 255 characters, ask whether every address earns its place. One reporting address is often enough, and a service can forward to others.

Our DMARC generator lets you see the length as you build the value. For the opposite problem of long keys, our page on DKIM keys that are too long for a DNS TXT record covers the same splitting rule for signatures.

How DNS panels handle quotes

Panels differ, and this is where most breakage happens. Some add the surrounding quotes for you, so typing your own produces literal quote characters inside the value and breaks the version tag. Some split long values automatically. Some require you to do the splitting yourself by entering quoted pieces separated by a space. A few reject anything over 255 characters outright.

Never paste a value with smart quotes from a word processor or email, since curly quotes are different characters from straight ones and will be stored as part of the text. Do not add a space inside a piece unless the space belongs in the value, and do not break a string in the middle of a tag name or an address if the panel does not join pieces cleanly.

Checking the result

Look up the TXT record with a DNS tool and read the answer. Some tools show the separate strings and some show the joined value. Make sure the joined value starts with v=DMARC1, has no quote characters inside it and ends with the last tag you intended. If your record is a single string under the limit, none of this applies, and you can publish it as it is.

Publish a long DMARC record correctly

  1. Count the characters in your intended DMARC value.
  2. Shorten it first by removing tags or addresses you do not need.
  3. If it is still over 255, check your panel's help for how it handles long values.
  4. Copy the value from a plain text editor, not a word processor.
  5. Type quotes only if the panel does not add them for you.
  6. If splitting by hand, break the value into pieces of up to 255 characters.
  7. Put each piece in straight quotes with a space between pieces.
  8. Save and look the record up with a DNS tool.
  9. Confirm the joined value starts with v=DMARC1 and has no quote marks inside.
  10. Check that reports and policy still work after a day.

Questions people ask

Is the 255 limit for the whole record or one string?

For one string. A TXT record can hold several strings, and receivers join them together, as RFC 1035 and RFC 7208 describe.

Why does my DMARC record show quote marks in the value?

The panel probably added its own quotes around yours, so the stored text contains literal quote characters. Remove the ones you typed.

Should I split a short record to be safe?

No. A value under 255 characters should be a single string. Splitting adds a chance of error.

Does splitting affect how receivers read the policy?

Not when done correctly, because the strings are joined before parsing. A split in the wrong place or an added space can still break a tag.

Where to from here

The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.

Get the free auditSee Privacy CareBook a call

Sources

  1. RFC 1035, Domain Names, character strings
  2. RFC 7208, SPF, section 3.3 multiple strings
  3. RFC 6376, DKIM, section 3.6.2.2
  4. ASD, email hardening guidance
Book a free call