Virtual POP3 namespaces and quota-status
Aurélien Beaujean
abj at online.fr
Mon Jan 9 09:35:29 UTC 2017
Hi, again replying to myself,
Le Friday 23 December 2016 à 14:53, Aurélien Beaujean écrivait:
> I've found a way to address my problem, using the %s (protocol) in the
> configuration file, as this:
I've updated dovecot to v2.2.27, and configured POP3 this way, without
other changes on IMAP or LDA:
protocol pop3 {
# Space separated list of plugins to load (default is global mail_plugins).
mail_plugins = $mail_plugins last_login virtual
# Virtual POP3 INBOX
# The default namespace that is visible to IMAP clients
namespace inbox {
inbox = no
prefix =
separator = /
list = yes
}
# Virtual namespace for the virtual INBOX. Use a global directory for dovecot-virtual files.
namespace virtual {
inbox = yes
prefix = virtual/
separator = /
#location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual
location = virtual:/etc/dovecot/virtual:INDEX=MEMORY
list = no
hidden = yes
}
# Copy of the inbox namespace. We'll use this in dovecot-virtual file.
namespace real {
prefix = RealMails/
separator = /
list = no
hidden = yes
}
}
With /etc/dovecot/virtual/INBOX/dovecot-virtual containing:
RealMails/INBOX
RealMails/BOX1
RealMails/BOX2
all
Thanks to cmouse on #dovecot who helped me to get the right config.
There is at least one problem left, if there is some subdirectory created
inside INBOX, dovecot will stop to list you emails inside INBOX folder while
POP3'ing. They remain visible when IMAP'ing. The only way to get back INBOX
emails for POP3 users is to remove the virtual POP3 config...
Or I am missing something here http://wiki.dovecot.org/Plugins/Virtual or there
is a bug in the virtual plugin.
--
Auré
More information about the dovecot
mailing list