600_exim4-config_userforward 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ### router/600_exim4-config_userforward
  2. #################################
  3. # This router handles forwarding using traditional .forward files in users'
  4. # home directories. It also allows mail filtering with a forward file
  5. # starting with the string "# Exim filter" or "# Sieve filter".
  6. #
  7. # The no_verify setting means that this router is skipped when Exim is
  8. # verifying addresses. Similarly, no_expn means that this router is skipped if
  9. # Exim is processing an EXPN command.
  10. #
  11. # The check_ancestor option means that if the forward file generates an
  12. # address that is an ancestor of the current one, the current one gets
  13. # passed on instead. This covers the case where A is aliased to B and B
  14. # has a .forward file pointing to A.
  15. #
  16. # The four transports specified at the end are those that are used when
  17. # forwarding generates a direct delivery to a directory, or a file, or to a
  18. # pipe, or sets up an auto-reply, respectively.
  19. #
  20. userforward:
  21. debug_print = "R: userforward for $local_part@$domain"
  22. driver = redirect
  23. domains = +local_domains
  24. check_local_user
  25. file = $home/.forward
  26. require_files = $local_part:$home/.forward
  27. no_verify
  28. no_expn
  29. check_ancestor
  30. allow_filter
  31. forbid_smtp_code = true
  32. directory_transport = address_directory
  33. file_transport = address_file
  34. pipe_transport = address_pipe
  35. reply_transport = address_reply
  36. skip_syntax_errors
  37. syntax_errors_to = real-$local_part@$domain
  38. syntax_errors_text = \
  39. This is an automatically generated message. An error has\n\
  40. been found in your .forward file. Details of the error are\n\
  41. reported below. While this error persists, you will receive\n\
  42. a copy of this message for every message that is addressed\n\
  43. to you. If your .forward file is a filter file, or if it is\n\
  44. a non-filter file containing no valid forwarding addresses,\n\
  45. a copy of each incoming message will be put in your normal\n\
  46. mailbox. If a non-filter file contains at least one valid\n\
  47. forwarding address, forwarding to the valid addresses will\n\
  48. happen, and those will be the only deliveries that occur.