I've a Postfix / Dovecot server. It's running without issues. However, one specific account is facing issues continuesly.
Summarize of issues: - Webmail hangs (simple PHP opensource webmail) - can't add my account to most mobile clients (Outlook app on iPhone, MyMail etc) - Server connection issues on Outlook for PC and alot of strange errors (can't move items, directories etc)
I think, the reason is the size (18GB) of the mailbox. However, the server CPU and RAM looks okay.
My question: Is a Maildir of 18GB too large for IMAP? Or can I solve this with more server specifications or another software / tricks?
I don't think it's a matter of size, but a matter of the number of files in the Maildir. The performance of some very common file systems degrades rapidly when the number of files gets 'large.' What is the size of those directories?
Check the dovecot logs! Do the show any signs of problems? Any timeouts?
See: https://wiki2.dovecot.org/WhyDoesItNotWork
Dovecot usually indexes the mailbox (on access). This operation take a lot of time, especially with large mailboxes (like in your case); depending on the type of filesystem used, a stat() on the Maildir subdirectories cur/new/tmp can take a long time.
The time consuming indexing operation can be avoided by using dovecot's deliver instead of letting Postfix write the maildir directly. Thus, each delivery causes an instantaneous update of the index.
If you're using Dovecot's deliver you can choose mailbox types better suited for a large number of email, like mdbox - which even offers saving mail attachments to external files, which also allows single instance storage for them:
http://wiki2.dovecot.org/MailboxFormat/dbox