Dovecot

bug à la modification de ce paquet

....] Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 12: ssl_cert: Can't open file /etc/dovecot/dovecot.pem: No such file or directory
 failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: erreur de traitement de dovecot-core (--configure) :

A=
JB1
:079

Que donne la commande dovecot -n ? (en root)

bonjour,
avec retard,

root@alpha30:~# dovecot -n
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.12.0-rc7-20131113 x86_64 Debian jessie/sid 
mail_location = mbox:~/mail:INBOX=/var/mail/%u
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
root@alpha30:~# 

A+
JB1

que donne les commandes :

updatedb;locate dovecot.pem

et

ls -lR /etc/dovecot 

?

Il trouve pas le fichier /etc/dovecot/dovecot.pem qui sert pour ton SSL apparement.

Excusez-moi, des invités!

root@alpha30:~# updatedb;locate dovecot.pem
/etc/ssl/certs/dovecot.pem
/etc/ssl/private/dovecot.pem
root@alpha30:~# ls -lR /etc/dovecot 
/etc/dovecot:
total 36
drwxr-xr-x 2 root root    4096 nov.  29 12:02 conf.d
-rw-r--r-- 1 root root    4401 nov.  28 07:56 dovecot.conf
-rw-r----- 1 root dovecot  410 juin  22  2012 dovecot-db.conf.ext
-rw-r----- 1 root dovecot  852 nov.  28 07:56 dovecot-dict-sql.conf.ext
-rw-r----- 1 root dovecot 5447 nov.  28 07:56 dovecot-sql.conf.ext
drwx------ 2 root root    4096 nov.  11  2012 private
-rw-r--r-- 1 root root     121 févr.  5  2013 README

/etc/dovecot/conf.d:
total 108
-rw-r--r-- 1 root root  5296 nov.  28 07:56 10-auth.conf
-rw-r--r-- 1 root root  1893 sept.  7 21:50 10-director.conf
-rw-r--r-- 1 root root  2727 nov.  28 07:56 10-logging.conf
-rw-r--r-- 1 root root 15784 nov.  28 07:56 10-mail.conf
-rw-r--r-- 1 root root  3383 juin  22  2012 10-master.conf
-rw-r--r-- 1 root root  2151 nov.  28 07:56 10-ssl.conf
-rw-r--r-- 1 root root  1869 déc.  30  2012 10-ssl.conf.ucf-old
-rw-r--r-- 1 root root   291 nov.  10  2012 10-tcpwrapper.conf
-rw-r--r-- 1 root root  1668 nov.  28 07:56 15-lda.conf
-rw-r--r-- 1 root root  1137 nov.  10  2012 15-mailboxes.conf
-rw-r--r-- 1 root root  2417 juin  22  2012 20-imap.conf
-rw-r--r-- 1 root root  3729 juin  22  2012 20-pop3.conf
-rw-r--r-- 1 root root   676 juin  22  2012 90-acl.conf
-rw-r--r-- 1 root root   292 juin  22  2012 90-plugin.conf
-rw-r--r-- 1 root root  2502 nov.  28 07:56 90-quota.conf
-rw-r--r-- 1 root root   499 nov.  28 07:56 auth-checkpassword.conf.ext
-rw-r--r-- 1 root root   489 nov.  28 07:56 auth-deny.conf.ext
-rw-r--r-- 1 root root   561 nov.  28 07:56 auth-master.conf.ext
-rw-r--r-- 1 root root   515 nov.  28 07:56 auth-passwdfile.conf.ext
-rw-r--r-- 1 root root   788 nov.  28 07:56 auth-sql.conf.ext
-rw-r--r-- 1 root root   611 nov.  28 07:56 auth-static.conf.ext
-rw-r--r-- 1 root root  2185 nov.  28 07:56 auth-system.conf.ext
-rw-r--r-- 1 root root   330 nov.  28 07:56 auth-vpopmail.conf.ext

/etc/dovecot/private:
total 0
root@alpha30#

A+
JB1

Tu n’as plus le fichier /etc/dovecot/dovecot.pem, t’as donc deux solutions pour le regénérer :

  • soit remover purgement dovecot et le réinstaller vu que ta configuration de dovecot est celle par défaut, et
    le fichier /etc/dovecot/dovecot.pem sera ressucité
  • soit le regénéré manuellement avec openssl :
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/dovecot/dovecot.pem -out /etc/dovecot/private/dovecot.pem

N’oublie pas d’activer le ssl aussi dans le fichier /etc/dovecot/conf.d/10-ssl.conf en ajoutant le paramètre

Te voilà devenu le “spécialiste” courriel, Fluo :smiley:

merci pour vos aides,

Ricardo, spécialiste, je dooit monté sur un tabouret
j’arréte nous ne sommes pas dans Pause café
A+
JB1
:041