[Dovecot] Quota problem
Osvaldo Alvarez Pozo
nebano at gmail.com
Tue Sep 11 02:20:53 EEST 2007
Hi alI
I install dovecot using the DovecotLDAPostfixAdminMySQL HOWTO
but I have a problem with quota. Quota it is not taken into account by
deliver I also tried a compiled dovecot version from sorces and the
resault is the same.
dovecot version from debian distribution 1.0.rc15-2
dovecot from sources dovecot-1.0.5.tar.gz
Thanks in advance
Osvaldo
Those are my files
File /etc/dovecot/dovecot.conf
ssl_cert_file = /etc/apache2/ssl/server.crt
ssl_key_file = /etc/apache2/ssl/server.key
#ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt
protocols = imap pop3 imaps pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
#mail_location = maildir:/export/mail/%d/%u
mail_location = maildir:/var/vmail/%d/%u/Maildir
mail_extra_groups = mail
first_valid_uid = 5000
last_valid_uid = 5000
maildir_copy_with_hardlinks = yes
disable_plaintext_auth = no
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
mail_plugins = cmusieve
# sieve_global_dir = /etc/dovecot/sieve/
global_script_path =/etc/dovecot/sieve/dovecot.sieve
}
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 prefetch {
}
user = nobody
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = mail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = mail
}
}
}
dict {
}
plugin {
quota = maildir:storage=10240:messages=1000
acl = vfile:/etc/dovecot/acls
trash = /etc/dovecot/trash.conf
}
File /etc/dovecot/sql.conf
driver = mysql
default_pass_scheme = MD5
connect = host=localhost dbname=postfix user=postfix password=password
user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home,
concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS
uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota
FROM mailbox WHERE username = '%u' AND active = '1'
password_query = SELECT username as user, password,
concat('/var/vmail/', maildir, 'Maildir') as userdb_home,
concat('maildir:/var/vmail/', maildir, 'Maildir') as userdb_mail, 5000
as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND
active = '1'
More information about the dovecot
mailing list