1 (edited by Mcicool 2015-12-09 22:22:28)

Topic: [SOLVED] Dovecot permission error

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: CentOS 7 3.10.0-229.20.1.el7.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Related log if you're reporting an issue: dovecot.log
====

Hello! I am completely new to iRedMail and testing it out. I encountered error while trying to log in via Roundcube: Cant connect to IMAP server. Small research leaded me to dovecot.log where i found the following string:

Dec 09 10:08:25 imap(postmaster@localdomain.local): Error: user postmaster@localdomain.local: Initialization failed: Namespace '': mkdir(/home/mail/vmail1/localdomain.local/p/o/s/postmaster-2015.12.08.19.12.22//Maildir) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +w per

ls -l /home/Mail
total 0
drwxr-xr-x 3 vmail vmail 40 Dec  9 03:30 backup
drwx------ 2 vmail vmail 26 Dec  8 19:24 sieve
drwx------ 3 vmail vmail 24 Dec  8 19:23 vmail1

SELINUX is disabled, firewall is disabled.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Dovecot permission error

Mcicool wrote:

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: CentOS 7 3.10.0-229.20.1.el7.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Related log if you're reporting an issue: dovecot.log
====

Hello! I am completely new to iRedMail and testing it out. I encountered error while trying to log in via Roundcube: Cant connect to IMAP server. Small research leaded me to dovecot.log where i found the following string:

Dec 09 10:08:25 imap(postmaster@localdomain.local): Error: user postmaster@localdomain.local: Initialization failed: Namespace '': mkdir(/home/mail/vmail1/localdomain.local/p/o/s/postmaster-2015.12.08.19.12.22//Maildir) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +w per

ls -l /home/Mail
total 0
drwxr-xr-x 3 vmail vmail 40 Dec  9 03:30 backup
drwx------ 2 vmail vmail 26 Dec  8 19:24 sieve
drwx------ 3 vmail vmail 24 Dec  8 19:23 vmail1

SELINUX is disabled, firewall is disabled.


I can clearly see that the vmail folder permission is not correct. Have you done some manual permission setting ?

Did you run installation through script of iRedMail and also using sudo ?

3

Re: [SOLVED] Dovecot permission error

The vmail1 folder owner and permission are correct (vmail:vmail, 0700), but how about its parent directory /home/mail? Show us output of command below please:

ls -dl /home/mail
ls -dl /home

4

Re: [SOLVED] Dovecot permission error

Thank you for fast replies (legends about great support are true!). Seems like default settings dont like big letters. For some reason dovecot config translates folder as /home/mail while it is /home/Mail.. I changed the folder name to /home/mail and its ok now. But well its not something obvious smile

5

Re: [SOLVED] Dovecot permission error

With iRedMail default settings, all letters in maildir path will be converted to lower cases (configured in /etc/dovecot/dovecot.conf, parameter 'mail_location =', the '%L' means converting string to lower cases).

Mcicool wrote:

Thank you for fast replies (legends about great support are true!).

What can i say...
I hope you enjoy iRedMail. smile