dovecot 设置邮箱quota
生活随笔
收集整理的這篇文章主要介紹了
dovecot 设置邮箱quota
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>>
先按照 下面啟用quota
conf.d/10-mail.conf:
# Space separated list of plugins to load for all services. Plugins specific to
# IMAP, LDA, etc. are added to this list in their own .conf files.
mail_plugins = $mail_plugins quota
conf.d/20-imap.conf:
protocol imap {
# Space separated list of plugins to load (default is global mail_plugins).
mail_plugins = $mail_plugins imap_quota
}
conf.d/90-quota.conf:
plugin {
#quota = dirsize:User quota
quota = maildir:User quota
#quota = dict:User quota::proxy::quota
#quota = fs:User quota
quota_exceeded_message = Quota exceeded(對方郵箱空間不足), please go to http://www.example.com/over_quota_help for instructions on how to fix this.
}
最后修改 dovecot-sql.conf.ext 里面用戶查詢信息
user_query = \
SELECT maildir as home, 889 AS uid, 889 AS gid ,\
concat('*:bytes=',quota) AS quota_rule\
FROM mailbox \
WHERE name = '%n' AND domain = '%d'
password_query = SELECT CONCAT(name, '@', domain) AS user, \
passwd AS password ,concat('*:bytes=',quota) AS userdb_quota_rule\
FROM mailbox \
WHERE name = '%n' AND domain = '%d'
注意‘maildir:’,quota 是配置文件 90-quota.conf里面的 對應(yīng)quota = maildir:User quota
如果是修改方式限制quoto則作相應(yīng)的修改。
轉(zhuǎn)載于:https://my.oschina.net/hxily/blog/354126
總結(jié)
以上是生活随笔為你收集整理的dovecot 设置邮箱quota的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: USACO Training Secti
- 下一篇: USACO Training Secti