1 ### router/200_exim4-config_primary
2 #################################
3 # This file holds the primary router, responsible for nonlocal mails
5 # deliver mail to the recipient if recipient domain is a domain we
6 # relay for. We do not ignore any target hosts here since delivering to
7 # a site local or even a link local address might be wanted here, and if
8 # such an address has found its way into the MX record of such a domain,
9 # the local admin is probably in a place where that broken MX record
12 dnslookup_relay_to_domains:
13 debug_print = "R: dnslookup_relay_to_domains for $local_part@$domain"
15 domains = ! +local_domains : +relay_to_domains
16 transport = remote_smtp
17 same_domain_copy_routing = yes
20 # deliver mail directly to the recipient. This router is only reached
21 # for domains that we do not relay for. Since we most probably can't
22 # have broken MX records pointing to site local or link local IP
23 # addresses fixed, we ignore target hosts pointing to these addresses.
26 debug_print = "R: dnslookup for $local_part@$domain"
28 domains = ! +local_domains
29 transport = remote_smtp
30 same_domain_copy_routing = yes
31 # ignore private rfc1918 and APIPA addresses
32 ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
33 172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\
37 # vim: set sts=2 expandtab sw=2 ai: