Trouble users / temporary workarounds
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 4 Oct 2009 21:28:38 +0000 (17:28 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 4 Oct 2009 21:28:38 +0000 (17:28 -0400)
Note that the temporary workarounds bit is not being used right
now. It is commented out and won't hurt anything at least.

conf.d/router/050_temporary_workarounds [new file with mode: 0644]
conf.d/transport/30_exim4-config_trouble_users [new file with mode: 0644]

diff --git a/conf.d/router/050_temporary_workarounds b/conf.d/router/050_temporary_workarounds
new file mode 100644 (file)
index 0000000..e329166
--- /dev/null
@@ -0,0 +1,12 @@
+
+# hcoop-change: Deal with users who are causing trouble to the mail
+# system.
+
+# trouble_users_router:
+#   debug_print = "R: trouble_users for $local_part@$domain"
+#   driver = accept
+#   domains = +unix_domains
+#   condition = "${if eq {$local_part}{omry} {1}{0}}"
+#   local_part_prefix = real-
+#   check_local_user
+#   transport = trouble_users
diff --git a/conf.d/transport/30_exim4-config_trouble_users b/conf.d/transport/30_exim4-config_trouble_users
new file mode 100644 (file)
index 0000000..2a9fe1b
--- /dev/null
@@ -0,0 +1,14 @@
+
+# This transport is used for handling deliveries directly to files that are
+# generated by aliasing or forwarding.
+#
+# hcoop-change: Add bogus group line to make sure get-token gets executed
+trouble_users:
+  debug_print = "T: trouble_users for $local_part@$domain"
+  driver = appendfile
+  group = mail
+  file = /var/tmp/frozen/${local_part}
+  delivery_date_add
+  envelope_to_add
+  return_path_add
+