[Dovecot] Autocreate plugin for some domains
Jose Luis Marin Perez
jolumape_al at hotmail.com
Wed Oct 14 19:37:14 EEST 2009
Hi Timo,
These are the results:
more /tmp/autocreate
jmarin
jmarin
I'm using the mail account jmarin at operaciones.qnet.com.pe
vchkpw-wrapper.sh
#!/bin/bash
DOMAIN=`echo $USER|sed s/^.*@//`
echo $USER > /tmp/autocreate
echo $DOMAIN >> /tmp/autocreate
if [ "$DOMAIN" = "operaciones.qnet.com.pe" ]; then
export USERDB_AUTOCREATE=INBOX.spam1
export USERDB_AUTOCREATE2=INBOX.spam2
export EXTRA="USERDB_AUTOCREATE USERDB_AUTOCREATE2"
echo "yeah i got here" >> /tmp/autocreate
fi
unset USER
exec $*
Thanks
Jose Luis
> From: tss at iki.fi
> To: jolumape_al at hotmail.com
> Date: Wed, 14 Oct 2009 12:18:17 -0400
> CC: dovecot at dovecot.org
> Subject: Re: [Dovecot] Autocreate plugin for some domains
>
> On Tue, 2009-10-13 at 22:53 -0500, Jose Luis Marin Perez wrote:
> > I added the line you mentioned
> >
> > echo "yeah i got here" > /tmp/autocreate
> >
> > and did not create the file /tmp/autocreate
>
> Then it needs more debugging. Try:
>
> > This is the script with the real domain:
> >
> > #!/bin/bash
> >
> > DOMAIN=`echo $USER|sed s/^.*@//`
>
> echo $USER > /tmp/autocreate
> echo $DOMAIN >> /tmp/autocreate
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
More information about the dovecot
mailing list