DKIM signature not valid

I am using one server for my main domain and another server for as my email server. The email domain is Mail server is working fine but it says that it does not have a valid DKIM signature. My email sending address is I have tried to generate DKIM keys and update my DNS records for main domain) but all in vain.

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.

Hello there,

We do have an article on How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability

A DKIM record is another measure that can prevent spoofing and improve mail reliability. You can use any online tool to generate the key for you.

Also if you use any control panel for your server, like cPanel it will have the built-in functionality to create the DKIM record on your behalf

Once created you can use a DKIM checker tool like the one provided from mxtoolbox and check whether the generated key is valid.

Hope that this helps! Regards, Alex

Hi @usmanabid283,

There is a very good and useful answer to a similar question in the community here:

It provides good examples on how you can deal with DKIM records in DigitalOcean.

Additionally, upon checking in Google, I found a couple of tutorials outside of DigitalOcean that outline the process needed as well - Add DKIM to DigitalOcean

Please give them a read and let me know if they were helpful.