Hi all,
I've migrated recently my server from CentOS 6.5 to CentOS 7.1 and I'm using Virtualmin Pro 4.18. All is working well except for one of the email accounts. When I try to loggin with it dovecot shows the following errors in maillog:
dovecot: pop3(mteznavarropayaabogados@domain.com): Error: user mteznavarropayaabogados@domain.com: Initialization failed: Namespace '': mkdir(/home/domain.com/homes/mteznavarroÿ ª ýv/Maildir) failed: Permission denied (euid=1719(mteznavarropayaabogados@domain.com) egid=622(domain.com) missing +w perm: /home/domain.com/homes, dir owned by 1655:622 mode=0755): 1 Time(s)
dovecot: pop3(mteznavarropayaabogados@domain.com): Error: user mteznavarropayaabogados@domain.com: Initialization failed: Namespace '': mkdir(/home/domain.com/homes/mteznavarroÿ ªªtU/Maildir) failed: Permission denied (euid=1719(mteznavarropayaabogados@domain.com) egid=622(domain.com) missing +w perm: /home/domain.com/homes, dir owned by 1655:622 mode=0755): 1 Time(s)
dovecot: pop3(mteznavarropayaabogados@domain.com): Error: user mteznavarropayaabogados@domain.com: Initialization failed: Namespace '': mkdir(/home/domain.com/homes/mteznavarroÿgomezcamacho.com /Maildir) failed: Permission denied (euid=1719(mteznavarropayaabogados@domain.com) egid=622(domain.com) missing +w perm: /home/domain.com/homes, dir owned by 1655:622 mode=0755): 1 Time(s)
As you can see the account path gets cut at "mteznavarro" and then it adds weird characters or parts of other email accounts.
I tried to delete and recreate the account, but the problem persists. I tried to create an account with a different name as long as this one and there wasn't any problem. I looked at the passwd file and the account's paths looks correct.
Any ideas what I can check?
Thanks, Robert
Ignoring those weird characters for a moment, have you checked that the user running dovecot has write permissions to create directory "Maildir" under /home/domain.com/homes/mteznavarroÿ ª ýv/Maildir ?
Sounds like a permissions/ownership problem to me.
I'm sorry, I forget to reply.
I finally found it. The User ID info field in /etc/passwd was too long. I shortened it and then the problem went away. I don't know if it could be a buffer overflow in Dovecot.
I searched what the limits of the passwd fields are, but I couldn't find anything. Maybe Virtualmin should check the field limits when the server owner creates a new user.