On 14/09/2017 18:21, [email protected] wrote: > > > ----- Mail original ----- > > De: "daniel huhardeaux" <[email protected]> > > À: [email protected] > > Envoyé: Jeudi 14 Septembre 2017 18:09:13 > > Objet: Re: erreur opendkim > > > > Le 14/09/2017 à 17:21, [email protected] a écrit : > >> bonjour, > > Bonjour > > > >> j'ai une erreur avec opendkim et je n'arrive pas à trouver > >> la solution ... > >> > >> j'ai cette erreur : > >> > >> Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) > >> Milter. > >> > >> > >> service opendkim status : > >> > >> > >> service: PID file /var/run/opendkim/opendkim.pid not readable > >> (yet?) after start: No such file or directory > > > > le répertoire /var/run/opendkim existe t'il et est il writable pour > > l'utilisateur executant opendkim ? > > > > -- > > Daniel > > > > > bonjour, > > ll /var/run/opendkim/opendkim.pid > ls: impossible d'accéder à '/var/run/opendkim/opendkim.pid': Aucun fichier ou > dossier de ce type > > ll /var/spool/postfix/var/run/opendkim > total 8K > drwxr-xr-x 2 root root 4096 sept. 14 18:16 ./ > drwxr-xr-x 3 root root 4096 juin 9 18:06 ../ > srwxrwx--- 1 root root 0 sept. 14 18:16 opendkim.sock= > > cat /etc/default/opendkim > > # Command-line options specified here will override the contents of > # /etc/opendkim.conf. See opendkim(8) for a complete list of options. > #DAEMON_OPTS="" > # Change to /var/spool/postfix/var/run/opendkim to use a Unix socket with > # postfix in a chroot: > RUNDIR=/var/spool/postfix/var/run/opendkim > # RUNDIR=/var/run/opendkim > # > # Uncomment to specify an alternate socket > # Note that setting this will override any Socket value in opendkim.conf > # default: > SOCKET=local:$RUNDIR/opendkim.sock > # listen on all interfaces on port 54321: > #SOCKET=inet:54321 > # listen on loopback on port 12345: > #SOCKET=inet:12345@localhost > # listen on 192.0.2.1 on port 12345: > #SOCKET=inet:[email protected] > USER=opendkim > GROUP=opendkim > PIDFILE=$RUNDIR/$NAME.pid > EXTRAAFTER= > > slt > bernard Bonsoir,
vu que le message d'erreur ne correspond pas à la configuration, il est probable que la configuration ne soit prise en compte. Pour avoir déjà eu cette mauvaise blague, sur le serveur où je l'ai eue, un `systemctl status opendkim.service` renvoyait que le service était défini dans /lib/systemd/system/opendkim.service qui contenait : ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p local:/var/run/opendkim/opendkim.sock Depuis, j'ai un fichier /etc/systemd/system/opendkim.service qui est une copie du précédent modulo ce petit diff: -PIDFile=/var/run/opendkim/opendkim.pid +Group=opendkim -ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p local:/var/run/opendkim/opendkim.sock +ExecStart=/usr/sbin/opendkim -P /var/spool/postfix/var/run/opendkim/opendkim.pid -p local:/var/spool/postfix/var/run/opendkim/opendkim.sock Je ne garantie pas que supprimer le PidFile soit utile (mais ça marche sans puisque systemd suit l'état du processus fils). Une autre solution est proposée sur https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864162 (elle me semble plus propre mais je ne l'ai pas testée). David Sinquin

