Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 03/08/2013, à 12:25

Mouseless

Upgrade Dovecot -> Connect failed to database

Salut,

Je viens de faire un upgrade d'un serveur 11.04 en 11.10 et maintenant j'ai un problème avec le serveur de mail que je souhaite arranger avant de passer en Ubuntu 12.04.

La version de Dovecot a été upgradé en 2.0 et j'utilisais la version 1.0 sur Ubuntu 11.04. Maintenant j'ai ces erreurs:

tail -f /var/log/mail.log
Aug  3 03:04:27 ve dovecot: auth: Error: mysql(127.0.0.1): Connect failed to database (email): Can't connect to MySQL server on '127.0.0.1' (4) - waiting for 125 seconds before retry

J'ai aussi ces warnings dans /var/log/mail.log:

Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:896: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:934: passdb pam {} has been replaced by passdb { driver=pam }
Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1010: passdb sql {} has been replaced by passdb { driver=sql }
Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1047: userdb passwd {} has been replaced by userdb { driver=passwd }
Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1071: userdb static {} has been replaced by userdb { driver=static }
Aug  3 03:10:47 ve dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1109: auth_user has been replaced by service auth { user }

Je peux me connecter à la base de données:

root@ve:/etc/dovecot# mysql -u email_admin -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 559
Server version: 5.1.69-0ubuntu0.11.10.1 (Ubuntu)


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql>

Je peux me connecter donc je ne comprends pas pourquoi dovecot n'y arrive pas. Quelqu'un a une idée ?

Merci.

Hors ligne

#2 Le 09/08/2013, à 15:34

Pseudo supprimé

Re : Upgrade Dovecot -> Connect failed to database

décommenter
/etc/dovecot/conf.d/10-auth.conf:#!include auth-sql.conf.ext

et renseigner  /etc/dovecot/conf.d/auth-sql.conf.ext et /etc/dovecot/dovecot-sql.conf.ext
tu as un exemple dans la doc dovecot & mcpeter