[Dovecot] Autocreate plugin for some domains
Jose Luis Marin Perez
jolumape_al at hotmail.com
Wed Oct 14 01:32:09 EEST 2009
Dear Timo,
I tried with the script you mentioned and did not create the directories are configured.
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"
fi
unset USER
exec $*
But it does not work, and dovecot.log not log any information about the plugin autocreate
In that I am wrong?
Thanks
Jose Luis
dovecot -n
# 1.1.16: /usr/local/etc/dovecot.conf
# OS: Linux 2.6.9-67.0.15.plus.c4smp i686 CentOS release 4.6 (Final)
log_path: /var/log/dovecot.log
listen: *:10143
ssl_listen: *:10943
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mail_uid: 89
mail_gid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mail_plugins: quota imap_quota expire mail_log autocreate
namespace:
type: private
separator: .
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
auth default:
passdb:
driver: checkpassword
args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
userdb:
driver: prefetch
args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u
userdb:
driver: vpopmail
socket:
type: listen
master:
path: /usr/local/var/run/dovecot/auth-master
mode: 384
user: vpopmail
group: vchkpw
plugin:
quota: maildir
quota_rule: ?:storage=0
quota_rule2: Trash:ignore
expire: INBOX.Spam 1 INBOX.Spam.* 1
expire_dict: proxy::expire
mail_log_events: delete undelete expunge copy mailbox_delete
mail_log_group_events:
mail_log_fields: uid box msgid size
dict:
expire: mysql:/usr/local/etc/dovecot-dict-expire.conf
> Subject: Re: [Dovecot] Autocreate plugin for some domains
> From: tss at iki.fi
> To: jolumape_al at hotmail.com
> CC: dovecot at dovecot.org
> Date: Tue, 13 Oct 2009 17:58:43 -0400
>
> On Tue, 2009-10-13 at 15:31 -0500, Jose Luis Marin Perez wrote:
> > #!/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?
>
> Looks right. Try and see.
>
> > This would be the same procedure for using any plugins (Example expires) in a certain domain?
>
> Right. You can override any settings that way.
>
_________________________________________________________________
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