Track alternatives, init.d, rcN.d, and much more
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / router / 450_exim4-config_hosted_aliases
CommitLineData
cdc4389f 1
2### router/420_exim4-config_hosted_aliases
3#################################
4
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.
9
10# hcoop-change: Custom rule that looks up the local_part and domain
11# in /etc/aliases.hosted.
12
13hosted_aliases:
14 debug_print = "R: hosted_aliases for $local_part@$domain"
15 driver = redirect
16 domains = +local_domains
17 allow_fail
18 allow_defer
bb323bec 19 data = ${lookup{$local_part@$domain}lsearch*@{/etc/aliases.hosted}}
cdc4389f 20 .ifdef SYSTEM_ALIASES_USER
21 user = SYSTEM_ALIASES_USER
22 .endif
23 .ifdef SYSTEM_ALIASES_GROUP
24 group = SYSTEM_ALIASES_GROUP
25 .endif
26 .ifdef SYSTEM_ALIASES_FILE_TRANSPORT
27 file_transport = SYSTEM_ALIASES_FILE_TRANSPORT
28 .endif
29 .ifdef SYSTEM_ALIASES_PIPE_TRANSPORT
30 pipe_transport = SYSTEM_ALIASES_PIPE_TRANSPORT
31 .endif
32 .ifdef SYSTEM_ALIASES_DIRECTORY_TRANSPORT
33 directory_transport = SYSTEM_ALIASES_DIRECTORY_TRANSPORT
34 .endif