1

Topic: IMAP server connection error on Roundcube

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: debian squeeze
====

Roundcube don't let me login with any iRedAdmin created user sad
Always says there is an IMAP server connection error.

tail -0f /var/log/dovecot.log:
Oct 07 11:47:56 imap-login: Info: Login: user=<ark@lastmethod.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=19267, secured, session=<VDP5iyPowwB/AAAB>
Oct 07 11:47:56 imap(ark@lastmethod.com): Error: chdir(/var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)
Oct 07 11:47:56 imap(ark@lastmethod.com): Error: chdir(/var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03/) failed: Permission denied
Oct 07 11:47:56 imap(ark@lastmethod.com): Error: user ark@lastmethod.com: Initialization failed: Namespace '': stat(/var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//Maildir) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)
Oct 07 11:47:56 imap(ark@lastmethod.com): Error: Invalid user settings. Refer to server log for more information.

----

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

2

Re: IMAP server connection error on Roundcube

The permissions on vmail folder are ok: vmail:vmail
....but there is something I don't really understand:
a) Is normal to have an vmail1 inside vmail?
b) And inside vmail1 is nothing, absolutely empty...so I don't know why dovecot try to read something like this: /var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//

3

Re: IMAP server connection error on Roundcube

arkdelkaos wrote:

a) Is normal to have an vmail1 inside vmail?

Yes, "vmail1" in maildir path is added by iRedMail.

arkdelkaos wrote:

b) And inside vmail1 is nothing, absolutely empty...so I don't know why dovecot try to read something like this: /var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//

This is maildir path of this user, it's stored in LDAP.

arkdelkaos wrote:

Oct 07 11:47:56 imap(ark@lastmethod.com): Error: chdir(/var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)

iRedMail creates system user "vmail" which has uid=2000 and gid=2000, but your log shows user "vmail" has uid=5000 and gid=5000.
Did you change it to uid/gid=5000?

4

Re: IMAP server connection error on Roundcube

ZhangHuangbin wrote:
arkdelkaos wrote:

Oct 07 11:47:56 imap(ark@lastmethod.com): Error: chdir(/var/vmail/vmail1/lastmethod.com/a/r/k/ark-2013.10.07.11.36.03//) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)

iRedMail creates system user "vmail" which has uid=2000 and gid=2000, but your log shows user "vmail" has uid=5000 and gid=5000.
Did you change it to uid/gid=5000?

No...I didn't change anything...but I can try to do it smile
Anyway, I'm having problems with the server since yesterday. I dont know why (yet), but it can be the hardware or something else....I'm not sure if the iRedMail installation went perfect, so until the server stop going nuts I will let it be like this smile
When everything come back normal again, I will reply with more info.