[solved] Upgrade Debian 8 -> 9 : DKIM is totaly broken !

Hi !

I upgrade a virtuamin installation under Debian 8 to Debian 9.
At the end of the upgrade, the service opendkim wan’t to start …

The Debian wiki say (https://wiki.debian.org/OpenDKIM) :
OpenDKIM fails to start after upgrading from Debian jessie to stretch

systemctl daemon-reload
service opendkim restart

noway …

I try and read a lot of things before write her, for example :
But I’m not sure about file uses in virtualmin context.

And always the same :

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/opendkim.service.d
Active: failed (Result: exit-code) since Thu 2019-07-04 12:25:30 CEST; 11min ago
Docs: man:opendkim(8)
Process: 12575 ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p inet:12301@localhost -b s (code=exited, status=78)

Thanks for your help !


If someone can show me a working /etc/opendkim.conf I think I could success !
Thanks !

Here is the easiest solution :
apt-get purge opendkim opendkim-tools

and return to the DKIM configuration in Virtualmin to reinstall it automatically.


1 Like

@bertrandb - thanks for that. Had a similar situation after a Debian 9 to 10 upgrade and that sorted it for me :slight_smile: