[Dovecot] Custom mail directory with LDAP
For certain users, I have their mail boxes under /srv/mpop/<username>/Maildir. For the rest, I have their mail boxes under /srv/vmail/<username>/Maildir.
mpop/ users are stored in LDAP, vmail/ users are local users so I discard the idea of set a fixed mail_location.
In dovecot-ldap.conf I can't get the picture to set /srv/mpop/<username>/Maildir as mail.
I'd tried user_attrs = /srv/mpop/uid/Maildir=mail but watching the logs I saw that a '/srv/mpop/uid/Maildir' is queried to the LDAP Server.
Would be nice to have a user_global_mail equivalent to user_global_uid for LDAP user lookups.
Regards, maykel
On Tue, 2006-12-19 at 11:44 -0500, Maykel Moya wrote:
Would be nice to have a user_global_mail equivalent to user_global_uid for LDAP user lookups.
Yea, it would. Won't happen for v1.0 though. Alternative way to do this would be by scripting it: http://wiki.dovecot.org/PostLoginScripting (change MAIL environment)
participants (2)
-
Maykel Moya
-
Timo Sirainen