custom mail_location detection for dovecot lda

Stephan Bosch stephan at rename-it.nl
Mon Aug 8 15:34:08 UTC 2016



Op 8-8-2016 om 17:27 schreef Alexander 'Leo' Bergolth:
> Hi!
>
> Is it possible to do something like "post-login scripting" to detect and
> set a per-user custom mail location for dovecot LDA delivery?
>
> I tried to use a wrapper-script around dovecot-lda that sets the
> environment variables MAIL="..." and USERDB_KEYS="MAIL" just like
> overriding userdb fields may be done using imap postlogin scripts, but
> unfortunately this doesn't seem to be honored. (Also tried with
> dovecot-lda -k.)
>
> Woud be very useful for slow migration from one mailbox format to another.
>
> Is there any other way to supply a custom mail_location to dovecot-lda?

You could use /usr/lib/dovecot/dovecot-lda -omail_location=<location>

There is probably a better way using a userdb though.

Regards,

Stephan.


More information about the dovecot mailing list