Re: configuration serveur mail IMAP (dovecot)
On Sat, Dec 08, 2012 at 05:40:54PM +0100, Basile Starynkevitch wrote:
> Le fichier /var/log/mail.log contient notamment
> Dec 8 17:32:32 hector dovecot: imap(basile): Error: Invalid user settings. Refer to server log for more information.
> Dec 8 17:32:32 hector dovecot: imap-login: Login: user=<basile>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.5, mpid=18514, TLS, session=<mTv+4FnQQwDAqAAB>
> Dec 8 17:32:32 hector dovecot: imap(basile): Error: user basile: Initialization failed: Namespace '': mbox: mbox root directory can't be a file: /var/mail/basile (http://wiki2.dovecot.org/MailLocation/Mbox)
>
>
> le fichier /var/mail/basile existe et il est non-vide.
>
> la commande dovecot -n donne
> # 2.1.7: /etc/dovecot/dovecot.conf
> # OS: Linux 3.2.0-3-amd64 x86_64 Debian wheezy/sid
> mail_location = mbox:~/mail:INBOX=/var/mail/%u
Ca c'est bon.
> namespace inbox {
> inbox = yes
> location = mbox:/var/mail/%u
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ici tu redéfinis le *répertoire* de stockage à /var/mail/<login>. Ce
n'est pas bon, et correspond à l'erreur du serveur "root directory can't
be a file".
Pour corriger, tu enlèves cette ligne "location = " du namespace inbox,
et tu relances dovecot. Ca ira beaucoup mieux.
--
Nicolas
Reply to: