[Dovecot] Autocreate plugin for some domains

Jose Luis Marin Perez jolumape_al at hotmail.com
Tue Oct 13 23:31:39 EEST 2009


Dear Timo, 

 I am currently using the vchkpw-wrapper.sh script to register users connected to the server. 

 So adding the configuration that tells me and would be as follows: 

#!/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? 

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

Thanks

Jose Luis


> Subject: Re: [Dovecot] Autocreate plugin for some domains
> From: tss at iki.fi
> To: dovecot at dovecot.org
> CC: jolumape_al at hotmail.com
> Date: Tue, 13 Oct 2009 15:58:57 -0400
> 
> On Tue, 2009-10-13 at 15:58 -0400, Timo Sirainen wrote:
> > if [ "$DOMAIN" = "domain2.com" ]; then
> >   export AUTOCREATE=box1
> >   export AUTOCREATE2=box2
> >   export EXTRA="AUTOCREATE AUTOCREATE2"
> 
> Oh, actually:
> 
> export USERDB_AUTOCREATE=box1
> export USERDB_AUTOCREATE2=box2
> export EXTRA="USERDB_AUTOCREATE USERDB_AUTOCREATE2"
> 
 		 	   		  
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE


More information about the dovecot mailing list