Dovecot Error...

yugpatel

Senior member
Feb 28, 2001
506
0
76
I tried to follow the guide at http://arstechnica.com/information-...rt-2-arming-your-server-with-postfix-dovecot/ to set up e-mail server on Ubuntu, but I am getting this error and I don't know how to fix it.
Can any one guide me?

Mar 24 09:41:23 mailserver dovecot: lda(johnDoe): Error: user johnDoe: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vmail//johnDoel/mail) failed: Permission denied (euid=1000(johnDoe) egid=1000(johnDoe) missing +w perm: /var/mail/vmail/, dir owned by 5000:5000 mode=0755)

I have followed all instructions in the guide but somehow I am getting this permission issue error.
 

Scarpozzi

Lifer
Jun 13, 2000
26,391
1,780
126
I've never run that before, but reading the error, check to see that you started dovecot with sudo.

type cat /etc/passwd and see what user is 5000. That is who owns /var/mail/vmail and likely needs to run the service
 
Last edited:

yugpatel

Senior member
Feb 28, 2001
506
0
76
I've never run that before, but reading the error, check to see that you started dovecot with sudo.

type cat /etc/passwd and see what user is 5000. That is who owns /var/mail/vmail and likely needs to run the service

vmail:x:5000:5000::/var/mail/vmail:/bin/sh
So vmail is user 5000.