aboutsummaryrefslogtreecommitdiff
path: root/app/email
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-09-14 11:33:29 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-09-14 11:33:29 +0200
commita2a25e2ea41a4ee24440638c754966a56f8ca958 (patch)
treeb288c45faa7ab28b7d79dcbc941d0a928f92443e /app/email
parente74bda617c07a13c84add36edc11ac4d257addbe (diff)
downloadinfrastructure-a2a25e2ea41a4ee24440638c754966a56f8ca958.tar.gz
infrastructure-a2a25e2ea41a4ee24440638c754966a56f8ca958.zip
Use `cn` instead of `mail` to store emails
Diffstat (limited to 'app/email')
-rw-r--r--app/email/config/dovecot/dovecot-ldap.conf.tpl2
-rw-r--r--app/email/deploy/email.hcl2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/email/config/dovecot/dovecot-ldap.conf.tpl b/app/email/config/dovecot/dovecot-ldap.conf.tpl
index 9fb1ea6..a8bd72a 100644
--- a/app/email/config/dovecot/dovecot-ldap.conf.tpl
+++ b/app/email/config/dovecot/dovecot-ldap.conf.tpl
@@ -5,4 +5,4 @@ base = dc=deuxfleurs,dc=fr
scope = subtree
user_filter = (&(mail=%u)(&(objectClass=inetOrgPerson)(memberOf=cn=email,ou=groups,dc=deuxfleurs,dc=fr)))
pass_filter = (&(mail=%u)(&(objectClass=inetOrgPerson)(memberOf=cn=email,ou=groups,dc=deuxfleurs,dc=fr)))
-user_attrs = mail=/var/mail/%{ldap:mail}
+user_attrs = mail=/var/mail/%{ldap:cn}
diff --git a/app/email/deploy/email.hcl b/app/email/deploy/email.hcl
index 6b0e9c5..d3dab3d 100644
--- a/app/email/deploy/email.hcl
+++ b/app/email/deploy/email.hcl
@@ -37,7 +37,7 @@ job "email" {
volumes = [
"secrets/ssl/certs:/etc/ssl/certs",
"secrets/ssl/private:/etc/ssl/private",
- "secrets/conf/dovecot-ldap.conf:/etc/dovecot/dovecot-ldap.conf",
+ "secrets/conf/dovecot-ldap.conf:/etc/dovecot/dovecot-ldap.conf",
"/mnt/glusterfs/email/mail:/var/mail/",
]
}