酷!學園

技術討論區 => Linux 討論版 => 主題作者是: edwardleung 於 2017-02-04 16:05

主題: enable mail quota and config mail quota limited in 2GB size for each user
作者: edwardleung2017-02-04 16:05
各位大大您們好,

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

謝謝
主題: Re: enable mail quota and config mail quota limited in 2GB size for each user
作者: edwardleung2017-02-04 23:51
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 !