PDA

View Full Version : performance tuning dovecot



davidb
09-08-2011, 02:12 PM
Ok.. so I store my user home dirs on NFS storage and need to do some serious performance tuning of dovecot for IMAP.

I have 1 particular user account with over 100 email accounts and they are constantly having issues when connecting. From roundcube they get logged out. Roundcube starts giving internal server errors (roundcube log shows IMAP error), etc.

My best guess is that dovecot needs to be tuned up, probably including using auth_cache.

Has anyone done this and would you be willing to share your config file?

Here's my current config. Thoughts and recommendations are greatly coveted.

## Dovecot 2.0 configuration file
mail_nfs_storage = yes
dotlock_use_excl = yes
mail_nfs_index = no

#IPv4 - need lots of user connections to allow for multiple device/system users
listen = *
mail_max_userip_connections=60
#IPv4 and IPv6:
#listen = *, ::

auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@&
auth_verbose = no
disable_plaintext_auth = no
login_greeting = Dovecot DA ready.
mail_access_groups = mail
default_login_user = dovecot
mail_location = maildir:~/Maildir
maildir_very_dirty_syncs=yes
maildir_copy_with_hardlinks=yes
passdb {
driver = shadow
}
passdb {
args = username_format=%n /etc/virtual/%d/passwd
driver = passwd-file
}
protocols = imap pop3
service auth {
user = root
}
service imap-login {
service_count = 0
vsz_limit = 128M
process_min_avail = 16
user = dovecot
}
service pop3-login {
process_min_avail = 16
user = dovecot
}
ssl_cert = </etc/httpd/conf/ssl.crt/server.crt
ssl_cipher_list = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
ssl_key = </etc/httpd/conf/ssl.key/server.key
userdb {
driver = passwd
}
userdb {
args = username_format=%n /etc/virtual/%d/passwd
driver = passwd-file
}
verbose_proctitle = yes
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv

mr.applesauce
09-09-2011, 07:36 AM
you know nfs is insecure right?

davidb
09-09-2011, 07:40 AM
Not so insecure when you have proper networking, firewall policies and such in place.

mr.applesauce
09-09-2011, 10:46 AM
"roundcube log shows IMAP error"

What imap error do you get?

davidb
09-09-2011, 12:05 PM
would love to tell you, but I can find nothing in the dovecot logs to indicate an error. I am going through the system tuning everything possible in the roundcube path to try and figure out where the problem lies.

dvnscr
09-21-2011, 05:34 AM
try to increase log level from 1 to 8 in roundcube and read logs.