I'm setting up Email Authentication and I'm seeing conflicting info on the format.
Some say that the value should be surrounded in " "
But other services have told me to leave out the surrounding "
Does it just vary by ESP (email service provider)?
Best Answer
The formatting of
TXT
record data doesn't really have to do with Email. Ie, it doesn't have to do with the Email Service Provider, rather the DNS server software / DNS Service provider if anything.TXT
records can have multiple string values.In the standardized master file format, if you put quotation marks around something that becomes a single string even if there are spaces. If you leave out the quotation marks each "word" is a string of its own.
For DKIM
TXT
records, if there are multiple string values these are simply concatenated.This means that:
"foo bar"
means foo barfoo bar
is the same as"foo" "bar"
and means foobarFor a DKIM record specifically there isn't really significant whitespace, so either is ok in that respect but be careful with
;
as semicolon is the comment character in the master file format.Now, this is all regarding the standardized master file format, if you instead talk about something like a form field in a web UI of a DNS service provider, then you'll really have to consult their documentation as their UI may or may not accept its input based on the above.