DKIM not set up correctly?

I’m very new to the world of mail servers and have been following all the information I can find to get one set up on an Ubuntu 14.04 x86_64 vm with Mail-in-a-box. Everything works, but indicates my DKIM record is invalid. Here’s what my zone file looks like:

$ORIGIN $TTL 1800 IN SOA 1456938287 10800 3600 604800 1800 1800 IN NS 1800 IN A 1800 IN CNAME 1800 IN MX 10 1800 IN A 1800 IN A 1800 IN A 1800 IN NS 1800 IN MX 10 1800 IN TXT “v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDQ7KPVFTRqniC7k/jQlE+J2qxEjb1IjxqUBxm/Fi9c02GEx9JI62uPsjJCzE5GX+cLQr5UfbpE2Qn1IKbNGacAs2txoSSK30sVzYp4mBFbUUm0pLBdkNZAqBeUzP4Wdxpzql/KIEDh3akTmkgrgiP68jVShQjzWlkRcs7oqXAmZwIDAQAB” 1800 IN TXT “v=spf1 ip4: ~all” 1800 IN A 1800 IN NS 1800 IN TXT “v=DMARC1; p=quarantine;;; fo=0:1:d:s; aspf=s”

(Sorry that it’s such a disorganized mess)

Is there a syntax error in here I haven’t seen? Any help would be appreciated!

Show comments

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.

Everything looked ok to me when I looked this over so I pasted your DKIM into this tool which indicates it is valid. I would retry the check after 24 hours in case mail-tester was getting cached DNS records for some reason.