作者 主題: enable mail quota and config mail quota limited in 2GB size for each user  (閱讀 640 次)

0 會員 與 1 訪客 正在閱讀本文。

edwardleung

  • 俺是博士!
  • *****
  • 文章數: 1135
    • 檢視個人資料
各位大大您們好,

測試系統是 Centos7.3 ( smtp postfix and dovecot imap ) + roundcube 1.2.3.
請問如何可以啟動 mail quota 和設定 mail quota 限制每用戶 2GB 空間?
有否架設文章可以分享經驗 ?

謝謝

edwardleung

  • 俺是博士!
  • *****
  • 文章數: 1135
    • 檢視個人資料
Hello,

in dovecont/conf.d/90-quota.conf:

plugin {
  quota = fs:User quota
  quota_rule = *:storage=1M
  quota_exceeded_message = Quota exceeded
}

in dovecont/conf.d/20-imap.conf:

protocol imap {
 mail_plugins = $mail_plugins imap_quota
}

in dovecont/conf.d/10-mail.conf:

mail_plugins = $mail_plugins quota

I tried to send mail within 3MB attachment, BUT there is no nay warning message display ?
would you mind to help ?

Thanks !