作者 主題: dovecot quota 設定問題  (閱讀 413 次)

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

edwardleung

  • 俺是博士!
  • *****
  • 文章數: 1134
    • 檢視個人資料
dovecot quota 設定問題
« 於: 2017-02-05 15:33 »
各位大大您們好,

測試環境是 centos 7.3:

dovecot 設定:

90-quota.conf:

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

20-imap.conf:

protocol imap {
 mail_plugins = $mail_plugins imap_quota
}

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

mail_plugins = $mail_plugins quota

roundcube 已設定 imap debug :

[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] S: A0007 OK Fetch completed.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA] Logged in
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] C: A0003 LIST (SUBSCRIBED) "" "*"
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: * LIST (\Subscribed \NoInferiors \Marked) "/" Sent
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: A0003 OK List completed.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] C: A0004 STATUS INBOX (MESSAGES UNSEEN)
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: * STATUS INBOX (MESSAGES 11 UNSEEN 0)
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: A0004 OK Status completed.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] C: A0005 STATUS Sent (MESSAGES UNSEEN)
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: * STATUS Sent (MESSAGES 8 UNSEEN 0)
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: A0005 OK Status completed.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] C: A0008 GETQUOTAROOT INBOX
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] S: A0008 OK No quota.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] C: A0006 LOGOUT
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: * BYE Logging out
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [7283] S: A0006 OK Logout completed.
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] C: A0009 LOGOUT
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] S: * BYE Logging out
[05-Feb-2017 15:01:09 +0800]: <ae741tce> [DDFF] S: A0009 OK Logout completed.

測試寄出的郵件為3MB, 還可以接收該郵件, 但 Webmail 沒有提示關於 Quota warning 訊息...
可以幫忙?

謝謝

edwardleung

  • 俺是博士!
  • *****
  • 文章數: 1134
    • 檢視個人資料
Re: dovecot quota 設定問題
« 回覆 #1 於: 2017-02-05 16:16 »
您好,

剛試試以下設定:

quota = dirsize:User quota

再測試後好像成功...

謝謝