TXT records with or without quotes

I’m trying to configure TXT records for email deliverability (SPF, DKIM, DMARC).

I’ve seen guides for Digital Ocean that put TXT records between quotes (“v=spf1 ip4: -all”) and without quotes (v=spf1 ip4: -all).

Should I use quotes or not? Or do they work exactly the same?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


In most cases, it should work fine either way, but I personally prefer to add the quotes anyway.

What I personally do is to send an email to the following website:

It then generates a report for you which you could use to check how the email looks to the recipient server and verify if there are any unexpected issues with your TXT records.

Hello there,

The quotes are needed, you can also check our existing tutorials on How To Create a SPF Record For Your Domain with Google Apps and How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability

Hope that this helps!