Posted November 1, 2013 11.2k views
Can someone please tell me how to get DKIM and SPF set up? I'd like to use Mailgun or Sendgrid for sending and receiving my email but they (both) require DKIM and SPF records. I added (their) DNS entries in the DO DNS panel as supplied and they aren't showing up when I verify on their system so I'm assuming there's something else I need to do. My system is CentOS 6.4 x64, Nginx.

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.

Submit an Answer
4 answers
Did you wrap the entries in quotes? Also, remember that DNS records can take up to 48 hours to propagate through the Internet. Check out How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability.
by Pablo Carranza
A carefully tailored SPF record will reduce the likelihood of your domain name getting fraudulently spoofed and keep your messages from getting flagged as spam before they reach your recipients.
I did wrap them in quotes yes. As for propagation, Mailgun is already picking up my CNAME entry so there's no reason it shouldn't pick up my DKIM and SPF entries.

Do I not need to have a local DKIM key installed or will that be handled by theirs?

Thanks for your help.
I discovered by looking my DNS in my cPanel server on another droplet that I was missing the trailing "." on the entry. ie: I need to tell mailgun to update their instructions.
  • Thanks a ton! This worked for adding DKIM record of SparkPost too. I wasted 2 hours thinking that it will take time to update. I finally got frustrated, landed on this page and added the trailing “.”

    BINGO … that did the trick :)

  • I have the same problem. However I do not get it done to add the trailing “.” on hostname. It seems the input field does not allow it. If I add @ my hostname is displayed. How did you do it? Thanks it advance!

BINGO ... that did the trick :)