# hcoop-change: List of domains that accept mail from local users.
# Mail sent to other domains we manage will be transformed into a
# local address by /etc/aliases.
-domainlist unix_domains = deleuze.hcoop.net:localhost
+domainlist unix_domains = deleuze.hcoop.net:mire.hcoop.net:localhost
# List of sender networks (IP addresses) to _unconditionally_ relay
# _for_. If you intend to be SMTP AUTH server, you do not need to enter
# /usr/share/doc/exim4-base/README.Debian.gz
# for explanation and some workarounds.
-# hcoop-change: Look up the local_part and domain, not just the
-# local_part.
+# hcoop-change: Look up this stuff in /etc/aliases.local for now,
+# until Adam gets back to me.
system_aliases:
debug_print = "R: system_aliases for $local_part@$domain"
driver = redirect
- domains = +local_domains
+ domains = +unix_domains
allow_fail
allow_defer
- data = ${lookup{$local_part@$domain}lsearch{/etc/aliases}}
+ data = ${lookup{$local_part}lsearch{/etc/aliases.local}}
.ifdef SYSTEM_ALIASES_USER
user = SYSTEM_ALIASES_USER
.endif
--- /dev/null
+
+### router/420_exim4-config_hosted_aliases
+#################################
+
+# This router handles the local part in a case-insensitive way which
+# satisfies the RFCs requirement that postmaster be reachable regardless
+# of case. If you decide to handle /etc/aliases in a caseful way, you
+# need to make arrangements for a caseless postmaster.
+
+# hcoop-change: Custom rule that looks up the local_part and domain
+# in /etc/aliases.hosted.
+
+hosted_aliases:
+ debug_print = "R: hosted_aliases for $local_part@$domain"
+ driver = redirect
+ domains = +local_domains
+ allow_fail
+ allow_defer
+ data = ${lookup{$local_part@$domain}lsearch{/etc/aliases.hosted}}
+ .ifdef SYSTEM_ALIASES_USER
+ user = SYSTEM_ALIASES_USER
+ .endif
+ .ifdef SYSTEM_ALIASES_GROUP
+ group = SYSTEM_ALIASES_GROUP
+ .endif
+ .ifdef SYSTEM_ALIASES_FILE_TRANSPORT
+ file_transport = SYSTEM_ALIASES_FILE_TRANSPORT
+ .endif
+ .ifdef SYSTEM_ALIASES_PIPE_TRANSPORT
+ pipe_transport = SYSTEM_ALIASES_PIPE_TRANSPORT
+ .endif
+ .ifdef SYSTEM_ALIASES_DIRECTORY_TRANSPORT
+ directory_transport = SYSTEM_ALIASES_DIRECTORY_TRANSPORT
+ .endif