DKIM Private and Public key

Hello , I trust all of you are well and healthy.

Am new in the Mail Servers “system” and i have some questions.
I just install Axigen Mail server on Windows 2012 Server and I am trying to understand the DKIM records in DNS and in Axigen.
My questions are,

  1. how can i generate the Private and Public key for using them in DKIM ?
  2. I Understand how to insert the public key in the DNS Records but where i have to install the private key in the axigen?

Those for now , i am appreciate your help

John Geo

Follow the guide on https://www.axigen.com/documentation/domainkeys-dkim-p3277108
To generate the keys either fire up a small linux machine and copy the keys to /var/opt/axigen or try with a Windows version of OpenSSL.
You can also try to use tools like cygwin.

The private key is needed for signing outgoing messages, you can enter the path where it is located within your axigen installation upon creating the rules.

1 Like

Thanks Jeroen, It work !!!

Thanks Jeroen,

I noticed there is a small omission in that Axigen document you linked.

The DNS entry needs to be prefixed with the DKIM version, so like this:

v=DKIM1;k=rsa;p=<content_of_public_key_pem_file_on_1_line>

You can check your DKIM keys and DNS entries here:

Alrik.

Hello Alrik,

Thanks for your comment.

According with the RFC6376 the mentioned “prefix” (v=DKIM1) is not mandatory but recommended.

HTH,
Ioan

2 Likes