1ae72b6fcd0aa06565df36c0a613d28a4ef25e1e
[hcoop/config/exim.git] / conf.d / router / 150_exim4-config_hubbed_hosts
1
2 # router/150_exim4-config_hubbed_hosts
3 #################################
4
5 # route specific domains manually.
6 #
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.
10 #
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.
13 #
14 # foo.example: internal.mail.example.com
15 # bar.example: 192.168.183.3
16 #
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.
20 #
21 # If the file /etc/exim4/hubbed_hosts does not exist, this router is a
22 # no-op.
23
24 hubbed_hosts:
25 debug_print = "R: hubbed_hosts for $domain"
26 driver = manualroute
27 domains = "${if exists{CONFDIR/hubbed_hosts}\
28 {partial-lsearch;CONFDIR/hubbed_hosts}\
29 fail}"
30 route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}
31 transport = remote_smtp