[Dovecot] Problem with quota.
john.wall at cky.se
john.wall at cky.se
Tue May 6 13:07:40 EEST 2008
Hi,
Im having problem with quota with 1.0.rc17-1ubuntu2.3. Problem is that
dovecot wont bounce when quota are exceeded. I have set my quota limit to
2MB and my test-box is 3MB. here is my config:
dovecot.conf:
#ssl_cert_file = /etc/pki/dovecot/certs/myserver.example.com.crt
#ssl_key_file = /etc/pki/dovecot/private/myserver.example.com.key
#ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt
mail_location = maildir:/home/vmail/%d/%u
first_valid_uid = 5000
last_valid_uid = 5000
maildir_copy_with_hardlinks = yes
disable_plaintext_auth = no
protocols = imap imaps pop3 pop3s
protocol imap {
mail_plugins = quota imap_quota
imap_client_workarounds = outlook-idle delay-newmail
}
protocol pop3 {
mail_plugins = quota
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
postmaster_address = postmaster at example.com
mail_plugins = quota
log_path = /var/log/dovecot-deliver.log
info_log_path = /var/log/dovecot-deliver.log
}
auth default {
# Having "login" also as a mechanism make sure outlook can use the auth
smtpd as well
# http://wiki.dovecot.org/Authentication/Mechanisms
mechanisms = plain login
passdb sql {
args = /etc/dovecot/sql.conf
}
userdb sql {
args = /etc/dovecot/sql.conf
}
userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}
userdb prefetch {
}
user = nobody
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
quota = maildir:storage=1024:messages=1000
acl = vfile:/etc/dovecot/acls
trash = /etc/dovecot/trash.conf
}
sql.conf:
driver = mysql
connect = host=localhost dbname=mdbv3 user=xxxx password=xxxx
user_query = SELECT concat('/home/vmail/', maildir) as home,
concat('maildir:/home/vmail/', maildir) as mail, 5000 AS uid, 5000 AS gid,
concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username =
'%u' AND active = '1'
password_query = SELECT username as user, password, concat('/home/vmail/',
maildir) as userdb_home, concat('maildir:/home/vmail/', maildir) as
userdb_mail, 5000 as userdb_uid, 5000 as userdb_gid FROM mailbox WHERE
username = '%u' AND active = '1'
Is this file even nessesary ?
(postfix stuff) mysql_virtual_mailbox_limit_maps.cf (not showing login inf
etc):
query = SELECT quota FROM mailbox WHERE username='%s' AND active
= '1'
More information about the dovecot
mailing list