[Dovecot] Extra plugins vía extrafield in ldap

Timo Sirainen tss at iki.fi
Fri Jun 3 14:50:41 EEST 2011


On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:

> And in passwd-ldap.conf I have some like this to add extra plugins:
> 
> user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins

This completely overrides mail_plugins setting..

> With this. I can see that dovecot load all plugins from settings, but
> in the user session, I can get only the plugins that I have selected
> in mailPlugins field
> 
> If i check some like this:
>   mailPlugins=mail_plugins=$mail_plugins %$,

$mail_plugins variable works only inside dovecot.conf while the settings
are being parsed.

> The imap session user is aborted after login.
> 
> 
> How can I add extra plugins by ldap without put on ldap all user plugins?

The best you can do now is:

mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$

i.e. list the global plugins in here as well as in the global
mail_plugins setting.



More information about the dovecot mailing list