DKIM on Ubuntu 16.04 Server


We recently completed a migration from Ubuntu 14.04 to 16.04.

Apparently, 16.04 does not include/support the 'dkim-filter' described in your documentation:

OpenDKIM is installed, running and listening on port 8891:

root@www3:~# netstat -tapn |grep 8891
tcp        0      0*               LISTEN      11854/opendkim

However, attempting to configure DKIM using:

Virtualmin → E-Mail Settings → DomainKeys Identified Mail

results in:

Failed to save DKIM settings : Systemd service opendkim cannot be created unless a command is given

So I have disabled it for now.

Do you have any clues for me?

I would also like to get DMARC working...

Thanks in advance,




OK, I think I got past this.

After disabling 'Signing of outgoing mail', I purged some packages in 'apt' and deleted a few conf files in '/etc':

apt purge opendkim libopendbx1 libopendbx1-sqlite3 librbl1 libunbound2 libvbr2
rm -f /etc/dkim*

Then I installed DKIM signing again:

Virtualmin → E-Mail Settings → DomainKeys Identified Mail

and enabled 'Signing of outgoing mail' again, and it did not error out.

Any additional tips for DKIM or DMARC?