20_exim4-config_local_deny_exceptions 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ### acl/20_exim4-config_local_deny_exceptions
  2. #################################
  3. # This is used to determine whitelisted senders and hosts.
  4. # It checks for CONFDIR/host_local_deny_exceptions and
  5. # CONFDIR/sender_local_deny_exceptions.
  6. #
  7. # It is meant to be used from some other acl entry.
  8. #
  9. # See exim4-config_files(5) for details.
  10. #
  11. # If the files do not exist, the white list never matches, which is
  12. # the desired behaviour.
  13. #
  14. # The old file names CONFDIR/local_host_whitelist and
  15. # CONFDIR/local_sender_whitelist will continue to be honored for a
  16. # transition period. Their use is deprecated.
  17. acl_local_deny_exceptions:
  18. accept
  19. hosts = ${if exists{CONFDIR/host_local_deny_exceptions}\
  20. {CONFDIR/host_local_deny_exceptions}\
  21. {}}
  22. accept
  23. senders = ${if exists{CONFDIR/sender_local_deny_exceptions}\
  24. {CONFDIR/sender_local_deny_exceptions}\
  25. {}}
  26. accept
  27. hosts = ${if exists{CONFDIR/local_host_whitelist}\
  28. {CONFDIR/local_host_whitelist}\
  29. {}}
  30. accept
  31. senders = ${if exists{CONFDIR/local_sender_whitelist}\
  32. {CONFDIR/local_sender_whitelist}\
  33. {}}
  34. # This hook allows you to hook in your own ACLs without having to
  35. # modify this file. If you do it like we suggest, you'll end up with
  36. # a small performance penalty since there is an additional file being
  37. # accessed. This doesn't happen if you leave the macro unset.
  38. .ifdef LOCAL_DENY_EXCEPTIONS_LOCAL_ACL_FILE
  39. .include LOCAL_DENY_EXCEPTIONS_LOCAL_ACL_FILE
  40. .endif
  41. # this is still supported for a transition period and is deprecated.
  42. .ifdef WHITELIST_LOCAL_DENY_LOCAL_ACL_FILE
  43. .include WHITELIST_LOCAL_DENY_LOCAL_ACL_FILE
  44. .endif