2 # router/150_exim4-config_hubbed_hosts
3 #################################
5 # route specific domains manually.
7 # The most common application of this router is to handle relaying to nonlocal
8 # domains that the local host is primary MX for. That means that local
9 # information needs to be present for a domain to be handled correctly.
11 # That information is put into the optional file /etc/exim4/hubbed_hosts
12 # which contains key-value pairs of domain pattern and route data.
14 # foo.example: internal.mail.example.com
15 # bar.example: 192.168.183.3
17 # will cause mail for foo.example to be sent to the host
18 # internal.mail.example (IP address derived from A record only), and
19 # mail to bar.example to be sent to 192.168.183.3.
21 # If the file /etc/exim4/hubbed_hosts does not exist, this router is a
25 debug_print = "R: hubbed_hosts for $domain"
27 domains = "${if exists{CONFDIR/hubbed_hosts}\
28 {partial-lsearch;CONFDIR/hubbed_hosts}\
30 route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}
31 transport = remote_smtp