diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 9d550b397c52deef10abfee040a06ddd402f2798..8c409cdc52153c2a1087c5a72e5a91f9e30c6d28 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1042,6 +1042,14 @@ function email_smtp_proxy_through_isp { if [ ! "$isp_smtp_password" ]; then return fi + if [[ "$isp_smtp_domain" == 'mail.'* ]]; then + # shellcheck disable=SC2001 + isp_smtp_domain=$(echo "$isp_smtp_domain" | sed 's|mail.|*.|g') + fi + if [[ "$isp_smtp_domain" == 'smtp.'* ]]; then + # shellcheck disable=SC2001 + isp_smtp_domain=$(echo "$isp_smtp_domain" | sed 's|smtp.|*.|g') + fi { echo '# password file used when the local exim is authenticating to a remote'; echo '# host as a client.'; echo '#';