[Dovecot] How change the order POP checks mail.
Hello!
I have a problem with the POP when I want to use mbox and Maildirs.
The old users are now using uw-imap, but in the future should theres old e-mail be in mbox format and the new e-mails in maildirs.
I'am using this code and its worked fine in Squirrelmail and IMAP.
namespace private { separator = / inbox = yes hidden = no prefix = "mbox/" location = mbox:~/mail:INBOX=/var/mail/%u }
namespace private { separator = / prefix = location = maildir:~/Maildir }
but not with POP, I can't find any mail.
When I only searching for mbox mail, it worked great.
I think thats the problem are the pop who first searching for Maildirs and then mailboxes.
So how could I get the Dovecot POP server to first check the mailboxes and then the maildirs?
Or how should I go around this problem?
Thanks!
Andreas Andersson
On Fri, 2007-01-19 at 13:17 +0200, Andreas Andersson wrote:
I think thats the problem are the pop who first searching for Maildirs and then mailboxes.
So how could I get the Dovecot POP server to first check the mailboxes and then the maildirs?
You can't, POP can only access a single mailbox.
johannes
On 19.1.2007, at 13.17, Andreas Andersson wrote:
namespace private { separator = / inbox = yes hidden = no prefix = "mbox/" location = mbox:~/mail:INBOX=/var/mail/%u }
namespace private { separator = / prefix = location = maildir:~/Maildir }
but not with POP, I can't find any mail.
When I only searching for mbox mail, it worked great.
I think thats the problem are the pop who first searching for Maildirs and then mailboxes.
Actually with POP3 the namespaces are completely ignored. Only
mail_location setting matters. So if you set:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
That should work. If you want it to fallback to Maildir if mbox
doesn't exist, you can script it (http://wiki.dovecot.org/
PostLoginScripting). It you want it to use both mbox and maildir,
that's not going to work directly. You could again write a post-login
script that moves mails from eg. mbox to maildir, and then sets the
maildir as the INBOX.
participants (3)
-
Andreas Andersson
-
Johannes Berg
-
Timo Sirainen