2 ### router/420_exim4-config_hosted_aliases
3 #################################
5 # This router handles the local part in a case-insensitive way which
6 # satisfies the RFCs requirement that postmaster be reachable regardless
7 # of case. If you decide to handle /etc/aliases in a caseful way, you
8 # need to make arrangements for a caseless postmaster.
10 # hcoop-change: Custom rule that looks up the local_part and domain
11 # in /etc/aliases.hosted.
14 debug_print = "R: hosted_aliases for $local_part@$domain"
16 domains = +local_domains
19 data = ${lookup{$local_part@$domain}lsearch*@{/etc/aliases.hosted}}
20 .ifdef SYSTEM_ALIASES_USER
21 user = SYSTEM_ALIASES_USER
23 .ifdef SYSTEM_ALIASES_GROUP
24 group = SYSTEM_ALIASES_GROUP
26 .ifdef SYSTEM_ALIASES_FILE_TRANSPORT
27 file_transport = SYSTEM_ALIASES_FILE_TRANSPORT
29 .ifdef SYSTEM_ALIASES_PIPE_TRANSPORT
30 pipe_transport = SYSTEM_ALIASES_PIPE_TRANSPORT
32 .ifdef SYSTEM_ALIASES_DIRECTORY_TRANSPORT
33 directory_transport = SYSTEM_ALIASES_DIRECTORY_TRANSPORT