[Dovecot] Autocreate plugin for some domains

Timo Sirainen tss at iki.fi
Wed Oct 14 03:58:47 EEST 2009


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?




More information about the dovecot mailing list