[Dovecot] user/domain-dependent autosubscribe ?

Per Jessen per at computer.org
Fri Sep 3 23:15:45 EEST 2010


Timo Sirainen wrote:

> On Fri, 2010-09-03 at 11:00 +0200, Per Jessen wrote:
> 
>> I've got autosubscribe working very well, but I need to make it
>> dependent on the domain - e.g. domain example.com will have folders
>> (a,b,c), while domain example2.com will have (d,e,f).  Any hints on
>> how to achieve that?
> 
> What userdb do you use? If for example SQL, you can override plugin
> fields by simply returning them, like:
> 
> user_query = select \
>   autocreate.box1 as autocreate1, \
>   autocreate.box2 as autocreate2, etc
>   from autocreate, users
>   where table joins etc.

Ah, that's perfect - thanks!


/Per Jessen, Zürich



More information about the dovecot mailing list