[Dovecot] Autocreate plugin for some domains

Timo Sirainen tss at iki.fi
Tue Oct 13 21:00:11 EEST 2009


On Mon, 2009-10-12 at 15:48 -0500, Jose Luis Marin Perez wrote:
>   passdb:
>     driver: checkpassword
>     args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
>   userdb:
>     driver: prefetch
>     args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u

So basically you get the configuration from checkpassword script. You
can change vchkpw-wrapper.sh to set environment variables:

AUTOCREATE=box1
AUTOCREATE2=box2
EXTRA=autocreate autocreate2
etc.

Insert your own logic there to figure out for what domains that needs to
be done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091013/94a42a95/attachment.bin 


More information about the dovecot mailing list