[Dovecot] Simple questions about Quota
Hi folks, hope that get some help for some doubts :P
I've configured dovecot in a clustered environment 3 X HP Proliant DL380+RHEL ES 4.0+EVA4000+GFS.
Everything is working great.
But, when I putted this cluster on production, I had some problems with quota+ldap in my dovecot.
Here follows my configuration:
/etc/dovecot.conf
last_valid_gid = 101
maildir_copy_with_hardlinks = no
login_greeting = Internet ready.
disable_plaintext_auth = no
auth_default_realm =domain.com.br
protocol imap {
mail_plugins = imap_quota quota
}
protocol lda {
postmaster_address = postmaster@domain.com.br
mailto:postmaster@domain.com.br
mail_plugins = quota
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
}
auth default_with_listener {
mechanisms = plain login
userdb ldap {
args = /etc/dovecot-ldap.conf
}
passdb ldap {
args = /etc/dovecot-ldap.conf
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = mail
}
}
}
plugin {
quota = maildir
}
/etc/dovecot-ldap.conf
...
user_attrs = mail,homeDirectory,,,,quota=quota=maildir:storage
user_filter = (&(objectClass=VirtualMailAccount)(mail=%u)(accountActive=TRUE)(delete=F ALSE))
I'm heaving heavy load of e-mails in this environment, so this problem started to happen:
Almost all users have 100MB of quota, that's ok for us and we are storing 102400 at our ldap. But, when I put this configuration working on, all clients receive overquota messages.
If I'm using quota information in my ldap server, do I have to use this option in my dovecot.conf file?
plugin {
quota = maildir
}
Tnx for any help and/or tips.
Regards,
Venilton C. Junior HP Certified Professional Sercompe Computadores Ltda. Office: +55 47 3431-9700 Fax: +55 47 3431-9747 Mobile: +55 47 9653-5872 www.sercompe.com.br http://www.sercompe.com.br/
On Thu, 2007-05-24 at 09:31 -0300, Venilton Junior wrote:
Here follows my configuration:
dovecot -n is preferrable to copy&pasteing dovecot.conf.
user_attrs = mail,homeDirectory,,,,quota=quota=maildir:storage
This is a mix of old and new style user_attrs format. That might be causing the problem. Use instead:
user_attrs = homeDirectory=home,quota=quota=maildir:storage
If I'm using quota information in my ldap server, do I have to use this option in my dovecot.conf file?
plugin {
quota = maildir
}
It doesn't matter, because it's overridden by the quota setting returned by userdb.
If you can't seem to get it work, set auth_debug=yes and look at what you see in the logs. You should see something like:
auth(default): master out: USER 1 tss uid=1000 gid=1000 home=/home/tss quota=maildir:storage=102400
Make sure the quota setting looks correct in there.
participants (2)
-
Timo Sirainen
-
Venilton Junior