Openbsd

Courier IMAP - 帳戶的郵箱目錄不屬於正確的 uid 或 gid

  • April 3, 2016

所以我四處尋找,發現這把DEFDOMAIN="@domain.se"事情搞砸了,所以我把它從那裡刪除了/etc/courier/imapd,我到了工作的地步,SMTP我從以下地方得到了這個IMAP

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

但我不確定為什麼,因為:

# 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

我的/etc/courier/imapd說:

MAILDIRPATH=/storage/vmail

但我也試過:

MAILDIRPATH=Maildir

/etc/passwd指出:

# cat /etc/passwd | grep anton                                                                                                                                                                                 
anton:*:20001:20001:Anton:/storage/vmail/anton:/sbin/nologin

我哪裡錯了?

好的,daemonforums.org上的好人幫我解決了這個問題!

禁用IMAP_MAILBOX_SANITY_CHECK=0/etc/courier/imapd添加完全相同的行來解決問題/etc/courier/imapd-ssl

也不確定它是否有幫助,或者它是否會起作用: maildirmake /storage/vmail/anton/Maildir這是我帳戶的 Maildir,顯然路徑將不同於在這個問題上追踪我的足蹟的任何人。

引用自:https://unix.stackexchange.com/questions/81471