Change filenames

This commit is contained in:
Bob Mottram 2018-03-25 11:38:02 +01:00
parent f9079b5845
commit adf1c2aa66
1 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ function configure_email_onion {
echo "}"; } > /etc/exim4/perl-routines.pl echo "}"; } > /etc/exim4/perl-routines.pl
{ echo "ONION_RELAYDB=/etc/exim4/onionrelay.cdb"; { echo "ONION_RELAYDB=/etc/exim4/onionrelay.cdb";
echo "domainlist onion_relays = cdb;ONION_RELAYDB"; } > /etc/exim4/conf.d/main/01_exim4-config_onion echo "domainlist onion_relays = cdb;ONION_RELAYDB"; } > /etc/exim4/conf.d/main/48_exim4-config_onion_relays
{ echo "# send things over tor where we have an entry for it"; { echo "# send things over tor where we have an entry for it";
echo "onionrelays:"; echo "onionrelays:";
@ -183,11 +183,11 @@ function configure_email_onion {
echo " transport = onion_relay"; echo " transport = onion_relay";
echo " # get the automap IP for the onion address from the tor daemon"; echo " # get the automap IP for the onion address from the tor daemon";
echo " route_data = \${perl{onionLookup}{\${lookup{\$domain}cdb{ONION_RELAYDB}}}}"; echo " route_data = \${perl{onionLookup}{\${lookup{\$domain}cdb{ONION_RELAYDB}}}}";
echo " no_more"; } > /etc/exim4/conf.d/router/50_exim4-config-onion echo " no_more"; } > /etc/exim4/conf.d/router/50_exim4-config-onionrelays
{ echo "onion_relay:"; { echo "onion_relay:";
echo " driver = smtp"; echo " driver = smtp";
echo " socks_proxy = 127.0.0.1 port=9050"; } > /etc/exim4/conf.d/transport/50_exim4-config_onion echo " socks_proxy = 127.0.0.1 port=9050"; } > /etc/exim4/conf.d/transport/50_exim4-config_onion_relay
if ! grep -q "AutomapHostsOnResolve" /etc/tor/torrc; then if ! grep -q "AutomapHostsOnResolve" /etc/tor/torrc; then
echo 'AutomapHostsOnResolve 1' >> /etc/tor/torrc echo 'AutomapHostsOnResolve 1' >> /etc/tor/torrc