[Dovecot] Mixed IMAP/POP3 environment: further informations
Hello All,
some further information. While waiting for some info I'm rolling back to UW and I discovered that if I delete the user "~/Maildir" automatically created by Dovecot, so including any index, the POP3 server works as expected. So it isn't the "Status" flag stored in the mbox file that prevents the download but some status information stored in the IMAP indexes created by Dovecot. I've retried this a couple of times to be sure. Does this helps?
Bye,
Denis Sbragion
InfoTecna
Tel: +39 0362 805396, Fax: +39 0362 805404
URL: http://www.infotecna.it
On Mon, 2006-02-06 at 18:57 +0100, Denis Sbragion wrote:
Hello All,
some further information. While waiting for some info I'm rolling back to UW and I discovered that if I delete the user "~/Maildir" automatically created by Dovecot, so including any index, the POP3 server works as expected. So it isn't the "Status" flag stored in the mbox file that prevents the download but some status information stored in the IMAP indexes created by Dovecot. I've retried this a couple of times to be sure. Does this helps?
Umm.. If you haven't uncommented default_mail_env setting in dovecot.conf, Dovecot tries to autodetect the location of the mailbox. If ~/Maildir exists, it's used instead of the mboxes. So it sounds like the problem has something to do with this. But the same should have happened with both IMAP and POP3 then, neither should have seen any mails if maildir was empty..
Anyway, try setting default_mail_env explicitly and see if it works then.
Hello Timo,
At 16.03 07/02/2006, Timo Sirainen wrote:
On Mon, 2006-02-06 at 18:57 +0100, Denis Sbragion wrote: Umm.. If you haven't uncommented default_mail_env setting in dovecot.conf, Dovecot tries to autodetect the location of the mailbox. ...
I did even more, adding a couple of explicit namespaces as explained in the wiki:
namespace private { separator = / prefix = location = maildir:%h/Maildir } namespace private { separator = / inbox = yes prefix = "#mbox/" location = mbox:%h/MBox:INBOX=/var/mail/%u hidden = no }
Without this of course Dovecot doesn't understand that the INBOX is in mbox format and the user repository is instead in Maildir format. If I undesrtand properly the comments in the sample configuration file default_mail_env has no effect when such namespaces are set. BTW I also tried with default_mail_env uncommented and set to empty to no avail.
Apart from the changes above the configuration file is pretty much the one supplied with the default distribution. Another hint: the package has been built from the source RPM supplied with fedora devel. I know for sure that the fedora package includes a couple of patches to the base source. If you think that they might be related to the problem I can check which kind of patches are applied.
Thanks for your help,
Denis Sbragion
InfoTecna
Tel: +39 0362 805396, Fax: +39 0362 805404
URL: http://www.infotecna.it
On Tue, 2006-02-07 at 16:32 +0100, Denis Sbragion wrote:
Hello Timo,
At 16.03 07/02/2006, Timo Sirainen wrote:
On Mon, 2006-02-06 at 18:57 +0100, Denis Sbragion wrote: Umm.. If you haven't uncommented default_mail_env setting in dovecot.conf, Dovecot tries to autodetect the location of the mailbox. ...
I did even more, adding a couple of explicit namespaces as explained in the wiki:
namespace private { separator = / prefix = location = maildir:%h/Maildir } namespace private { separator = / inbox = yes prefix = "#mbox/" location = mbox:%h/MBox:INBOX=/var/mail/%u hidden = no }
I see, that's the difference then. Namespaces are currently supported only with IMAP. POP3 still uses only default_mail_env.
Without this of course Dovecot doesn't understand that the INBOX is in mbox format and the user repository is instead in Maildir format. If I undesrtand properly the comments in the sample configuration file default_mail_env has no effect when such namespaces are set. BTW I also tried with default_mail_env uncommented and set to empty to no avail.
Try setting it to mbox:%H/MBox:INBOX=/var/mail/%u and then pop3 should find the mails too.
Hello Timo,
At 17.56 07/02/2006, Timo Sirainen wrote:
Try setting it to mbox:%H/MBox:INBOX=/var/mail/%u and then pop3 should find the mails too.
dovecot now is my default imap server. :) Many thanks!
Bye,
Denis Sbragion
InfoTecna
Tel: +39 0362 805396, Fax: +39 0362 805404
URL: http://www.infotecna.it
participants (2)
-
Denis Sbragion
-
Timo Sirainen