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 DKIM not working on a fresh Virtualmin installation (Ubuntu 18.04) on the new forum.
I made a fresh install on a Ubuntu 18.04 server of the latest Virtualmin release. Got everything up and running, except the fact that my DKIM signature is not included in the email header when sending emails.
Initially, my mail.log was showing Main postfix/cleanup[3106]: warning: connect to Milter service inet:localhost:8891: Connection refused
, but then I commented out the following two lines:
#smtpd_milters = inet:localhost:8891
#non_smtpd_milters = inet:localhost:8891
from /etc/postfix/main.cf
, restarted opendkim and postfix and the error was gone - but my problem wasn't solved. The DKIM is still not being included in the email headers. Any ideas?
The trick is not to stop postfix from trying to connect to DKIM, but figure out why it can't.
Is dkim installed? Running? Listening on port 8891?
I have the same issue on Ubuntu 18.04. I opened up /etc/opendkim.conf and realised the default socket configuration was set to
Socket local:/var/run/opendkim/opendkim.sock
.
So I changed it to
Socket inet:8891@localhost
and it works now.Hi, I solved this with this help:
https://www.virtualmin.com/comment/808804#comment-808804