[Résolu] Problème mail dovecot ne démarre plus

Bonjour,
Après la mise à jour de yunohost le serveur mail ne fonctionne plus (envoi et réception) :

  • Le service dovecot est inactif, et quand je le lance j’ai : “Le service dovecot a démarré avec succès”, mais il reste inactif

  • Si j’essaie d’accéder à Rouncube j’ai le message suivant: “Erreur de connexion au serveur de stockage.”

  • J’ai essayé:

    dpkg-reconfigure yunohost-config-dovecot
    /usr/sbin/dpkg-reconfigure: yunohost-config-dovecot est cassé ou partiellement installé

  • Dans les logs, j’ai :
    /var/log/mail.err :

    Apr 28 23:22:28 lamo dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: No such file or directory
    Apr 28 23:22:28 lamo dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
    Apr 28 23:24:25 lamo postfix/smtpd[2760]: fatal: no SASL authentication mechanisms

/var/log/mail.info:

Apr 29 01:26:47 lamo postfix/smtpd[5143]: connect from col004-omc2s7.hotmail.com[65.55.34.81]
Apr 29 01:26:47 lamo postfix/smtpd[5142]: Anonymous TLS connection established from blu004-omc2s8.hotmail.com[65.55.111.83]: TLSv1.2 with cipher ECDHE-RSA-AES2$
Apr 29 01:26:47 lamo postfix/smtpd[5142]: warning: SASL: Connect to private/auth failed: Connection refused
Apr 29 01:26:47 lamo postfix/smtpd[5142]: fatal: no SASL authentication mechanisms
Apr 29 01:26:47 lamo postfix/smtpd[5143]: Anonymous TLS connection established from col004-omc2s7.hotmail.com[65.55.34.81]: TLSv1.2 with cipher ECDHE-RSA-AES25$
Apr 29 01:26:47 lamo postfix/smtpd[5143]: warning: SASL: Connect to private/auth failed: Connection refused
Apr 29 01:26:47 lamo postfix/smtpd[5143]: fatal: no SASL authentication mechanisms
Apr 29 01:26:48 lamo postfix/master[2689]: warning: process /usr/lib/postfix/smtpd pid 5142 exit status 1
Apr 29 01:26:48 lamo postfix/master[2689]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 29 01:26:48 lamo postfix/master[2689]: warning: process /usr/lib/postfix/smtpd pid 5143 exit status 1

/var/log/mail.log:

Apr 29 01:28:45 lamo postfix/smtpd[5149]: warning: SASL: Connect to private/auth failed: Connection refused
Apr 29 01:28:45 lamo postfix/smtpd[5149]: fatal: no SASL authentication mechanisms
Apr 29 01:28:46 lamo postfix/master[2689]: warning: process /usr/lib/postfix/smtpd pid 5149 exit status 1
Apr 29 01:28:46 lamo postfix/master[2689]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 29 01:29:46 lamo postfix/smtpd[5153]: warning: /etc/postfix/main.cf, line 148: overriding earlier entry: milter_protocol=6
Apr 29 01:29:46 lamo postfix/smtpd[5153]: warning: /etc/postfix/main.cf, line 150: overriding earlier entry: smtpd_milters=inet:localhost:11000
Apr 29 01:29:46 lamo postfix/smtpd[5153]: connect from col004-omc2s15.hotmail.com[65.55.34.89]
Apr 29 01:29:46 lamo postfix/smtpd[5154]: warning: /etc/postfix/main.cf, line 148: overriding earlier entry: milter_protocol=6
Apr 29 01:29:46 lamo postfix/smtpd[5154]: warning: /etc/postfix/main.cf, line 150: overriding earlier entry: smtpd_milters=inet:localhost:11000
Apr 29 01:29:46 lamo postfix/smtpd[5154]: connect from snt004-omc2s18.hotmail.com[65.55.90.93]

Si quelqu’un a une idée, j’ai épluché le forum et pas mal cherché, je ne vois pas trop quoi faire… Tous les autres services et applications fonctionnent bien.
Est-ce que forcer un dpkg-reconfigure peut servir ? Qu’est-ce que je risquerais de perdre ?

Merci !

C’est résolu, voici la marche a suivre si quelqu’un a le même problème:
Tout d’abord, je suis sur yunohost testing, et j’utilise les certificats let’s Encrypt. Le problème venait d’une modif de la dernière màj de yunohost:

Je n’avais plus de certificat ca.pem dans /etc/yunohost/certs/domaineprincipal.tld, et j’ai dû aller chercher celui de let’s Encrypt:

wget https://letsencrypt.org/certs/isrgrootx1.pem
mv isrgrootx1.pem ca.pem
service dovecot start

Et ça a remarché ! Merci à ljf sur le support.

J’ai ouvert un ticket sur l’app let’s encrypt

Hello

Ce problème a déjà été corrigé depuis, mais que dans unstable pour le moment :

En fait il n’y a pas besoin du fichier de CA, qui sert juste si tu veux faire de l’authentification par certificats clients, ce qui n’est pas implémenté dans yunohost (où on passe par LDAP).

Tu peux donc simplement supprimer les lignes incriminées dans tes fichiers de conf dovecot et postfix.