Unable to Browse Mail Subfolders in iOS Clients with Dovecot Maildir
If you have recently updated your mail server to Debian 11 (Bullseye) and are experiencing issues with browsing mail subfolders in iOS clients using Dovecot Maildir, you are not alone. Many users have reported this issue, which seems to have arisen after the update.
Context
The Dovecot IMAP server is a popular choice for Linux-based mail servers due to its stability, security, and flexibility. The Maildir format is a widely used standard for storing email messages on disk. When using Dovecot with Maildir, each email message is stored as a separate file in a maildir structure, allowing for efficient and reliable email storage and retrieval.
However, some users have reported issues with iOS clients (such as the Mail app on iPhones and iPads) when browsing mail subfolders after updating their mail server to Debian 11 and using Dovecot Maildir. Specifically, the subfolders appear empty or inaccessible in the iOS Mail app.
Key Concepts
The issue appears to be related to a change in the way Dovecot handles subfolders in Maildir format. In previous versions of Dovecot, subfolders were stored as directories within the Maildir directory. However, in Dovecot 2.3.x (which is included in Debian 11), subfolders are stored as files with a special naming convention.
This change in behavior can cause issues with some iOS clients, which may not be able to properly interpret the new naming convention for subfolders. As a result, the subfolders may appear empty or inaccessible in the iOS Mail app.
Resolution
Fortunately, there is a workaround for this issue. You can configure Dovecot to use the old method of storing subfolders as directories within the Maildir directory. This can be done by adding the following line to your Dovecot configuration file (usually located at /etc/dovecot/dovecot.conf):
mail_location = maildir:~/Maildir
This line tells Dovecot to store mail in the Maildir format, but to use directories for subfolders instead of the new naming convention. After making this change, you will need to restart Dovecot for the changes to take effect.
Once Dovecot has been restarted, you should be able to browse mail subfolders in iOS clients without issues. However, it is important to note that this workaround may have performance implications, as storing subfolders as directories can be less efficient than using the new naming convention.
References
- Dovecot maildir format documentation: https://doc.dovecot.org/configuration_manual/mail_location/
- Dovecot subfolders documentation: https://doc.dovecot.org/configuration_manual/namespace/
- Debian 11 release notes: https://www.debian.org/releases/bullseye/amd64/release-notes/index.html#mail-server
This article was written based on user reports and research. While we strive to provide accurate and up-to-date information, we cannot guarantee the accuracy or completeness of this article. Please consult official documentation and support resources for the most accurate information.