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

Replace with wildcards

parent bf69ef01
No related branches found
No related tags found
No related merge requests found
......@@ -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 '#';
......
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