#base_dir = /tmp/run/
auth_cache_size = 20M
auth_cache_ttl = 305 secs
auth_cache_negative_ttl = 5 secs
auth_verbose = yes
disable_plaintext_auth = no

first_valid_gid = 1000
first_valid_uid = 1000
imap_idle_notify_interval = 1 mins
log_path = /var/log/dovecot.log
mail_fsync = never
mail_location = dbox:~/dbox/%n
mail_plugins = zlib stats
mailbox_idle_check_interval = 1 mins
maildir_stat_dirs = yes
maildir_very_dirty_syncs = yes
mmap_disable = yes
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  type = private
}
passdb {
        driver = dict
        args = /etc/dovecot/dovecot-dict-auth.conf
}
userdb {
  driver = prefetch
}
userdb {
        driver = dict
        args = /etc/dovecot/dovecot-dict-auth.conf
}

plugin {
  zlib_save = bz2
  zlib_save_level = 9
}

protocols = imap
service auth {
  client_limit = 48000
  user = root
}
service imap-login {
  client_limit = 5000
  inet_listener imap {
    address = 127.0.0.1
    port = 143
  }
  inet_listener imaps {
    address = 127.0.0.1
    port = 993
  }
  process_limit = 3072
  process_min_avail = 4
  service_count = 0
  vsz_limit = 128 M
}
service imap {
  drop_priv_before_exec = yes
  executable = /etc/dovecot/postlogin.sh
  process_limit = 4096
  process_min_avail = 4
}
service pop3-login {
  client_limit = 5000
  inet_listener pop3 {
    address = 127.0.0.1
    port = 110
  }
  inet_listener pop3s {
    address = 127.0.0.1
    port = 995
  }
  process_limit = 3072
  process_min_avail = 4
  service_count = 0
  vsz_limit = 128 M
}
service pop3 {
  drop_priv_before_exec = yes
  process_limit = 4096
  process_min_avail = 4
}
shutdown_clients = no

protocol imap {
 login_greeting = POWER IMAP READY
 ssl_cert = </etc/ssl/certs/dovecot.imap.crt
 ssl_key = </etc/ssl/private/dovecot.imap.key
}

protocol pop3 {
 login_greeting = POWER POP3 READY
 ssl_cert = </etc/ssl/certs/dovecot.pop3.crt
 ssl_key = </etc/ssl/private/dovecot.pop3.key
}

verbose_proctitle = yes
protocol pop3 {
  mail_max_userip_connections = 10
  pop3_no_flag_updates = yes
  pop3_client_workarounds = outlook-no-nuls
  pop3_uidl_format = %f
  pop3_fast_size_lookups = yes
}
protocol imap {
  mail_max_userip_connections = 10
  mail_plugins = mail_log zlib notify
}
protocol lda {
  postmaster_address = postmaster@example.com
}

