[Dovecot] Finally upgrading from v1.0.15 to v1.2.16 -- advice please
Jan-Frode Myklebust
janfrode at tanso.net
Tue Jan 4 15:33:36 EET 2011
On Tue, Jan 04, 2011 at 12:44:26PM +0200, Timo Sirainen wrote:
>
> > user_attrs = mailMessageStore=mail=maildir:%$:INDEX=/usr/local/atmail/users/indexes/%1u/%1.1u/%u, mailQuota=quota_rule=*:storage=%$
> > > >
> > > > i.e. will it point dovecot at:
> > > >
> > > > mail = maildir:/usr/local/atmail/users/j/a/janfrode at domain1.net:INDEX=/usr/local/atmail/users/indexes/j/a/janfrode at domain1.net
> > > > quota_rule=*:storage=1000000
The maildir and indexes seems OK, but the quota doesn't work. I have
confirmed that this user has a "mailQuota: 1000000" in LDAP, but no
quota is reported trough IMAP:
. getquotaroot inbox
. OK No quota.
while for the same user, under v1.0 running against mysql I see:
. getquotaroot inbox
* QUOTAROOT "inbox" ""
* QUOTA "" (STORAGE 539 1000000)
. OK Getquotaroot completed.
I've tried both:
user_attrs = mailMessageStore=mail=maildir:%$:INDEX=/usr/local/atmail/users/indexes/%1u/%1.1u/%u,mailQuota=quota_rule=*:storage=%$
user_attrs = mailQuota=quota_rule=*:storage=1G,mailMessageStore=mail=maildir:%$:INDEX=/usr/local/atmail/users/indexes/%1u/%1.1u/%u
Full config:
-----------------------------------------------------------
# 1.2.16: /usr/local/dovecot-1.2.16/etc/dovecot.conf
# OS: Linux 2.6.18-194.26.1.el5 x86_64 Red Hat Enterprise Linux Server
# release 5.5 (Tikanga)
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl: no
disable_plaintext_auth: no
login_dir: /usr/local/dovecot-1.2.16/var/run/dovecot/login
login_executable(default):
/usr/local/dovecot-1.2.16/libexec/dovecot/imap-login
login_executable(imap):
/usr/local/dovecot-1.2.16/libexec/dovecot/imap-login
login_executable(pop3):
/usr/local/dovecot-1.2.16/libexec/dovecot/pop3-login
max_mail_processes: 300
mail_uid: 3000
mail_gid: 3000
mmap_disable: yes
mail_executable(default): /usr/local/dovecot/sbin/imap-wrapper.sh
mail_executable(imap): /usr/local/dovecot/sbin/imap-wrapper.sh
mail_executable(pop3): /usr/local/dovecot/sbin/pop-wrapper.sh
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/dovecot-1.2.16/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot-1.2.16/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot-1.2.16/lib/dovecot/pop3
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3):
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): UID%u-%v
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
type: private
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
lda:
postmaster_address: MAILER-DAEMON at example.net
mail_plugins: quota
auth_socket_path: /var/run/dovecot/auth-master
sendmail_path: /usr/sbin/sendmail
auth default:
user: dovecot-auth
passdb:
driver: ldap
args: /usr/local/dovecot/etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /usr/local/dovecot/etc/dovecot-ldap.conf
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 432
user: root
group: atmail
-----------------------------------------------------------
$ grep -v ^# dovecot-ldap.conf |grep -v ^$
hosts = ldapm1.example.net:389 ldapm2.example.net:389 maildb.example.net:389
auth_bind = yes
auth_bind_userdn = uid=%n,ou=people,o=%d,o=ISP,o=example,c=NO
base = ou=people,o=%d,o=ISP,o=example,c=NO
deref = never
scope = onelevel
user_filter = (&(objectClass=examplePerson)(uid=%n))
user_attrs =
mailQuota=quota_rule=*:storage=1G,mailMessageStore=mail=maildir:%$:INDEX=/usr/local/atmail/users/indexes/%1u/%1.1u/%u
-jf
More information about the dovecot
mailing list