mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
52c4582f7b
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
12 lines
300 B
Bash
12 lines
300 B
Bash
#!/bin/bash
|
|
|
|
function _setup_oauth2() {
|
|
_log 'debug' 'Setting up OAUTH2'
|
|
|
|
# Enable OAuth2 PassDB (Authentication):
|
|
sedfile -i -e '/\!include auth-oauth2\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf
|
|
_replace_by_env_in_file 'OAUTH2_' '/etc/dovecot/dovecot-oauth2.conf.ext'
|
|
|
|
return 0
|
|
}
|