Odd problem with dovecot an email account

3 posts / 0 new
Last post
#1 Thu, 08/13/2015 - 07:12
RobertoPastor

Odd problem with dovecot an email account

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

Tue, 08/18/2015 - 08:55
Orbixx

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.

Mon, 09/14/2015 - 07:07 (Reply to #2)
RobertoPastor

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.

Topic locked