[Dovecot] quota reporting and mail.app
Hi everyone.
I can't get mail.app to report back correct quota information using mail.app and dovecot (though it works with courier-imap).
I am looking at migrating away from courier-imap to dovecot but this issue is something I need to have resolved <somehow>.
Thunderbird is fine and reports back good info on either connection.
I am off to read RFCs (can't I just read the sendmail book again? Might be easier...) to see what should really be done.
Courier:
[4:17pm] 341 [~]:gold% telnet imap-server 143 Trying 216.250.xxx.xxx... Connected to imap-server. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information. . login testaccount@domain.com passwordsRfun . OK LOGIN Ok. . GETQUOTAROOT "INBOX"
- QUOTAROOT "INBOX" "ROOT"
- QUOTA "ROOT" (STORAGE 14 665600) . OK GETQUOTAROOT Ok. . logout
- BYE Courier-IMAP server shutting down . OK LOGOUT completed Connection closed by foreign host.
Dovecot:
[4:17pm] 342 [~]:gold% telnet imap-server 1143 Trying 216.250.xxx.xxx... Connected to imap-server. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. . login testaccount@domain.com passwordsRfun . OK Logged in. . GETQUOTAROOT "INBOX"
- QUOTAROOT "INBOX" ""
- QUOTA "" (STORAGE 13 665600) . OK Getquotaroot completed. . logout
- BYE Logging out . OK Logout completed. Connection closed by foreign host.
-- Mike Horwath drechsau@iphouse.net ipHouse - Welcome home!
If I remember right, this is a known issue, where Mail.app won't report the quota when QUOTAROOT is "". We've found no fix for it here as it seems to be a Mail.app issue.
Rich
Mike Horwath wrote:
Hi everyone.
I can't get mail.app to report back correct quota information using mail.app and dovecot (though it works with courier-imap).
I am looking at migrating away from courier-imap to dovecot but this issue is something I need to have resolved <somehow>.
Thunderbird is fine and reports back good info on either connection.
I am off to read RFCs (can't I just read the sendmail book again? Might be easier...) to see what should really be done.
Courier:
[4:17pm] 341 [~]:gold% telnet imap-server 143 Trying 216.250.xxx.xxx... Connected to imap-server. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information. . login testaccount@domain.com passwordsRfun . OK LOGIN Ok. . GETQUOTAROOT "INBOX"
- QUOTAROOT "INBOX" "ROOT"
- QUOTA "ROOT" (STORAGE 14 665600) . OK GETQUOTAROOT Ok. . logout
- BYE Courier-IMAP server shutting down . OK LOGOUT completed Connection closed by foreign host.
Dovecot:
[4:17pm] 342 [~]:gold% telnet imap-server 1143 Trying 216.250.xxx.xxx... Connected to imap-server. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. . login testaccount@domain.com passwordsRfun . OK Logged in. . GETQUOTAROOT "INBOX"
- QUOTAROOT "INBOX" ""
- QUOTA "" (STORAGE 13 665600) . OK Getquotaroot completed. . logout
- BYE Logging out . OK Logout completed. Connection closed by foreign host.
--
Rich Sandberg richs@whidbey.net Whidbey Telecom Network Operations
On Wed, Sep 19, 2007 at 02:59:18PM -0700, Rich at Whidbey Telecom wrote:
If I remember right, this is a known issue, where Mail.app won't report the quota when QUOTAROOT is "". We've found no fix for it here as it seems to be a Mail.app issue.
That's my guess as well, but after checking another IMAP server (Communigate Pro), it returns a filled in string as well (#Account).
I don't have any UW-imap servers to touch, though :(
So, Courier-IMAP and Communigate Pro both return a filled in string (though values are different), and Dovecot does not.
<back to RFC hunting>
-- Mike Horwath drechsau@iphouse.net ipHouse - Welcome home!
On Wed, 19 Sep 2007, Mike Horwath wrote:
On Wed, Sep 19, 2007 at 02:59:18PM -0700, Rich at Whidbey Telecom wrote:
If I remember right, this is a known issue, where Mail.app won't report the quota when QUOTAROOT is "". We've found no fix for it here as it seems to be a Mail.app issue.
That's my guess as well, but after checking another IMAP server (Communigate Pro), it returns a filled in string as well (#Account).
I don't have any UW-imap servers to touch, though :(
So, Courier-IMAP and Communigate Pro both return a filled in string (though values are different), and Dovecot does not.
<back to RFC hunting>
What's to hunt?
http://tools.ietf.org/html/rfc2087#section-4.3
RFC 2087 is the IMAP4 QUOTA extension. Section 4.3 has a pretty clear example of a GETQUOTAROOT command and its response. Dovecot's response is nearly verbatim.
As Rich mentioned, it appears to be a Mail.app issue with the empty-string QUOTAROOT name.
There's a FIXME in the dovecot source regarding this:
root = quota_root_init(setups[0], ""); /* FIXME: name? */
See attached patch (against 1.0.3, but from hg.dovecot.org, seems to still be valid) for a workaround. It causes dovecot to use a default QUOTAROOT name of "DEFAULT". [ I left the /*FIXME*/, since I'm not Timo. :-) ]
Best, Ben
On Wed, 2007-09-19 at 18:54 -0400, Benjamin R. Haskell wrote:
There's a FIXME in the dovecot source regarding this:
root = quota_root_init(setups[0], ""); /* FIXME: name? */
I used an empty name because some other server did the same thing. Anyway quota-rewrite patch and v1.1 support naming quota roots in config file.
On Thu, Sep 20, 2007 at 05:10:18PM +0300, Timo Sirainen wrote:
On Wed, 2007-09-19 at 18:54 -0400, Benjamin R. Haskell wrote:
There's a FIXME in the dovecot source regarding this:
root = quota_root_init(setups[0], ""); /* FIXME: name? */
I used an empty name because some other server did the same thing. Anyway quota-rewrite patch and v1.1 support naming quota roots in config file.
Cool!
This is production stuff so I will hold off on 1.1 <anything> until later.
-- Mike Horwath drechsau@iphouse.net ipHouse - Welcome home!
On Wed, Sep 19, 2007 at 06:54:39PM -0400, Benjamin R. Haskell wrote:
As Rich mentioned, it appears to be a Mail.app issue with the empty-string QUOTAROOT name.
There's a FIXME in the dovecot source regarding this:
root = quota_root_init(setups[0], ""); /* FIXME: name? */
See attached patch (against 1.0.3, but from hg.dovecot.org, seems to still be valid) for a workaround. It causes dovecot to use a default QUOTAROOT name of "DEFAULT". [ I left the /*FIXME*/, since I'm not Timo. :-) ]
Interesting, thanks!
-- Mike Horwath drechsau@iphouse.net ipHouse - Welcome home!
"RS" == Rich at Whidbey Telecom richs@whidbey.net writes:
RS> If I remember right, this is a known issue, where Mail.app won't
RS> report the quota when QUOTAROOT is "". We've found no fix for it
RS> here as it seems to be a Mail.app issue.
Our local Mac expert here informs me that this problem is fixed in Leopard.
participants (5)
-
Benjamin R. Haskell
-
Mike Horwath
-
pod
-
Rich at Whidbey Telecom
-
Timo Sirainen