21 lines
541 B
Plaintext
21 lines
541 B
Plaintext
|
#!/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
|