当前位置:网站首页>dovecot 设置邮箱quota
dovecot 设置邮箱quota
2022-07-25 21:44:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
先按照 下面启用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 quotaconf.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里面的 对应quota = maildir:User quota
如果是修改方式限制quoto则作相应的修改。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127922.html原文链接:https://javaforall.cn
边栏推荐
- mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
- 【面试:并发篇25:多线程:volatile】可见性
- Optimization analysis of storage structure and IO performance of openharmony littlefs file system
- Unity metaverse (II), mixamo & animator hybrid tree and animation fusion
- Detailed explanation of several ideas for implementing timed tasks in PHP
- 性能调试 -- Chrome Performance
- Web3 entrepreneurship has all the elements of explosive growth of innovation
- Talk about what's going on with C # backstage GC?
- Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
- 【面试:并发篇23:多线程:join】join再理解
猜你喜欢
![[Flink] flick rocksdbliststate reports an error you cannot add null to a liststate](/img/c0/1923e17f166ab4bc7d20f48398f366.jpg)
[Flink] flick rocksdbliststate reports an error you cannot add null to a liststate
![[interview: concurrent Article 23: multithreading: Join] re understanding of join](/img/ee/5160a55e776336ba844abe8e9db72a.png)
[interview: concurrent Article 23: multithreading: Join] re understanding of join

Optimization analysis of storage structure and IO performance of openharmony littlefs file system

五、品达通用权限系统__pd-tools-xxs(防跨站脚本攻击)
![PHP zero time task, PHP laravel time task schedule [dry goods]](/img/09/c9a4c83fe23c852aa76a6f5a6cea52.png)
PHP zero time task, PHP laravel time task schedule [dry goods]

In depth understanding of seven specific ways to enhance code scalability

MySQL master-slave configuration

立创EDA——器件的创建01-电阻(二)

【Redis底层解析】字符串类型

GPON介绍及华为OLT网关注册配置流程
随机推荐
919. Complete binary tree inserter: simple BFS application problem
Performance debugging -- chrome performance
Huawei occupies half of the folding mobile phone market, proving its irreplaceable position in the high-end market
PE格式: 分析IatHook并实现
redis主从架构锁失效问题(主从)
C#Socket
[JS] the problem pointed by this
Special symbols in shell
大厂面试官:千万级数据量的表,如何进行快速查询?
人脸与关键点检测:YOLO5Face实战
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (7) - Fiddler status panel -quickexec command line
Isn't it too much to play Gobang in idea?
mysql8.0 mha实现高可用《mha》
Fastjson deserialization vulnerability utilization analysis collection
Come again
Dear bosses, how can I print the result of Flink SQL to the console and display it completely?
函数栈帧的创建和销毁
Stm3 (cubeide) lighting experiment
At present, flynk CDC does not support mysql5.5. If you change the source code and release this restriction, there will be a lot of data problems?
零基础学习CANoe Panel(17)—— Panel CAPL Function