]> pere.pagekite.me Git - exim4-smtorp.git/blob - exim4-conf.d/router/100_smtorp
Syslog problems.
[exim4-smtorp.git] / exim4-conf.d / router / 100_smtorp
1 # tor stuff first
2 #
3 # if we're submitting mail *from* a .tor/.onion address,
4 # make sure any header lines that may give us away is
5 # stripped out, and add a new, cryptic Message-ID.
6 # In address_data we store the name we should HELO as.
7 tor_to_any:
8 debug_print = "R: manualroute from .onion to $local_part@$domain"
9 driver = manualroute
10 domains = ! +local_domains
11 condition = ${if match {$sender_address_domain}{\N.*\.(onion|tor)$\N}}
12 address_data = $sender_address_domain
13 transport = remote_smtp_onion
14 self = send
15 route_list = * localhost
16 headers_remove = Received:Message-ID:X-Mailer:User-Agent
17 headers_add = Message-ID: <${lc:${sha1:$message_id}}@$sender_address_domain>
18
19 # this catches the case where we're submitting mail
20 # from a regular email address where we don't need to
21 # rewrite any headers
22 any_to_tor:
23 debug_print = "R: manualroute for $local_part@$domain"
24 driver = manualroute
25 domains = ! +local_domains
26 transport = remote_smtp_onion
27 self = send
28 route_list = *.onion localhost ; *.tor localhost
29 address_data = $smtp_active_hostname