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.
8 debug_print = "R: manualroute from .onion to $local_part@$domain"
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
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>
19 # this catches the case where we're submitting mail
20 # from a regular email address where we don't need to
23 debug_print = "R: manualroute for $local_part@$domain"
25 domains = ! +local_domains
26 transport = remote_smtp_onion
28 route_list = *.onion localhost ; *.tor localhost
29 address_data = $smtp_active_hostname