[Dovecot] Autocreate plugin for some domains

Timo Sirainen tss at iki.fi
Wed Oct 14 00:58:43 EEST 2009


On Tue, 2009-10-13 at 15:31 -0500, Jose Luis Marin Perez wrote:
> #!/bin/bash
> 
> DOMAIN=`echo $USER|sed s/^.*@//`
> if [ "$DOMAIN" = "domain2.com" ]; then
>   export USERDB_AUTOCREATE=box1
>   export USERDB_AUTOCREATE2=box2
>   export EXTRA="USERDB_AUTOCREATE USERDB_AUTOCREATE2" 
> fi
> 
> unset USER
> exec $*
> 
>  This properly configured? 

Looks right. Try and see.

>  This would be the same procedure for using any plugins (Example expires) in a certain domain?

Right. You can override any settings that way.

-------------- 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/d79b38dc/attachment.bin 


More information about the dovecot mailing list