[Dovecot] Autocreate plugin for some domains
Jose Luis Marin Perez
jolumape_al at hotmail.com
Wed Oct 14 19:15:20 EEST 2009
Dear Timo,
I added the line you mentioned
echo "yeah i got here" > /tmp/autocreate
and did not create the file /tmp/autocreate
This is the script with the real domain:
#!/bin/bash
DOMAIN=`echo $USER|sed s/^.*@//`
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 $*
What could be happening?
Thanks
Jose Luis
> From: tss at iki.fi
> To: jolumape_al at hotmail.com
> Date: Tue, 13 Oct 2009 20:58:47 -0400
> CC: dovecot at dovecot.org
> Subject: Re: [Dovecot] Autocreate plugin for some domains
>
> On Oct 13, 2009, at 6:32 PM, Jose Luis Marin Perez wrote:
>
> > Additionally I have made this modification:
> >
> > #!/bin/bash
> >
> > DOMAIN=`echo $USER|sed s/^.*@//`
> > if [ "$DOMAIN" = "domain2.com" ]; then
> > export USERDB_AUTOCREATE=INBOX.box1
> > export USERDB_AUTOCREATE2=INBOX.box2
> > export EXTRA="USERDB_AUTOCREATE USERDB_AUTOCREATE2"
>
> Are you sure this code gets called? Maybe add something here such as:
>
> echo "yeah i got here" > /tmp/autocreate
>
> > fi
> >
> > unset USER
> > exec $*
> >
> >
> > But it does not work, and dovecot.log not log any information about
> > the plugin autocreate
>
> What does it log with auth_debug=yes enabled?
>
>
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
More information about the dovecot
mailing list