#1 Le 28/06/2015, à 22:16
- Ceubex
[dovecot] Can't open configuration file uid=5000 gid=5000 home=/var/vm
Bonjour,
Je tente d'utiliser dovecot avec mysql pour gérer mes emails mais je n'arrive pas à recevoir des mails.
Lorsque je fait un mail contact@domaine.com j'ai ce message dans le log dovecot :
Jun 28 23:11:52 auth: Error: Can't open configuration file uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes: No such file or directory
Jun 28 23:11:52 master: Error: service(auth): command startup failed, throttling for 2 secs
Jun 28 23:11:52 auth: Fatal: master: service(auth): child 6527 returned error 89 (Fatal failure)
Pour info voici mon dovecot.conf :
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8
disable_plaintext_auth = no
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 {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
passdb {
driver = pam
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
mode = 0600
user = vmail
}
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
args = uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
driver = sql
}
userdb {
driver = passwd
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
log_path =
mail_plugins = sieve
postmaster_address = contact@domaine.com
}
log_path = /var/log/dovecot.log
j'ai ça aussi dans le mail.log :
Jun 28 23:15:14 sd-60694 dovecot: lda: Error: userdb lookup(contact@domaine.com): Disconnected unexpectedly
Jun 28 23:15:14 sd-60694 dovecot: lda: Error: userdb lookup(contact@domaine.com): Disconnected unexpectedly
Jun 28 23:15:14 sd-60694 dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jun 28 23:15:14 sd-60694 dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jun 28 23:15:14 sd-60694 dovecot: lda: Error: userdb lookup(contact@domaine.com): Disconnected unexpectedly
Jun 28 23:15:14 sd-60694 dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jun 28 23:15:14 sd-60694 postfix/pipe[6784]: 32EC0205ED3: to=<contact@domaine.com>, relay=dovecot, delay=401, delays=401/0/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
Jun 28 23:15:14 sd-60694 postfix/pipe[6787]: 97B17205EAC: to=<contact@domaine.com>, relay=dovecot, delay=1013, delays=1013/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure)
Jun 28 23:15:14 sd-60694 postfix/pipe[6785]: CD46B205EBF: to=<contact@domaine.com>, relay=dovecot, delay=2235, delays=2235/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure)
Jun 28 23:15:22 sd-60694 dovecot: lda: Error: userdb lookup(contact@domaine.com): Disconnected unexpectedly
Jun 28 23:15:22 sd-60694 dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
Jun 28 23:15:22 sd-60694 postfix/pipe[6789]: B3E56205ED2: to=<contact@domaine.com>, relay=dovecot, delay=509, delays=501/0.02/0/8, dsn=4.3.0, status=deferred (temporary failure)
Dernière modification par Ceubex (Le 28/06/2015, à 22:19)
Hors ligne
#2 Le 29/06/2015, à 06:17
- bruno
Re : [dovecot] Can't open configuration file uid=5000 gid=5000 home=/var/vm
Bonjour,
As-tu regardé ce qui pouvait causer la première erreur ?
Ta configuration n'est semble très partielle. En principe sous Debian/Ubuntu on ne touche pas au fichier dovecot.conf, la configuration se fait dans les divers fichiers sous /etc/dovecot/conf.d
Je t'invite à consulter la documentation de dovecot. Il y a des exemples et des how-to sur ce type de configuration (Postfix+MySQL+Dovecot)