[Dovecot] Dovecot optimisation

Proskurin Kirill proskurin-kv at fxclub.org
Tue Jan 20 13:05:25 EET 2009


Charles Marcus wrote:
> On 1/20/2009 4:10 AM, Proskurin Kirill wrote:
>> We use Dell 2950 with 4GbRAM at FreeBSD-7.0-p9 - load avarage never
>> upper a 0.5
> 
> You don't give dovecot version... don't you think that might be important?
> 
>> We have about 500 clients most of it use Outlook 2007 via IMAP.
>>
>> We run in this problems:
>> 1) Sync of imap folder is really slow(I think it is Outlook problem)
> 
> Yes, Outlook is a notoriously bad IMAP client, but 2007 is supposed to
> be a bit better behaved than previous versions...
> 
>> *dovecot -n don`t give full conf so i use this:*
> 
> If dovecot -n doesn't give expected results, that may be a clue...
> doevecot -n gives the config that the running version of dovecot is
> actually USING - so if it contradcits what you expect, then you are most
> likely editing the wrong config file.
> 
> Please provide FULL dovecot -n output always, then copy/paste the stuff
> that isn't included (like the contents of dovecot-sql.conf if using it,
> etc)...
> 

Sorry - you a right.
But dovecot -n don`t show things like a login_max_processes_count and 
other thing what I think must be a bootle neck.

mail# dovecot -n
# 1.1.8: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.0-RELEASE-p9 i386  ufs
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot.log
protocols: imap imaps pop3 pop3s managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_ca_file: /usr/local/etc/certs/GlobalSignCA.crt
ssl_cert_file: /usr/local/etc/certs/fxclub_org.crt
ssl_key_file: /usr/local/etc/certs/fxclub_org.key
ssl_cipher_list: ALL:!LOW:!SSLv2
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
login_greeting_capability(managesieve): no
login_processes_count: 10
mail_max_userip_connections(default): 10
mail_max_userip_connections(imap): 10
mail_max_userip_connections(pop3): 3
mail_max_userip_connections(managesieve): 10
verbose_proctitle: yes
first_valid_gid: 0
mail_privileged_group: mail
mail_uid: dmail
mail_gid: dmail
mail_location(default): maildir:/var/spool/dovecot/domains/%d/%n/
mail_location(imap): maildir:/var/spool/dovecot/domains/%d/%n/
mail_location(pop3): maildir:/var/spool/dovecot/domains/%d/%n/
mail_location(managesieve):
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota autocreate
mail_plugins(imap): quota imap_quota autocreate
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail tb-extra-mailbox-sep
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): %
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): ~/.dovecot.sieve
auth default:
   mechanisms: plain login
   user: dovecot-auth
   username_format: %Lu
   verbose: yes
   worker_max_count: 100
   passdb:
     driver: ldap
     args: /usr/local/etc/dovecot-ldap.conf
   userdb:
     driver: ldap
     args: /usr/local/etc/dovecot-ldap.conf
   socket:
     type: listen
     client:
       path: /var/run/dovecot/auth-client
       mode: 432
       user: exim
     master:
       path: /var/run/dovecot/auth-master
       mode: 384
       user: dmail
plugin:
   quota: maildir
   quota_rule: *:storage=1024M
   quota_rule2: Trash:storage=1256M
   quota_rule3: SPAM:ignore
   quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
   quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
   autocreate: Trash
   autocreate2: Sent
   autocreate3: Spam
   autosubscribe: Trash
   autosubscribe2: Sent
   autosubscribe3: Spam

mail# grep -v '#' /usr/local/etc/dovecot-ldap.conf  | egrep -v '^$'
hosts = 127.0.0.1
dn = cn=root,dc=CAS
dnpass = secret
tls = no
auth_bind = no
ldap_version = 3
base = dc=CAS
deref = never
scope = subtree
user_attrs = mailQuotaSize=quota_rule=*:storage=%$M 
,=uid=1002,=gid=1002,=home=/var/spool/dovecot/domains/%d/%n
user_filter = (&(objectClass=mailUser)(mail=%u))
pass_attrs = userPassword=password
pass_filter = (&(objectClass=mailUser)(mail=%u))
default_pass_scheme = CRYPT


-- 
Best regards,
Proskurin Kirill


More information about the dovecot mailing list