Emails not including dkim

I am trying to get dkim working on my virtual servers
I have enabled dkim in Email Settings:
Signing of outgoing mail enabled? Yes
Selector for DKIM record name 2018
Reject incoming email with invalid DKIM signature? Yes
Force generation of new private key? No
Size of new DKIM key 2048.

I copied the public key to my DNS and mxtoolbox.com check shows the record is in DNS and checks out Ok.

However when I send email it is not signed and checking the /var/log/mail.log shows the following:

warning: connect to Milter service inet:localhost:8891: Connection refused

FirewallID shows the port 8891 open for tcp

domain is pcsmarts.biz

How do I fix this?

Forumrules about versions and so on?

https://www.virtualmin.com/documentation/email/dkim

The solution was found in this link
https://serverfault.com/questions/847435/cant-change-opendkim-socket-in-debian-stretch-in-etc-default-opendkim/847442#847442

FINE:
So your OS is DEBIAN , for users wo search support forum, versions and nr’s are important to mention, also if one want’s support makes life much easier. :wink:

The Link from dkelly60 did the magic.
Thanks a lot.

Thanks dkelly60 for finding the bug and solution,

These commands fixed it for me on debian 9:

/lib/opendkim/opendkim.service.generate
systemctl daemon-reload
service opendkim restart

https://serverfault.com/a/847442/148032