Skip to content
Snippets Groups Projects
Commit d631d79e authored by Bob Mottram's avatar Bob Mottram
Browse files

Add plain saslauthd server

parent c068d9ca
No related branches found
No related tags found
No related merge requests found
......@@ -1813,6 +1813,21 @@ function exim_enable_tls {
else
sed -i "s|MAIN_TLS_CERTIFICATE = /etc/letsencrypt.*|MAIN_TLS_CERTIFICATE = /etc/letsencrypt/live/$(hostname)/fullchain.pem|g" $exim_tls_config_file
fi
exim_sasl_file=/etc/exim4/conf.d/auth/30_exim4-config_examples
if grep -q '# plain_saslauthd_server:' $exim_sasl_file; then
{ echo '';
echo 'plain_saslauthd_server:';
echo ' driver = plaintext';
echo ' public_name = PLAIN';
echo " server_condition = \${if saslauthd{{\$auth2}{\$auth3}}{1}{0}}";
echo " server_set_id = \$auth2";
echo ' server_prompts = :';
echo ' .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS';
echo " server_advertise_condition = \${if eq{\$tls_in_cipher}{}{}{*}}";
echo ' .endif'; } >> $exim_sasl_file
sed -i '/# plain_saslauthd_server:/d' $exim_sasl_file
fi
}
function install_email {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment