[Dovecot] Autocreate plugin for some domains

Timo Sirainen tss at iki.fi
Tue Oct 13 22:58:01 EEST 2009


On Tue, 2009-10-13 at 14:45 -0500, Jose Luis Marin Perez wrote:
> Dear Timo,
> 
> Thanks for your reply. 
> 
>  In the case of having two domains, eg:
> 
>  dominio1.com 
>  dominio2.com 
> 
>  And I just want to use the plugin autocreate for dominio2.com, how could configure vchkpw-wrapper.sh? 

something like:

DOMAIN=`echo $USER|sed s/^.*@//`
if [ "$DOMAIN" = "domain2.com" ]; then
  export AUTOCREATE=box1
  export AUTOCREATE2=box2
  export EXTRA="AUTOCREATE AUTOCREATE2"
fi
exec ...
-------------- 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/f7620537/attachment.bin 


More information about the dovecot mailing list