[Dovecot] AutoCreate per Domain

Darvin Denmian darvin.denmian at gmail.com
Fri Aug 7 20:49:58 EEST 2009


@dovecot.conf

mail_plugins = autocreate

plugin {
        autocreate = Clients1
}

@dovecot-sql.conf

user_query = SELECT maildir, 1001 AS uid, 1001 AS gid , \
 'Clients2' AS autocreate , mail_plugins\
 FROM mailbox WHERE username = '%u' AND active='1'


Clients1 is sucessfuly created

Clients2 isn't created :(


Thanks TIMO !

Sorry for delay
On Thu, Aug 6, 2009 at 8:44 PM, Timo Sirainen<tss at iki.fi> wrote:
> On Aug 6, 2009, at 6:34 PM, Darvin Denmian wrote:
>
>> Hello again,
>>
>> God don't want that this solution work for me :(
>>
>> I updated "user_query" to:
>>
>> user_query = SELECT maildir, 1001 AS uid, 1001 AS gid , \
>> 'Clients' AS autocreate, mail_plugins \
>> FROM mailbox WHERE username = '%u' AND active='1'
>>
>> And still don't work.
>
> You want "Clients" mailbox to be created, right? If you do:
>
> 1) Remove the autocreate from user_query and add "autocreate = something" to
> plugin section. Does it get created?
>
> 2) Add the autocreate back to user_query, keep autocreate=something in
> plugin section. Does either one of them get created?
>
>


More information about the dovecot mailing list