工作中~
分类:
2008-07-22 11:22:19
可以实现,花费了好多时间找这方面的资料,最后发现官网上就有,郁闷那!! lxq007
实现对邮件服务器中用户的quoto设置
/etc/dovecot/dovecot.conf
protocol imap {
mail_plugins = quota imap_quota
}
protocol pop3 {
mail_plugins = quota
}
# In case you're using deliver:
protocol lda {
#quota插件和邮件自动分类进入文件夹或删除插件
mail_plugins = quota cmusieve
}
plugin {
# 10 MB + 1000 messages quota limit
#可以被单独用户大小覆盖
quota = maildir:storage=1024000000:messages=0
}
#userdb static 注销这个静态的
使用动态的
userdb sql {
# Path for SQL configuration file, see /etc/dovecot/dovecot-sql.conf for example
args = /etc/dovecot/dovecot-sql.conf
}
/etc/dovecot/dovecot-sql.conf
user_query = SELECT '/home/vmail/%d/%n' as home, 5566 AS uid, 5566 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM view_users WHERE email = '%u'