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

Posted February 28, 2020 2.7k views
Node.jsDNSUbuntu 18.04
  • 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

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
1 answer

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.