[Dovecot] Multiple Maildir?

Daniel Parthey daniel.parthey at informatik.tu-chemnitz.de
Fri Oct 12 02:01:36 EEST 2012


Hi Marc,

Marc Perkel wrote:
> On 10/9/2012 3:42 PM, Daniel Parthey wrote:
> >Marc Perkel wrote:
> >>if the mail location doesn't exist
> >>then I want to try a second mail location:
> >>mail_location = maildir:/email/%d/%n:INBOX=/email/%d/%n:LAYOUT=fs
> >You might do this with a script which exports the MAIL environment
> >variable and then executes the service binary:
> >http://wiki2.dovecot.org/MailLocation#Custom_mailbox_location_detection
> But how do I pick up the name and domain parameters to test the directory?

You can get the username and any other userdb value from the environment,
have a look at the environment section:

http://wiki2.dovecot.org/PostLoginScripting#Running_environment

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820



More information about the dovecot mailing list