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@iki.fi To: jolumape_al@hotmail.com Date: Tue, 13 Oct 2009 20:58:47 -0400 CC: dovecot@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 autocreateWhat does it log with auth_debug=yes enabled?
Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE