400_exim4-config_system_aliases 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ### router/400_exim4-config_system_aliases
  2. #################################
  3. # This router handles aliasing using a traditional /etc/aliases file.
  4. #
  5. ##### NB You must ensure that /etc/aliases exists. It used to be the case
  6. ##### NB that every Unix had that file, because it was the Sendmail default.
  7. ##### NB These days, there are systems that don't have it. Your aliases
  8. ##### NB file should at least contain an alias for "postmaster".
  9. #
  10. # This router handles the local part in a case-insensitive way which
  11. # satisfies the RFCs requirement that postmaster be reachable regardless
  12. # of case. If you decide to handle /etc/aliases in a caseful way, you
  13. # need to make arrangements for a caseless postmaster.
  14. #
  15. # Delivery to arbitrary directories, files, and piping to programs in
  16. # /etc/aliases is disabled per default.
  17. # If that is a problem for you, see
  18. # /usr/share/doc/exim4-base/README.Debian.gz
  19. # for explanation and some workarounds.
  20. system_aliases:
  21. debug_print = "R: system_aliases for $local_part@$domain"
  22. driver = redirect
  23. domains = +local_domains
  24. allow_fail
  25. allow_defer
  26. data = ${lookup{$local_part}lsearch{/etc/aliases}}
  27. .ifdef SYSTEM_ALIASES_USER
  28. user = SYSTEM_ALIASES_USER
  29. .endif
  30. .ifdef SYSTEM_ALIASES_GROUP
  31. group = SYSTEM_ALIASES_GROUP
  32. .endif
  33. .ifdef SYSTEM_ALIASES_FILE_TRANSPORT
  34. file_transport = SYSTEM_ALIASES_FILE_TRANSPORT
  35. .endif
  36. .ifdef SYSTEM_ALIASES_PIPE_TRANSPORT
  37. pipe_transport = SYSTEM_ALIASES_PIPE_TRANSPORT
  38. .endif
  39. .ifdef SYSTEM_ALIASES_DIRECTORY_TRANSPORT
  40. directory_transport = SYSTEM_ALIASES_DIRECTORY_TRANSPORT
  41. .endif