#1  
Old 3rd August 2011, 15:31
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default Error in Dovecot

I have an error.

Code:
dovecot: dovecot: Fatal: chdir(/var/vmail/domain.com/user/) failed: Permission denied (euid=5000() egid=5000() missing +x perm: /var/vmail/domain.com)
dovecot: dovecot: child 22766 (imap) returned error 89 (Fatal failure)
I do:

Code:
chmod +x /var/vmail/domain.com/user
chown -R vmail:vmail /var/vmail
And I still have the same error.

Code:
root@server:/var/vmail# ls -al
total 24
drwxr-xr-x  4 vmail vmail 4096 Aug  3 12:27 .
drwxr-xr-x 16 root  root  4096 Aug  3 00:30 ..
-rw-------  1 vmail vmail 1382 Aug  3 12:34 .mailfilter
-rw-r--r--  1 vmail vmail 1382 Aug  3 12:34 .mailfilter~
drwxr-xr-x  2 vmail vmail 4096 Aug  2 12:26 mailfilters
drwx------  3 vmail vmail 4096 Aug  3 12:27 domain.com

root@server:/var/vmail/domain.com# ls -al
total 12
drwx------ 3 vmail vmail 4096 Aug  3 12:27 .
drwxr-xr-x 4 vmail vmail 4096 Aug  3 12:27 ..
drwx--x--x 3 vmail vmail 4096 Aug  3 12:27 user

root@server:/var/vmail/domain.com/user# ls -al
total 16
drwx--x--x 3 vmail vmail 4096 Aug  3 12:27 .
drwx------ 3 vmail vmail 4096 Aug  3 12:27 ..
drwx--x--x 9 vmail vmail 4096 Aug  3 12:27 Maildir
-rw-r--r-- 1 vmail vmail   48 Aug  3 12:27 .sieve
Code:
root@server:~# dpkg -l | grep dovecot
ii  dovecot-common                      1:1.2.15-7                   secure mail server that supports mbox and maildir mailboxes
ii  dovecot-imapd                       1:1.2.15-7                   secure IMAP server that supports mbox and maildir mailboxes
ii  dovecot-pop3d                       1:1.2.15-7                   secure POP3 server that supports mbox and maildir mailboxes
ISPconfig 3.0.3.3
Debian 6.0.2

Last edited by mentes; 3rd August 2011 at 16:11.
Reply With Quote
Sponsored Links
  #2  
Old 3rd August 2011, 16:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,768
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Which Linux distribution?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd August 2011, 16:10
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default

Debian 6.0.2
Reply With Quote
  #4  
Old 3rd August 2011, 17:52
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default

Another check:

Code:
root@server:~# telnet mail.domain.com 143
Trying xx.xx.xx.xx...
Connected to mail.domain.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] my-domain.tld IMAP server ready...
a login test@domain.com 123456
Connection closed by foreign host.
root@server:~#
Reply With Quote
  #5  
Old 3rd August 2011, 21:25
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Just wondering...

Log into your mysql database and run this query
Code:
select uid,gid from dbispconfig.mail_user where not uid=5000;
what is the result of the query?

also /var/vmail/domain.com has no +x group rights .. though i still think it's strange it doesn't work, try giving /var/vmail/domain.com +x on the group so:
Code:
chmod g+x /var/vmail/domain.com
If that solves your problem, then dovecot in some way must check the the gid rights as well.

Last edited by Mark_NL; 3rd August 2011 at 21:28.
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
mentes (3rd August 2011)
  #6  
Old 3rd August 2011, 21:48
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default

Code:
mysql> select uid,gid from dbispconfig.mail_user where not uid=5000;
Empty set (0.00 sec)
I get it works with these permissions

drwxrwx--x 5 vmail vmail 4096 Aug 3 21:42 domain.com

Is right?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOS,Can not receive mail! jason.cn Installation/Configuration 1 4th May 2011 17:38
MySQL Error Nolan Installation/Configuration 12 16th February 2011 02:15
Email Sending and receiving problems kennethwu Server Operation 1 7th January 2011 13:57
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26


All times are GMT +2. The time now is 09:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.