2 ### router/400_exim4-config_system_aliases
3 #################################
5 # This router handles aliasing using a traditional /etc/aliases file.
7 ##### NB You must ensure that /etc/aliases exists. It used to be the case
8 ##### NB that every Unix had that file, because it was the Sendmail default.
9 ##### NB These days, there are systems that don't have it. Your aliases
10 ##### NB file should at least contain an alias for "postmaster".
12 # This router handles the local part in a case-insensitive way which
13 # satisfies the RFCs requirement that postmaster be reachable regardless
14 # of case. If you decide to handle /etc/aliases in a caseful way, you
15 # need to make arrangements for a caseless postmaster.
17 # Delivery to arbitrary directories, files, and piping to programs in
18 # /etc/aliases is disabled per default.
19 # If that is a problem for you, see
20 # /usr/share/doc/exim4-base/README.Debian.gz
21 # for explanation and some workarounds.
23 # hcoop-change: Look up the local_part and domain, not just the
27 debug_print = "R: system_aliases for $local_part@$domain"
29 domains = +local_domains
32 data = ${lookup{$local_part@$domain}lsearch{/etc/aliases}}
33 .ifdef SYSTEM_ALIASES_USER
34 user = SYSTEM_ALIASES_USER
36 .ifdef SYSTEM_ALIASES_GROUP
37 group = SYSTEM_ALIASES_GROUP
39 .ifdef SYSTEM_ALIASES_FILE_TRANSPORT
40 file_transport = SYSTEM_ALIASES_FILE_TRANSPORT
42 .ifdef SYSTEM_ALIASES_PIPE_TRANSPORT
43 pipe_transport = SYSTEM_ALIASES_PIPE_TRANSPORT
45 .ifdef SYSTEM_ALIASES_DIRECTORY_TRANSPORT
46 directory_transport = SYSTEM_ALIASES_DIRECTORY_TRANSPORT