doveconf -n: # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab116.1 x86_64 Debian 8.6 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 } protocols = " imap" service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } ssl = required ssl_cert =
And doveadm log errors: Oct 13 05:56:28 imap(webuser): Error: open(/var/mail/webuser) failed: Permission denied (euid=1001(webuser) egid=1000(ftpusers) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Oct 13 05:56:28 imap(webuser): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2016-10-13 05:56:28] Oct 13 05:56:33 imap(webuser): Error: open(/var/mail/webuser) failed: Permission denied (euid=1001(webuser) egid=1000(ftpusers) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Oct 13 05:56:33 imap(webuser): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2016-10-13 05:56:33] Oct 13 06:52:45 imap(webuser): Error: open(/var/mail/webuser) failed: Permission denied (euid=1001(webuser) egid=1000(ftpusers) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Oct 13 06:52:45 imap(webuser): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2016-10-13 06:52:45] Oct 13 07:12:41 imap(webuser): Error: open(/var/mail/webuser) failed: Permission denied (euid=1001(webuser) egid=1000(ftpusers) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Oct 13 07:12:41 imap(webuser): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2016-10-13 07:12:41] Oct 13 07:12:50 imap(webuser): Error: open(/var/mail/webuser) failed: Permission denied (euid=1001(webuser) egid=1000(ftpusers) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Oct 13 07:12:50 imap(webuser): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2016-10-13 07:12:50]
I checked, using ls -l /var, and I get this: drwxrwsr-x 2 root mail 4096 Apr 27 11:27 mail so the group looks to be correctly set to 'mail', despite what the log says, right?
Thanks for your answer. The second command is nice to know. -----Message d'origine----- De : dovecot [mailto:dovecot-bounces@dovecot.org] De la part de Aki Tuomi Envoyé : 14 October 2016 14:58 À : dovecot@dovecot.org Objet : Re: First steps in Dovecot; IMAP not working
Please post
doveconf -n
doveadm log errors
Aki Tuomi