[Dovecot] Virtual folder for selected users only? (1.2.15)
Sebastian Schäfer
sebastian at bergschaf.net
Tue Feb 18 12:42:47 UTC 2014
hi,
i want to set up virtual folders just for some users on our mailserver.
the server is set up with a virtual system-user for each of our clients
having multiple mailboxes/users (provided by dovecot-mysql).
mailboxes are located: /var/mails/SYSUSER/MAILBOX
f.e. my mailbox-folder is set to
/var/mails/bergschaf/sebastian[at]bergschaf.net
{homedir} = /var/mails
{maildir} = bergschaf/sebastian[at]bergschaf.net
user_query = SELECT homedir AS home, concat('maildir:', maildir) AS mail,
uid, gid, concat('maildir:storage=', (quota*1024)) as quota FROM mail_users
WHERE username = '%u'
now i want to add virtual folders to my mailbox without affecting any other
client/mailbox on the server.
i already tried to add a namespace "virtual" like mentioned in the wiki and
in some other hotwo-guides, but this points to the need to create a
"virtual"-folder for each mailbox what i would like to avoid.
(f.e. location = %h/%u/virtual => /var/mails/sebastian[at]bergschaf.net).
is it possible to enable a namespace just for some selected users on the
server?
if that's not possible - i'm not sure how to set the location-directive
correctly, because i can't find a variable pointing to the maildir:
%u => sebastian[at]bergschaf.net
%h => /var/mails
...but how should i point the location to {homedir}/{maildir}/virtual?
thanks!
sebastian
dovecot --version
1.2.15
More information about the dovecot
mailing list