[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: erreur opendkim




----- Mail original -----
> De: "David Sinquin" <david.sinquin@gmail.com>
> À: debian-user-french@lists.debian.org
> Envoyé: Jeudi 14 Septembre 2017 21:44:07
> Objet: Re: erreur opendkim
> 
> On 14/09/2017 18:21, bernard.schoenacker@free.fr wrote:
> >
> >
> > ----- Mail original -----
> > > De: "daniel huhardeaux" <no-spam@tootai.net>
> > > À: debian-user-french@lists.debian.org
> > > Envoyé: Jeudi 14 Septembre 2017 18:09:13
> > > Objet: Re: erreur opendkim
> > >
> > > Le 14/09/2017 à 17:21, bernard.schoenacker@free.fr 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:12345@192.0.2.1
> > 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
> 
> 
bonjour,

merci pour le tuyau, mais :

dpkg --configure opendkim
Paramétrage de opendkim (2.11.0~alpha-11) ...
Failed to start opendkim.service: Unit opendkim.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status opendkim.service' for details.
invoke-rc.d: initscript opendkim, action "start" failed.
● opendkim.service
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

sept. 15 00:51:20 brotsch systemd[1]: /etc/systemd/system/opendkim.service:2: Assignment outside of section. Ignoring.
sept. 15 00:51:20 brotsch systemd[1]: /etc/systemd/system/opendkim.service:3: Assignment outside of section. Ignoring.
sept. 15 00:51:20 brotsch systemd[1]: opendkim.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
sept. 15 00:51:20 brotsch systemd[1]: /etc/systemd/system/opendkim.service:2: Assignment outside of section. Ignoring.
sept. 15 00:51:20 brotsch systemd[1]: /etc/systemd/system/opendkim.service:3: Assignment outside of section. Ignoring.
sept. 15 00:51:20 brotsch systemd[1]: opendkim.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
dpkg: erreur de traitement du paquet opendkim (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 opendkim

cat /etc/systemd/system/opendkim.service

    Group=opendkim
    ExecStart=/usr/sbin/opendkim -P /var/spool/postfix/var/run/opendkim/opendkim.pid -p local:/var/spool/postfix/var/run/opendkim/opendkim.sock



bref c'est galère

slt
bernard


Reply to: