DKIM not working on a fresh Virtualmin installation (Ubuntu 18.04)

4 posts / 0 new
Last post
#1 Sun, 11/25/2018 - 07:50
perte

DKIM not working on a fresh Virtualmin installation (Ubuntu 18.04)

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?

Tue, 11/27/2018 - 03:10
noisemarine

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?

Sun, 12/02/2018 - 09:37
trenzterra

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.

Wed, 02/20/2019 - 09:19
carras
Topic locked