diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-05-01 01:33:35 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-05-01 01:33:35 -0700 |
commit | bbad09e2b15eeca86f83a9d2a97449baf71e326f (patch) | |
tree | 9d10c3ec94ae11a7cd28131bbcf5d553245006ec /playbooks/roles/mail/templates/user-patches.sh.j2 | |
download | mmt-infra-bbad09e2b15eeca86f83a9d2a97449baf71e326f.tar.gz mmt-infra-bbad09e2b15eeca86f83a9d2a97449baf71e326f.zip |
init
Diffstat (limited to 'playbooks/roles/mail/templates/user-patches.sh.j2')
-rw-r--r-- | playbooks/roles/mail/templates/user-patches.sh.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/playbooks/roles/mail/templates/user-patches.sh.j2 b/playbooks/roles/mail/templates/user-patches.sh.j2 new file mode 100644 index 0000000..6845563 --- /dev/null +++ b/playbooks/roles/mail/templates/user-patches.sh.j2 @@ -0,0 +1,20 @@ +#!/bin/bash + +postconf -e 'smtpd_sasl_type = dovecot' +postconf -e 'smtpd_sasl_path = /dev/shm/sasl-auth.sock' +postconf -e 'smtpd_sasl_auth_enable = yes' +postconf -e 'broken_sasl_auth_clients = yes' + +echo 'auth_username_format = %Ln' >> /etc/dovecot/conf.d/10-auth.conf + +echo 'username_format = %Ln' >> /etc/dovecot/dovecot-oauth2.conf.ext + +echo "passdb { + driver = ldap + args = /etc/dovecot/dovecot-ldap.conf.ext +} + +userdb { + driver = static + args = uid=5000 gid=5000 home=/var/mail/%u +}" > /etc/dovecot/conf.d/auth-ldap.conf.ext |