merge hcoop aliases configuration
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 4 Oct 2009 22:42:58 +0000 (18:42 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 4 Oct 2009 22:42:58 +0000 (18:42 -0400)
conf.d/router/450_exim4-config_hosted_aliases [new file with mode: 0644]
conf.d/router/480_exim4-config_hosted_wildcard_aliases [new file with mode: 0644]

diff --git a/conf.d/router/450_exim4-config_hosted_aliases b/conf.d/router/450_exim4-config_hosted_aliases
new file mode 100644 (file)
index 0000000..21796e3
--- /dev/null
@@ -0,0 +1,26 @@
+
+# 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
diff --git a/conf.d/router/480_exim4-config_hosted_wildcard_aliases b/conf.d/router/480_exim4-config_hosted_wildcard_aliases
new file mode 100644 (file)
index 0000000..6dc6771
--- /dev/null
@@ -0,0 +1,26 @@
+
+# hcoop-change: Custom rule that looks up the local_part and domain
+# in /etc/aliases.wildcard.
+
+hosted_wildcard_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.wildcard}}
+  .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