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