#1  
Old 3rd November 2011, 13:38
frankkahle frankkahle is offline
Junior Member
 
Join Date: Nov 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default dovecot permission problems

i am trying to get Dovecot working, I am almost there. however i see the following errors when my outlook client attempts to do anything within Dovecot. ( I am also concerned with the double // in the path in the error)

2011-11-02 09:44:17 IMAP(frank): Error: opendir(/var/vmail//frank/Maildir) failed: Permission denied (euid=5006(frank) egid=5006(frank) missing +x perm: /var/vmail/)
2011-11-02 09:44:17 IMAP(frank): Error: stat(/var/vmail//frank/Maildir) failed: Permission denied
2011-11-02 09:44:17 IMAP(frank): Error: stat(/var/vmail//frank/Maildir/.Sent/tmp) failed: Permission denied (euid=5006(frank) egid=5006(frank) missing +x perm: /var/vmail/)

this is the actual directory

/var/vmail/kahle.net/frank/Maildir

this is whats in the directory:

drwxrwx--- 9 vmail vmail 4096 Oct 31 23:06 .
drwxrwx--- 3 vmail vmail 4096 Oct 31 16:54 ..
-rwxrwx--- 1 vmail vmail 47 Oct 31 16:54 courierimapsubscribed
drwxrwx--- 2 vmail vmail 4096 Oct 31 16:53 cur
-rwxrwx--- 1 vmail vmail 3552 Oct 31 23:06 dovecot.index.log
-rwxrwx--- 1 vmail vmail 1879 Oct 31 23:06 dovecot-uidlist
-rwxrwx--- 1 vmail vmail 8 Oct 31 16:53 dovecot-uidvalidity
-rwxrwx--- 1 vmail vmail 0 Oct 31 16:53 dovecot-uidvalidity.4eaf0acb
drwxrwx--- 5 vmail vmail 4096 Oct 31 16:54 .Drafts
drwxrwx--- 5 vmail vmail 4096 Oct 31 16:54 .Junk
drwxrwx--- 2 vmail vmail 4096 Oct 31 23:06 new
drwxrwx--- 5 vmail vmail 4096 Oct 31 16:54 .Sent
-rwxrwx--- 1 vmail vmail 23 Oct 31 16:54 subscriptions
drwxrwx--- 2 vmail vmail 4096 Oct 31 23:06 tmp
drwxrwx--- 5 vmail vmail 4096 Oct 31 16:54 .Trash

and outlook reports "The server responded: 'NOPERM] No permission to read subscriptions'.

/var/vmail permissions

drwxrwx--- 5 vmail vmail 4096 Oct 31 16:53 vmail

[root@unix vmail]# ls -al |more
total 48
drwxrwx--- 5 vmail vmail 4096 Oct 31 16:53 .
drwxr-xr-x 33 root root 4096 Nov 1 00:30 ..
-rwxrwx--- 1 vmail vmail 33 Oct 31 16:01 .bash_logout
-rwxrwx--- 1 vmail vmail 176 Oct 31 16:01 .bash_profile
-rwxrwx--- 1 vmail vmail 124 Oct 31 16:01 .bashrc
-rwxrwx--- 1 vmail vmail 515 Oct 31 16:01 .emacs
drwxrwx--- 4 vmail vmail 4096 Oct 31 16:54 kahle.net
-rwxrwx--- 1 vmail vmail 1382 Oct 31 16:01 .mailfilter
drwxrwx--- 2 vmail vmail 4096 Oct 31 16:01 mailfilters
drwxrwx--- 4 vmail vmail 4096 Oct 31 16:01 .mozilla
-rwxrwx--- 1 vmail vmail 658 Oct 31 16:01 .zshrc

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_path = /var/log/dovcote_error.log
info_log_path = /var/log/dovecot_info.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_user = vmail
mail_location = maildir:/var/vmail/%d/%n/Maildir
first_valid_uid = 5000
last_valid_uid = 25000
first_valid_gid = 5000
last_valid_gid = 15000
protocol imap {
mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
mail_plugins = quota imap_quota
mail_plugin_dir = /usr/lib/dovecot/imap/
}

protocol pop3 {
mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
mail_plugin_dir = /usr/lib/dovecot/pop3
}
protocol managesieve {
}
protocol lda {
postmaster_address = postmaster@example.com
mail_plugins = sieve quota
mail_plugin_dir = /usr/lib/dovecot/lda
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
mechanisms = plain login
passdb pam {
}
passdb sql {
args = /etc/dovecot-sql.conf
}
userdb passwd {
}
userdb sql {
args = /etc/dovecot-sql.conf
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
quota = maildir
sieve_dir=~/sieve
}
Reply With Quote
Sponsored Links
  #2  
Old 3rd November 2011, 13:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

- Which Dovecot version?
- Which Linux Distribution?
- Which ISPConfig version?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd November 2011, 15:25
frankkahle frankkahle is offline
Junior Member
 
Join Date: Nov 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default versioning

Centos 5.7
dovecot Version 1.2.17
ISPConfig 3.0.3.3
Reply With Quote
  #4  
Old 3rd November 2011, 15:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

Please post the output of:

hostname

and

hostname -f

and

grep frank /etc/passwd
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd November 2011, 15:43
frankkahle frankkahle is offline
Junior Member
 
Join Date: Nov 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default more info

[root@unix etc]# hostname
mail.kahle.net

[root@unix etc]# hostname -f
mail.kahle.net

[root@unix etc]# grep frank /etc/passwd
frank:x:5006:5006:Frank Kahle:/home/frank:/bin/bash
Reply With Quote
  #6  
Old 3rd November 2011, 15:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
 
Default

The problem is the user "frank" in /etc/passwd. If you have a linux system user on your server that has the same name then the part in front of the @ of a email address, then this user will override settingsof the mailsystem for all virtual users. To avoid that, ispconfig uses user prefixes. I guess you either disabled the prefixes in ispconfig or the user frank was created manually and not from ispconfig. Please delete or rename the system user frank.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Postfix doesn't have Nolan Installation/Configuration 5 13th April 2011 05:00
MySQL Error Nolan Installation/Configuration 12 16th February 2011 02:15
SugarCRM Install on ISPConfig3 w/ SuPHP clucena Installation/Configuration 1 9th February 2010 09:29
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06


All times are GMT +2. The time now is 15:23.


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