# Exim test configuration 0069

LOG_SELECTOR=

exim_path = EXIM_PATH
host_lookup_order = bydns
primary_hostname = myhost.test.ex
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

# ----- Main settings -----

domainlist local_domains = test.ex : myhost.ex

acl_smtp_rcpt = check_recipient$local_part
sender_unqualified_hosts = +include_unknown: ^ten-1\\.test\\.ex
LOG_SELECTOR

# ------ ACL ------

begin acl

check_recipientx:
  accept  hosts = :
  deny    hosts = +include_unknown : ^ten-1\\.test\\.ex
  accept  domains = +local_domains
  deny    message = relay not permitted

check_recipienty:
  accept  hosts = non.existent.invalid : V4NET.0.0.13
  deny    message = "Denied"

check_recipientz:
  accept  hosts = +ignore_unknown : non.existent.invalid : V4NET.0.0.13
  deny    message = "Denied"

# End