How to set Public Key DKIM in Postfix

I need to set up my public key in the postfix server, I already generated the keys in https://dkimcore.org/tools/, and added the TXT records in my DNS provider. But I have no idea how to set it in my postfix server, I'm checking for some tutorials on the internet but mostly use opendkim and I already have my keys.

Any help would be appreciated.


Solution 1:

Run a DKIM signing filter/server like opendkim on the mail server. This will listen on a local socket or port, like localhost:8891. Then add that socket/port to smtpd_milters in your postfix config.

The opendkim documentation describes some more about this, and postfix MILTER docs has details for the postfix side.