-# router/600_exim4-config_userforward
+### router/600_exim4-config_userforward
#################################
# This router handles forwarding using traditional .forward files in users'
-# home directories and filtering with exim's builtin filter language.
+# home directories. It also allows mail filtering with a forward file
+# starting with the string "# Exim filter" or "# Sieve filter".
#
# The no_verify setting means that this router is skipped when Exim is
# verifying addresses. Similarly, no_expn means that this router is skipped if
# The four transports specified at the end are those that are used when
# forwarding generates a direct delivery to a directory, or a file, or to a
# pipe, or sets up an auto-reply, respectively.
-#
+
+# hcoop-change: Use unix_domains rather than local_domains. Also, use
+# .public/.forward rather than .forward.
+
userforward:
debug_print = "R: userforward for $local_part@$domain"
driver = redirect
- domains = +local_domains
+ domains = +unix_domains
check_local_user
- file = $home/.forward
+ file = $home/.public/.forward
+ require_files = $local_part:$home/.public/.forward
no_verify
no_expn
check_ancestor
allow_filter
+ forbid_smtp_code = true
directory_transport = address_directory
file_transport = address_file
pipe_transport = address_pipe