Where can I find tuning resources for postfix, saslauthd and courier [closed]
Solution 1:
There aren't really many tunables in courier - you can tune the underlying machine, not the software itself.
That being said, there are some things you can do to improve performance:
More RAM. I know you're planning to do that and I know it's not what you want to hear, but it's the single best bet on improving performance - both by allowing courier to keep more connections open (IMAP takes 512K up to 2M per connected client), and by allowing a bigger file system cache. Go 64-bit if possible and throw 8 or 16 GB at the mail server. RAM is cheap. Time is not.
Make sure you've mounted the file system hosting your maildirs with the
noatime
option. That supposedly interferes with themutt
mail client but in my experience has never, ever caused any problem. If you really must and run a newer kernel, you can userelatime
- butnoatime
improves performance a lot.Pick a good file system. ext3 will sooner rather than later show its limitations (abysmal performance with many files in the same directory, constant stalling due to fsync, etc.) I've used XFS for years (can't get people to archive their mails in subfolders and I've found XFS to be the only file system that's both able to easily handle tens of thousands of files in a directory and not prone to horrific slowdown over time (yes, ReiserFS, I'm looking at you.)
If you're using IMAP, limit the number of cached connection in your IMAP client configuration (in Thunderbird, you'll find that under Account Settings -> desired account -> Server Settings -> click on the Advanced button on the right -> set Maximum number of server connections to cache to 1 or 2, or at least something saner than the default 5.
If you're using IMAP through some webmail system or the other, please consider installing an IMAP proxy, otherwise you'll cause constant re-logins due to the nature of web applications. A package compatible with Courier is up-imapproxy.
Solution 2:
The following will get you started on tuning Postfix, unfortunately, I wasn't able to find any real good documentation on SaslAuthD or Courier.
Postfix Performance Tuning: http://www.postfix.org/TUNING_README.html
Solution 3:
I haven't run courier for a long time but it might be worth looking at dovecot, which I find to be quite lightweight for a POP3 & IMAP server.