分页: 1 / 1

dovecot如何设置多个INBOX?

发表于 : 2018-08-04 7:59
drop
我这样设置:

代码: 全选

mail_location = mbox:~/mail:INBOX=%h/mbox1
mail_location = mbox:~/mail:INBOX=%h/mbox2
结果IMAP只能收到mbox2的邮件,收不到mbox1的邮件,该怎么办?

那个namespace的设置看了半天也看不懂,设了能让我同时收到mbox1和mbox2的邮件吗?该如何设置?

Re: dovecot如何设置多个INBOX?

发表于 : 2018-08-05 12:00
poloshiao
mail_location = mbox:~/mail:INBOX=%h/mbox1
mail_location = mbox:~/mail:INBOX=%h/mbox2
1. 試試
mail_location = mbox:~/mail:INBOX=/var/mail/%u
1-1. 參閱
https://wiki1.dovecot.org/MailLocation#indexfiles
Mail location
那个namespace的设置看了半天也看不懂
2. https://wiki1.dovecot.org/Namespaces
Namespaces
Examples

3. https://wiki1.dovecot.org/MailboxFormat/mbox
Although Dovecot tries to minimize the damage by moving the data in a way that data should never get lost (only duplicated), mboxes still aren't recommended to be used for important data.

Re: dovecot如何设置多个INBOX?

发表于 : 2018-08-08 21:38
drop
抱歉,我真的什么都不会...

我把mbox2的邮件改成maildir格式,然后按这个设置:https://wiki.dovecot.org/Namespaces#Mix ... nd_Maildir

代码: 全选

namespace {
 separator = /
 prefix = "#mbox/"
 location = mbox:~/mail:INBOX=/var/mail/%u
 inbox = yes
 hidden = yes
 list = no
}

namespace {
 separator = /
 prefix =
 location = maildir:~/Maildir
}
结果客户端只能收到mbox的邮件,收不到~/Maildir的邮件,为什么?