Pb dovecot

bonjour,
depuis plusieurs semaines j’ai des problèmes avec dovecot,
c’est un paquet qui touche à "énormement, beaucoup de paquets"
j’ai fait des réinstallation, suppression/installation, suppression totale/installation,
le problème revient

[....] Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 13: ssl_key: Can't open file /etc/dovecot/private/dovecot.pem: No such file or directory
 failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing package dovecot-core (--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 :
 dovecot-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

il faut faire un touch de /etc/dovecot/private/dovecot.pem ?
A+
JB1

Salut

Puisque le certificat n’a pas l’air d’avoir été créé, tu as essayé à “la mano” ?

Re,

Tu te doute qu’un certificat SSL c’est pas un fichier vide… Bonjour la sécurité sinon…

Clef privée:openssl genrsa -out domain.key 1024
Requête de certificat:openssl req -new -key domain.key -out domain.csr
Certificat:openssl x509 -req -days 3650 -in domain.csr -signkey domain.key -out domain.crt

Puis dans dovecot:

ssl_cert = </chemin/domain.crt ssl_key = </chemin/domain.key

Ça devrait le faire.

il me fait la même erreur,
mais:

Puis dans dovecot:
Code:
ssl_cert = </chemin/domain.crt
ssl_key = </chemin/domain.key 

je n’ai pas compris où insérer cela

root@alpha30:/etc/dovecot# ls -l
total 48
drwxr-xr-x 2 root root    4096 janv.  4 16:53 conf.d
-rw-r--r-- 1 root root     895 janv.  6 15:24 domain.crt
-rw-r--r-- 1 root root     708 janv.  6 15:23 domain.csr
-rw-r--r-- 1 root root     887 janv.  6 15:20 domain.key
-rw-r--r-- 1 root root    4401 nov.  28 07:56 dovecot.conf
-rw-r----- 1 root dovecot  852 nov.  28 07:56 dovecot-dict-sql.conf.ext
-rw-r--r-- 1 root root    1704 nov.  30 18:49 dovecot.pem
-rw-r----- 1 root dovecot 5447 nov.  28 07:56 dovecot-sql.conf.ext
drwx------ 2 root root    4096 nov.  30 18:49 private
-rw-r--r-- 1 root root     121 nov.  28 07:56 README
root@alpha30:/etc/dovecot# 

il a bien fait les étapes précédentes
A+
JB1

Tu as du passer en version 2, essaye de mettre à jour ton dovecot.conf :

# cd /etc/dovecot
# doveconf -n -c dovecot.conf > dovecot-2.conf
# mv dovecot.conf dovecot.conf.beforeupgrade
# mv dovecot-2.conf dovecot.conf

merci,
cela marche

Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] 
Paramétrage de dovecot-core (1:2.2.9-1) ...
insserv: script ssh1: service sshd already provided!
insserv: script ARNO-IPTABLES-FIREWALL: service arno-iptables-firewall already provided!
[ ok ] Starting IMAP/POP3 mail server: dovecot.
root@alpha30:/etc/dovecot# 

c’est le resultat de apt-get upgrade
A+
JB1
:041 :030