Question

How to create DKIM key in Ubuntu and add it to DNS record

  • In Ubuntu 18.04 which commands should I run to create DKIM private and publick key for domain. Can I do that by using Openssl tool or no

I checked this question DKIM on DNS panel DigitalOcean and this article How To Install and Configure DKIM with Postfix on Debian Wheezy but it is for Debian Wheezy not Ubuntu 18.04

  • After I created the keys (public and private), How can I add the public key to domain vi Digitalocean DNS

  • Finally can I use that private key to setup DKIM Signing using Nodemailer


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.

Hi @amjedomar,

You can use the tutorial for Debian Wheezy, it’s really the same technology implemented the same way as it’s described in the tutorial.

As soon as you generate the Private and Public key, you’ll need to add the Public key to your DNS so that when you send e-mails receiving servers know which DNS and which Private Key to check.

Regards, KDSys