Your message dated Wed, 24 Nov 2021 22:19:04 +0000
with message-id <[email protected]>
and subject line Bug#971074: fixed in opendkim 2.11.0~beta2-6
has caused the Debian Bug report #971074,
regarding OpenDKIM fails on reboot - starts too early
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
971074: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971074
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: opendkim
Version: 2.11.0~alpha-10+deb9u1

OpenDKIM fails on boot but works fine when restarted manually. First, let's investigate the state after reboot:

$ systemctl status opendkim

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
   Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)    Active: failed (Result: exit-code) since Sun 2020-09-27 10:18:19 UTC; 1min 38s ago
     Docs: man:opendkim(8)
           man:opendkim.conf(5)
           man:opendkim-genkey(8)
           man:opendkim-genzone(8)
           man:opendkim-testadsp(8)
           man:opendkim-testkey
           http://www.opendkim.org/docs.html
  Process: 1001 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=78)

/var/log/mail.err and mail.info contains no error messages.

Restarting opendkim manually resolves the problem, leading me to believe that it is starting too early.

$ systemctl restart opendkim
$ systemctl status opendkim

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
   Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-09-27 10:21:08 UTC; 6s ago
     Docs: man:opendkim(8)
           man:opendkim.conf(5)
           man:opendkim-genkey(8)
           man:opendkim-genzone(8)
           man:opendkim-testadsp(8)
           man:opendkim-testkey
           http://www.opendkim.org/docs.html
  Process: 1611 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=0/SUCCESS)
 Main PID: 1614 (opendkim)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/opendkim.service
           ├─1614 /usr/sbin/opendkim -x /etc/opendkim.conf
           └─1616 /usr/sbin/opendkim -x /etc/opendkim.conf

Sep 27 10:21:08 cloudmail systemd[1]: Starting OpenDKIM DomainKeys Identified Mail (DKIM) Milter... Sep 27 10:21:08 cloudmail systemd[1]: Started OpenDKIM DomainKeys Identified Mail (DKIM) Milter. Sep 27 10:21:08 cloudmail opendkim[1616]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim.conf)

As a permanent fix, I made opendkim start after MariaDB by modifying the service definition:

$ nano -w /etc/systemd/system/multi-user.target.wants/opendkim.service

I changed
After=network.target nss-lookup.target
to
After=network.target nss-lookup.target mariadb.service

OpenDKIM now starts as expected when rebooting.

Regards
Jimmy Thomsen

--- End Message ---
--- Begin Message ---
Source: opendkim
Source-Version: 2.11.0~beta2-6
Done: David Bürgin <[email protected]>

We believe that the bug you reported is fixed in the latest version of
opendkim, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Bürgin <[email protected]> (supplier of updated opendkim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 24 Nov 2021 11:29:04 +0100
Source: opendkim
Architecture: source
Version: 2.11.0~beta2-6
Distribution: unstable
Urgency: medium
Maintainer: David Bürgin <[email protected]>
Changed-By: David Bürgin <[email protected]>
Closes: 971074
Changes:
 opendkim (2.11.0~beta2-6) unstable; urgency=medium
 .
   * Deprecate /lib/opendkim/opendkim.service.generate script: instead, edit
     /etc/opendkim.conf directly, or use "systemctl edit opendkim.service" to
     create configuration overrides.
   * Add patch "lua-5.3.patch": Upgrade Lua library dependency to version 5.3
     (from 5.1).
   * Document service startup order in README.Debian (Closes: #971074).
Checksums-Sha1:
 dd0ec5137cbce1951aeeb26f40bd4a3df13212a9 2315 opendkim_2.11.0~beta2-6.dsc
 d2f2a4db767d887724447ce57f22928643923ea3 29772 
opendkim_2.11.0~beta2-6.debian.tar.xz
 598a81683e367557bfbc9f40f1417e4a8cff50bf 6632 
opendkim_2.11.0~beta2-6_source.buildinfo
Checksums-Sha256:
 b167ae8f98f3d62687c594b27dff0b6ee62690d5e960c8cbfcd09fe4a9ea0cd6 2315 
opendkim_2.11.0~beta2-6.dsc
 4ab1131a96c2610f192cc55cd07a2df569b51ed0bd1ef0fd7c7bf5604dd0d939 29772 
opendkim_2.11.0~beta2-6.debian.tar.xz
 94dd1754ed16e5b03a412b229a1d9e6bba4ebc65b63c29c608dd43ed09e82bd4 6632 
opendkim_2.11.0~beta2-6_source.buildinfo
Files:
 2ba03b3c3c254ee7f046bfed227ac8b2 2315 mail optional opendkim_2.11.0~beta2-6.dsc
 e6e55f01352994e115707875bab2e3cf 29772 mail optional 
opendkim_2.11.0~beta2-6.debian.tar.xz
 f38335348d3da1ea4e9b3c2165b7d80d 6632 mail optional 
opendkim_2.11.0~beta2-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmGetYEACgkQH1x6i0VW
QxQQgQwAkb8AmgcK6PnaSHLHsZkBKDHUXhOcfQ9IWY+2Vsk4IK7piUwH6xwP7n3V
oqYJkNtzhm6on9zCtsSLEdGkQ0QKDl0Sh1WYPoVbEVBXY+nTvisA0/bvLShft2zJ
7+bIrZBFkjot1xPnLeLsSog2uo1zDJ2tn7ulMVJSEii8a3NAbw97qx5y26i0SdtP
jTKDv8+4tMJfumPSnZ5Ot69TyPG3lGMLsfEQfSMKTNJbfM2uFWPPGqO+4zkDayyr
N6xyqm3T3OmY4OkRmVf1UnX+joZriMhfGUX/9AzTC/FP6CamPf5z/zdRsccHTsYp
bieT9A3sHkOX4XcfoEuIERRTe1C6kGH3yMFPwEyxLzozD/QNcf06Xs+izW5xw1X5
7gxgjk2YUlW5ga9CTnqj7mxqFZbOEzUqTnkOMtYu1rvSvG+msyVyavwAoYYkhIaW
uuDkRjdd5cen5M7xsn9Fj+JFFEyigl1wP/EnggkHBu+KKW/jrk7xWBC72QAeKvgh
3DmPNN8Z
=jNIh
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to