|
|
|
|
174
|
echo "}"; } > /etc/exim4/perl-routines.pl
|
174
|
echo "}"; } > /etc/exim4/perl-routines.pl
|
175
|
|
175
|
|
176
|
{ echo "ONION_RELAYDB=/etc/exim4/onionrelay.cdb";
|
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
|
{ echo "# send things over tor where we have an entry for it";
|
179
|
{ echo "# send things over tor where we have an entry for it";
|
180
|
echo "onionrelays:";
|
180
|
echo "onionrelays:";
|
|
|
|
|
183
|
echo " transport = onion_relay";
|
183
|
echo " transport = onion_relay";
|
184
|
echo " # get the automap IP for the onion address from the tor daemon";
|
184
|
echo " # get the automap IP for the onion address from the tor daemon";
|
185
|
echo " route_data = \${perl{onionLookup}{\${lookup{\$domain}cdb{ONION_RELAYDB}}}}";
|
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
|
{ echo "onion_relay:";
|
188
|
{ echo "onion_relay:";
|
189
|
echo " driver = smtp";
|
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
|
if ! grep -q "AutomapHostsOnResolve" /etc/tor/torrc; then
|
192
|
if ! grep -q "AutomapHostsOnResolve" /etc/tor/torrc; then
|
193
|
echo 'AutomapHostsOnResolve 1' >> /etc/tor/torrc
|
193
|
echo 'AutomapHostsOnResolve 1' >> /etc/tor/torrc
|