Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 2.0.8: dovecot.conf
- # OS: Linux 2.6.34-gentoo-r12 i686 Gentoo Base System release 1.12.13 ext3
- listen=*
- auth_mechanisms = plain login
- auth_username_format = %Lu
- auth_worker_max_count = 10
- dict {
- acl = pgsql:/etc/dovecot/dovecot-dict-acl.conf
- quotadict = pgsql:/etc/dovecot/dovecot-dict-quota.conf
- }
- disable_plaintext_auth = no
- dotlock_use_excl = yes
- first_valid_gid = 65534
- login_greeting = Welcome to MHI "Belgorod City Hospital 2" IMAP/POP3 server.
- login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
- mail_location = maildir:/var/spool/mail/%d/%u:INDEX=/var/spool/mail/%d/%u
- mail_privileged_group = mail
- mail_plugins=$mail_plugins quota trash
- #login_process_size = 64
- ssl = yes
- namespace {
- inbox = yes
- location =
- prefix =
- separator = /
- type = private
- }
- namespace {
- list = children
- location = maildir:/var/spool/mail/%%d/%%u:INDEX=/var/spool/mail/%%d/shared/%%n
- prefix = Shared/%%u/
- separator = /
- subscriptions = no
- type = shared
- }
- passdb {
- args = /etc/dovecot/dovecot-sql.conf
- driver = sql
- }
- plugin {
- #acl = vfile
- #acl_shared_dict = proxy::acl
- #quota = dict:user::proxy::quotadict
- quota = dict:User quota::proxy::quotadict
- #quota_rule = dict:user::proxy::quotadict
- #user_query = SELECT home, uid, gid, 'dirsize:storage=' || quota_bytes AS quota FROM users WHERE userid = '%u'
- user_query = SELECT home, uid, gid, '*:bytes=' || quota_bytes AS quota FROM users WHERE userid = '%u'
- #user_query = SELECT home, uid, gid, '*:bytes=' || quota_bytes AS quota_rule FROM users WHERE userid = '%u'
- trash = /etc/dovecot/dovecot-trash.conf.ext
- }
- protocols = imap pop3
- protocol imap {
- # imap_max_line_length = 65536
- # mail_max_userip_connections = 32
- mail_plugins = $mail_plugins imap_quota
- # imap_logout_format = bytes=%i/%o
- }
- service auth {
- executable = /usr/libexec/dovecot/auth
- unix_listener /var/spool/postfix/private/auth {
- group = postfix
- mode = 0660
- user = postfix
- }
- unix_listener auth-master {
- mode = 0666
- }
- unix_listener auth-userdb {
- mode = 0600
- user = nobody
- }
- user = nobody
- vsz_limit = 64 M
- }
- service imap-login {
- client_limit = 120
- inet_listener imap {
- address = *
- }
- process_limit = 200
- process_min_avail = 10
- service_count = 1
- user = dovecot
- vsz_limit = 64 M
- }
- service imap {
- process_limit = 1000
- vsz_limit = 64 M
- }
- service pop3-login {
- client_limit = 120
- executable = /usr/libexec/dovecot/pop3-login
- inet_listener pop3 {
- address = *
- port = 110
- }
- process_limit = 200
- process_min_avail = 10
- service_count = 1
- user = dovecot
- vsz_limit = 64 M
- }
- service pop3 {
- executable = /usr/libexec/dovecot/pop3
- process_limit = 150
- vsz_limit = 64 M
- }
- service dict {
- unix_listener dict {
- mode = 0600
- user = nobody
- }
- }
- ssl_cert = </etc/letsencrypt/live/mail.gb2bel.ru/cert.pem
- ssl_key = </etc/letsencrypt/live/mail.gb2bel.ru/privkey.pem
- #ssl_ca = </etc/letsencrypt/live/mail.gb2bel.ru/chain.pem
- ssl_ca = </etc/letsencrypt/live/mail.gb2bel.ru/fullchain.pem
- #ssl_ca = </etc/postfix/ssl/201211-mail.gb2bel.ru/ca.crt
- #ssl_cert = </etc/postfix/ssl/201211-mail.gb2bel.ru/mail.gb2bel.ru.crt
- #ssl_key = </etc/postfix/ssl/201211-mail.gb2bel.ru/mail.gb2bel.ru.key
- userdb {
- args = /etc/dovecot/dovecot-sql.conf
- driver = sql
- }
- postmaster_address = postmaster@gb2bel.ru
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement