staging.inyokaproject.org

opendkim install schlägt fehl

Status: Ungelöst | Ubuntu-Version: Ubuntu 19.10 (Eoan Ermine)
Antworten |

aiponne

Anmeldungsdatum:
12. Februar 2017

Beiträge: 7

Hi,

ich wollte auf einem meiner Server, wieder einen Mail Server inkl. OpendKim installieren. Nur bekomme ich letzteres gar nicht installiert, da er über [opendkim.conf:1] Line references path below legacy directory /var/run/, updating /var/run/opendkim \u2192 /run/opendkim; please update the tmpfiles.d/ drop-in file accordingly. meckert.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sudo apt-get install opendkim opendkim-tools -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
opendkim-tools is already the newest version (2.11.0~alpha-12).
Suggested packages:
  unbound
The following NEW packages will be installed:
  opendkim
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 156 kB of archives.
After this operation, 408 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu eoan/universe amd64 opendkim amd64 2.11.0~alpha-12 [156 kB]
Fetched 156 kB in 0s (1,120 kB/s)
Selecting previously unselected package opendkim.
(Reading database ... 401175 files and directories currently installed.)
Preparing to unpack .../opendkim_2.11.0~alpha-12_amd64.deb ...
Unpacking opendkim (2.11.0~alpha-12) ...
Setting up opendkim (2.11.0~alpha-12) ...
[opendkim.conf:1] Line references path below legacy directory /var/run/, updating /var/run/opendkim \u2192 /run/opendkim; please update the tmpfiles.d/ drop-in file accordingly.
Job for opendkim.service failed because the control process exited with error code.
See "systemctl status opendkim.service" and "journalctl -xe" for details.
invoke-rc.d: initscript opendkim, action "start" failed.
\u25cf opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
   Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2019-12-05 09:02:53 CET; 4ms 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: 31568 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=78)
dpkg: error processing package opendkim (--configure):
 installed opendkim package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (242-7ubuntu3.2) ...
Errors were encountered while processing:
 opendkim
E: Sub-process /usr/bin/dpkg returned an error code (1)

Die Websuche, hat mir keinen erfolg gebracht.

misterunknown Team-Icon

Ehemalige
Avatar von misterunknown

Anmeldungsdatum:
28. Oktober 2009

Beiträge: 4403

Die von dir erwähnte Warnung hat ihre Usache vermutlich hier. Allerdings ist das nur eine Warnung, die bei mir im Test-Container nicht zum Abbruch geführt hat. Von daher wirst du die eigentliche Ursache suchen müssen. Was sagt das Journal?

journalctl -xe

Manchmal bringts auch was, den Dienst händisch zu starten, und dann zu schauen, welche Fehlermeldungen er anzeigt:

sudo -u opendkim /usr/sbin/opendkim -x /etc/opendkim.conf

aiponne

(Themenstarter)

Anmeldungsdatum:
12. Februar 2017

Beiträge: 7

1
2
Dec 06 18:33:32 tokushu systemd[1]: /lib/systemd/system/opendmarc.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/opendmarc/opendmarc.pid \u2192 /run/opendmarc/opendmarc.pid; please update the unit file accordingly.
Dec 06 18:33:32 tokushu systemd[1]: /lib/systemd/system/opendkim.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/opendkim/opendkim.pid \u2192 /run/opendkim/opendkim.pid; please update the unit file accordingly.
1
2
sudo -u opendkim /usr/sbin/opendkim -x /etc/opendkim.conf
opendkim: /etc/opendkim.conf: refile:/etc/opendkim/trusted: dkimf_db_open(): No such file or directory

Ich werde mal zu hause auf einem test system, das installieren und die dateien einfach mal hoch laden, vllt geht das dann.

misterunknown Team-Icon

Ehemalige
Avatar von misterunknown

Anmeldungsdatum:
28. Oktober 2009

Beiträge: 4403

aiponne schrieb:

opendkim: /etc/opendkim.conf: refile:/etc/opendkim/trusted: dkimf_db_open(): No such file or directory

Diese Datei existiert nicht. Das ist auch per Default nicht konfiguriert. Ich vermute du hast eine angepasste/falsche Konfigurationsdatei unter /etc/opendkim.conf liegen. Purge mal alles, und installiere neu, dann sollte es funktionieren:

$ apt remove --purge --auto-remove opendkim opendkim-tools
$ rm -r /etc/opendkim*
$ apt install opendkim opendkim-tools
Antworten |