# Default values for dovecot. # This is a YAML-formatted file. # Declare variables to be passed into your templates. replicaCount: 1 persistence: enabled: true existingClaim: mailboxes tls: enabled: true existingSecret: mail.example.com-secret dovecot: image: repository: gitea.geekhome.org/ghp/dovecot tag: 2.3.16-4 pullPolicy: Always configmaps: dovecot: dovecot: | mail_max_userip_connections = 100 haproxy_trusted_networks = 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 haproxy_timeout = 30s dict { #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext } # Most of the actual configuration gets included below. The filenames are # first sorted by their ASCII value and parsed in that order. The 00-prefixes # in filenames are intended to make it easier to understand the ordering. !include conf.d/*.conf # A config file can also tried to be included without giving an error if # it's not found: !include_try local.conf ldap: | uris = ldaps://openldap.example.com dn = uid=ldapbind,ou=services,dc=example,dc=com dnpass = HARD_PASSWORD auth_bind = yes auth_bind_userdn = uid=%n,ou=users,dc=example,dc=com tls = no ldap_version = 3 base = ou=users,dc=example,dc=com deref = never scope = subtree user_filter = (&(objectClass=posixAccount)(mail=%u)) user_attrs = cn=home=/home/vmail/%$ pass_filter = (&(objectClass=posixAccount)(mail=%u)) pass_attrs = uid=user,userPassword=password confd: auth-ldap: | passdb { driver = ldap # Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext args = /etc/dovecot/ldap.conf } userdb { driver = ldap args = /etc/dovecot/ldap.conf } 10-auth: | auth_default_realm = example.com auth_username_format = %Lu auth_mechanisms = plain login 10-mail: | mail_location = maildir:%h namespace inbox { inbox = yes } mail_uid = vmail mail_gid = vmail first_valid_uid = 1000 last_valid_uid = 1000 first_valid_gid = 1000 last_valid_gid = 1000 protocol !indexer-worker { } mbox_write_locks = fcntl 10-master: | service imap-login { inet_listener imap { #port = 143 } inet_listener imaps { #port = 993 #ssl = yes } inet_listener imap_haproxy { port = 1109 haproxy = yes } inet_listener imaps_haproxy { port = 10993 ssl = yes haproxy = yes } } service pop3-login { inet_listener pop3 { #port = 110 } inet_listener pop3s { #port = 995 #ssl = yes } } service lmtp { inet_listener lmtp { port = 24 } unix_listener /var/spool/postfix/private/dovecot-lmtp { mode = 0600 group = postfix user = postfix } user = vmail } service imap { } service pop3 { } service auth { inet_listener { port = 12345 } unix_listener auth-userdb { mode = 0660 user = vmail #group = } # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0660 user = postfix group = postfix } } service auth-worker { } service dict { unix_listener dict { } } 10-ssl: | ssl = required ssl_cert =