mwolson: Only get token once, rather than 1-3 times
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / router / 600_exim4-config_userforward
index 2b71cc0..eab0ff0 100644 (file)
@@ -1,9 +1,10 @@
 
-# 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.
-#
 userforward:
   debug_print = "R: userforward for $local_part@$domain"
   driver = redirect
   domains = +local_domains
   check_local_user
   file = $home/.forward
+  require_files = $local_part:$home/.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