[Dovecot] user/domain-dependent autosubscribe ?
Newbie alert! Dovecot 2.0rc3
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?
/Per Jessen, Zürich
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.
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
participants (2)
-
Per Jessen
-
Timo Sirainen