52a8dc24e60df4260a3892392b14813978f45b16
[matthijs/servers/drsnuggles.git] / etc / exim4 / conf.d / router / 500_exim4-config_hubuser
1
2 ### router/500_exim4-config_hubuser
3 #################################
4
5 .ifdef DCconfig_satellite
6 # This router is only used for configtype=satellite.
7 # It takes care to route all mail targetted to <somelocaluser@this.machine>
8 # to the host where we read our mail
9 #
10 hub_user:
11   debug_print = "R: hub_user for $local_part@$domain"
12   driver = redirect
13   domains = +local_domains
14   data = ${local_part}@DCreadhost
15   check_local_user
16
17 # Grab the redirected mail and deliver it.
18 # This is a duplicate of the smarthost router, needed because
19 # DCreadhost might end up as part of +local_domains
20 hub_user_smarthost:
21   debug_print = "R: hub_user_smarthost for $local_part@$domain"
22   driver = manualroute
23   domains = DCreadhost
24   transport = remote_smtp_smarthost
25   route_list = * DCsmarthost byname
26   host_find_failed = defer
27   same_domain_copy_routing = yes
28   check_local_user
29 .endif
30
31