Troubles with Dovecot 2.3.3 - mkdir permission denied due to +w perm: /var, dir owned by 0:0 mode=0755)
Hi, I am quite new to Dovecot and I followed a tutorial on Linode to set up Dovecot, Postfix and MySql on the following site:- https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mys...
Everything seems to work fine(telnet etc) except dovecot does not create mailboxes. Highly appreciate if someone could check the error messages and the dovecot -n on the bottom and provide some advise. I was unable to get the SQL config but I don't think its related to SQL but more of permission related. Please help
Thanks Kevin
Dovecot Version: 2.3.3
Error Message:
Feb 22 08:54:42 computer dovecot[2224]:
imap(email1@example.com)<4452>
Output of dovecot -n :
# 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) # Hostname: computer auth_mechanisms = plain login mail_location = maildir:~/Maildir mail_privileged_group = mail mbox_write_locks = fcntl 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 } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = postmaster at example.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl = required ssl_cert =
- Kunal A. via dovecot:
Error: mkdir(/var/vmail/email1@example.com/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned by 0:0 mode=0755)
The error message seems pretty clear. User 'vmail' does not have write permissions for /var, which is owned by 'root'. I suggest you create /var/vmail and grant the necessary permissions there.
-Ralph
Dear Ralph, Ah! You are right. My eyes are not working correctly. I kept thinking I was reading /va/mail/vmail etc. Sorry for this and thank you very much for catching it! Cheers
On Fri, Feb 22, 2019 at 2:17 PM Ralph Seichter via dovecot < dovecot@dovecot.org> wrote:
- Kunal A. via dovecot:
Error: mkdir(/var/vmail/email1@example.com/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned by 0:0 mode=0755)
The error message seems pretty clear. User 'vmail' does not have write permissions for /var, which is owned by 'root'. I suggest you create /var/vmail and grant the necessary permissions there.
-Ralph
participants (2)
-
Kunal A.
-
Ralph Seichter