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

Clearnet email domains within webmail

parent 31f24997
No related branches found
No related tags found
No related merge requests found
...@@ -1242,6 +1242,14 @@ function install_web_admin_webmail { ...@@ -1242,6 +1242,14 @@ function install_web_admin_webmail {
chmod 0730 data temp chmod 0730 data temp
read_config_param DEFAULT_LANGUAGE read_config_param DEFAULT_LANGUAGE
read_config_param ONION_ONLY
if [[ "$ONION_ONLY" == 'no' ]]; then
read_config_param DEFAULT_DOMAIN_NAME
email_domain=$DEFAULT_DOMAIN_NAME
else
email_domain=$(cat /var/lib/tor/hidden_service_email/hostname)
fi
{ echo '<?php'; { echo '<?php';
echo ''; echo '';
...@@ -1272,7 +1280,7 @@ function install_web_admin_webmail { ...@@ -1272,7 +1280,7 @@ function install_web_admin_webmail {
echo "\$default_charset = 'iso-8859-1';"; echo "\$default_charset = 'iso-8859-1';";
echo "\$lossy_encoding = false;"; echo "\$lossy_encoding = false;";
echo ''; echo '';
echo "\$domain = '$(cat /var/lib/tor/hidden_service_email/hostname)';"; echo "\$domain = '$email_domain';";
echo "\$imapServerAddress = 'localhost';"; echo "\$imapServerAddress = 'localhost';";
echo "\$imapPort = 143;"; echo "\$imapPort = 143;";
echo "\$useSendmail = false;"; echo "\$useSendmail = false;";
......
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