View Single Post
  #1   (View Single Post)  
Old 2nd July 2013
Torxed Torxed is offline
Port Guard
 
Join Date: Jul 2013
Location: Sweden
Posts: 10
Default Courier IMAP - ccount's mailbox directory is not owned by the correct uid or gid

so i poked around and found out that `DEFDOMAIN="@domain.se"` is messing things up, so i removed that from `/etc/courier/imapd` and i got to the point where `SMTP` work and i get this from the `IMAP`:

Code:
    Jul  2 13:23:10 HOST authdaemond: Authenticated: sysusername=anton, sysuserid=<null>, sysgroupid=20001, homedir=/storage/vmail/anton, address=anton, fullname=Anton, maildir=<null>, quota=<null>, options=<null>
    Jul  2 13:23:10 HOST authdaemond: Authenticated: clearpasswd=MyPasswd, passwd=$3e$04$AC1c10x0A3etWCJFrla.Rl2sevNhq24yXYxrq8IN7mEeGI20.
    Jul  2 13:23:10 HOST imapd-ssl: anton: Account's mailbox directory is not owned by the correct uid or gid
But i'm not sure why because:

Code:
    # ls -l /storage/vmail/
    -rw-r--r--  1 vmail  vmail   22 Mar 13 01:06 .Xdefaults
    -rw-r--r--  1 vmail  vmail  773 Mar 13 01:06 .cshrc
    -rw-r--r--  1 vmail  vmail  398 Mar 13 01:06 .login
    -rw-r--r--  1 vmail  vmail  113 Mar 13 01:06 .mailrc
    -rw-r--r--  1 vmail  vmail  218 Mar 13 01:06 .profile
    drwx------  2 vmail  vmail  512 Jun 30 10:44 .ssh
    drwxr-xr-x  3 anton  anton  512 Jun 30 10:44 anton
my `/etc/courier/imapd` says:

Code:
    MAILDIRPATH=/storage/vmail
But i've also tried:

Code:
    MAILDIRPATH=Maildir
And `/etc/passwd` states:

Code:
    # cat /etc/passwd | grep anton                                                                                                                                                                                 
    anton:*:20001:20001:Anton:/storage/vmail/anton:/sbin/nologin
Where am i going wrong?
Reply With Quote