From 560a476976d062f69dad16b763dbb9478d7c34e3 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 3 Oct 2018 14:58:22 +0100 Subject: [PATCH] Check onion only state --- src/freedombone-base-email | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 4cc14a215..272d02f74 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1015,7 +1015,9 @@ function email_smtp_proxy_through_isp { isp_smtp_password="$4" email_server_type='smarthost' - if [[ "$isp_smtp_domain" == 'off' || "$isp_smtp_domain" == '0' || "$isp_smtp_domain" == '' ]]; then + ONION_ONLY=$(grep "ONION_ONLY=" "/root/${PROJECT_NAME}.cfg" | awk -F '=' '{print $2}') + + if [[ "$isp_smtp_domain" == 'off' || "$isp_smtp_domain" == '0' || "$isp_smtp_domain" == '' || "$ONION_ONLY" != 'no' ]]; then { echo '# password file used when the local exim is authenticating to a remote'; echo '# host as a client.'; echo '#'; -- GitLab