Unverified Commit 5e132f32 authored by torgiren's avatar torgiren
Browse files

add support for ldap - closes #61

Signed-off-by: torgiren's avatarMarcin Fabrykowski <git@fabrykowski.pl>
1 merge request!2add support for ldap - closes #61
Pipeline #567 passed with stage
in 11 seconds
Showing with 20 additions and 7 deletions
+20 -7
......@@ -30,8 +30,8 @@ spec:
name: vmail
volumes:
- name: dovecot-config
secret:
secretName: dovecot-conf
configMap:
name: dovecot-conf
- name: vmail
persistentVolumeClaim:
claimName: postfix-vmail
......@@ -6,10 +6,14 @@ data:
dovecot.conf: |
# 2.3.15 (0503334ab1): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.15 (e6a84e31)
# OS: Linux 5.14.18-300.fc35.x86_64 x86_64
# OS: Linux 5.14.18-300.fc35.x86_64 x86_64 btrfs
# Hostname: fee040f9de2e
first_valid_uid = 100
log_path = /dev/stdout
mail_debug = yes
mail_gid = 102
mail_location = maildir:/var/lib/vmail/%d/%u/
mail_uid = 101
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
mbox_write_locks = fcntl
......@@ -34,8 +38,8 @@ data:
prefix =
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
......@@ -45,6 +49,12 @@ data:
ssl_key = </etc/ssl/dovecot/server.key
ssl_prefer_server_ciphers = yes
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
dovecot-ldap.conf.ext: |
uris = {{ .Values.ldap.uri }}
auth_bind = yes
auth_bind_userdn = maildrop=%u,{{ .Values.ldap.base }}
base = {{ .Values.ldap.base }}
user_filter = (&(objectClass=postfixUser)(maildrop=%u))
ldap:
uri: ldap://example.com
base: dc=example,dc=com
dovecot:
image: registry.gitlab.exphost.pl/exphost/dovecot
tag: v0.1.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment