当前位置:网站首页>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
边栏推荐
- Configuration and use of multithreading
- Naming rules for BSP of Quanzhi chip
- Stm3 (cubeide) lighting experiment
- 五、品达通用权限系统__pd-tools-xxs(防跨站脚本攻击)
- Ability to choose
- 字节一面:TCP 和 UDP 可以使用同一个端口吗?
- 选择的能力
- C#常见的集合
- Detailed explanation of JVM memory model and structure (five model diagrams)
- The noise reduction effect is increased by more than 6 times! With the microphone inside the headset, this wireless noise reduction headset is unusual!
猜你喜欢
![[interview: concurrent 25: multithreading: volatile] visibility](/img/03/6b44242a019775222fdf9c7a920ae5.png)
[interview: concurrent 25: multithreading: volatile] visibility

Shopify sellers: share some tips for social media marketing!

Detailed explanation of Ag search tool parameters

Zero basic learning canoe panel (17) -- panel CAPL function

How to choose sentinel vs. hystrix current limiting?

919. 完全二叉树插入器 : 简单 BFS 运用题

Oxford University: many common insomnia drugs lack long-term safety data

Stm3 (cubeide) lighting experiment

2022最新软件测试八股文,能不能拿心仪Offer就看你背得怎样了
QT | learn about QT creator by creating a simple project
随机推荐
mysql8.0 mha实现高可用《mha》
狗粮的成分
Apple estimates that iPhone will give up the Chinese market, and the Chinese industrial chain needs to consider living a hard life
Research: more than 70% of doctors are still prescribing unsafe antibiotic drugs
Talk about what's going on with C # backstage GC?
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?
[leetcode ladder] linked list · 021 merge two ordered linked lists
mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
全志芯片bsp命名规则
[database] index
Mysql8.0 MHA to achieve high availability "MHA"
IJCAI2022开会了! 微软等《领域泛化Domain Generalization》教程
MPI学习笔记(二):矩阵相乘的两种实现方法
es6--解构赋值
若依如何解决导出使用下载插件出现异常?
五、品达通用权限系统__pd-tools-xxs(防跨站脚本攻击)
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (7) - Fiddler status panel -quickexec command line
如何用 Redis 实现分布式锁的?
【饭谈】细说:下克上,向上管理,向上画饼。
I/O案例实操