These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Emails not including dkim on the new forum.
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-...
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. ;)
The Link from dkelly60 did the magic. Thanks a lot.
Operating system Debian Linux 9 | Webmin version 1.891 | Usermin version 1.741 | Virtualmin version 6.03
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