Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- base_dir = /var/run/dovecot/
- protocols = imap pop3 managesieve imaps pop3s
- listen = *
- disable_plaintext_auth = no
- shutdown_clients = yes
- log_path = /var/log/dovecot.log
- ssl = yes
- ssl_cert_file = /usr/local/dovecot/dovecot/etc/ssl/server.crt
- ssl_key_file = /usr/local/dovecot/dovecot/etc/ssl/server.key
- login_user = dovecot
- login_greeting = IMAP ready.
- login_trusted_networks = 127.0.0.1/8
- # Performance tuning
- login_process_size = 64
- login_process_per_connection = no
- login_max_processes_count = 256
- #login_max_connections = 128
- login_max_connections = 512
- verbose_proctitle = yes
- maildir_copy_with_hardlinks = yes
- maildir_copy_preserve_filename = yes
- mail_location = maildir:/imap/spool/%d/%1n/%n:INDEX=/imap/spool/%d/indexes/%1n/%n
- namespace private {
- separator = ^
- prefix =
- inbox = yes
- }
- mail_uid = vmail
- mail_gid = vmail
- mail_privileged_group = vmail
- protocol imap {
- login_executable = /usr/local/dovecot/dovecot/libexec/dovecot/imap-login
- mail_executable = /usr/local/dovecot/dovecot/libexec/dovecot/imap
- mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/imap/
- mail_plugins = quota imap_quota autocreate trash acl listescape
- mail_max_userip_connections = 500
- imap_idle_notify_interval = 120
- fsync_disable = yes
- imap_client_workarounds = outlook-idle netscape-eoh
- }
- protocol pop3 {
- login_executable = /usr/local/dovecot/dovecot/libexec/dovecot/pop3-login
- mail_executable = /usr/local/dovecot/dovecot/libexec/dovecot/pop3
- mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/pop3/
- fsync_disable = yes
- pop3_lock_session = yes
- # pop3_uidl_format = %v-%u
- mail_plugins = quota
- pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
- pop3_reuse_xuidl=yes # qpopper
- }
- protocol managesieve {
- login_executable = /usr/local/dovecot/managesieve-0.11/libexec/dovecot/managesieve-login
- mail_executable = /usr/local/dovecot/managesieve-0.11/libexec/dovecot/managesieve
- managesieve_logout_format = bytes ( in=%i : out=%o )
- }
- protocol lda {
- postmaster_address = sysop@foo
- hostname = imapserver
- mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/lda
- sendmail_path = /usr/sbin/sendmail
- rejection_subject = Rejected: %s
- rejection_reason = Your message to <%t> was automatically rejected:%n%r
- auth_socket_path = /var/run/dovecot/auth-master
- fsync_disable = no
- mail_plugins = quota acl sieve
- }
- auth_executable = /usr/local/dovecot/dovecot/libexec/dovecot/dovecot-auth
- auth_cache_size = 10485760
- auth_cache_negative_ttl = 3600
- auth_cache_ttl = 3600
- auth_process_size = 256
- auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
- auth_username_format = %Lu
- auth_verbose = yes
- auth_debug = yes
- auth_debug_passwords = no
- auth default {
- mechanisms = plain login
- passdb ldap {
- args = /usr/local/dovecot/dovecot/etc/conf.d/ldap.conf
- }
- #
- # userdb static {
- # args = uid=9140 gid=12002 home=/imap/foo/%1n/%n
- # }
- userdb ldap {
- args = /usr/local/dovecot/dovecot/etc/conf.d/ldap.conf
- }
- user = root
- socket listen {
- master {
- path = /var/run/dovecot/auth-master
- mode = 0600
- user = vmail
- group = vmail
- }
- client {
- path = /var/spool/postfix/private/auth
- mode = 0660
- user = postfix
- group = postdrop
- }
- }
- }
- dict {
- }
- plugin {
- acl = vfile
- acl_shared_dict = file:/imap/spool/%d/acl/shared-mailboxes.db
- acl = vfile:/imap/spool/%d/acl/dovecot-acls
- quota = maildir:User quota
- #quota_rule = *:storage=300MB
- # 10% of 1GB = 30MB
- quota_rule2 = Trash:storage=10%%
- # 20% of 1GB = 200MB
- quota_rule3 = Spam:storage=20%%
- trash = /usr/local/dovecot/dovecot/etc/conf.d/dovecot-trash.conf
- quota_warning = storage=80%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 80
- quota_warning2 = storage=90%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 90
- quota_warning3 = storage=95%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 95
- sieve = /imap/spool/%d/%1n/%n/sieve/default.sieve
- sieve_dir = /imap/spool/%d/%1n/%n/sieve
- sieve_extensions = +imapflags
- autocreate = Sent
- autocreate2 = Drafts
- autocreate3 = Trash
- autocreate4 = Spam
- autosubscribe = Sent
- autosubscribe2 = Drafts
- autosubscribe3 = Trash
- autosubscribe4 = Spam
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement