# Exim test configuration 3208

exim_path = EXIM_PATH
host_lookup_order = bydns
primary_hostname = myhost.test.ex
qualify_domain = 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 -----

acl_smtp_rcpt = check_recipient

domainlist local_domains = !*relay.ex : test.ex : testhack.ex : \
  testhack2.ex : testdb;defer

domainlist relay_domains = test.ex : testhack.ex : testhack2.ex : \
  yesrelay.ex : testdb;defer

percent_hack_domains = !*relay.ex : !test.ex : testhack.ex : testdb;defer


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

begin acl

check_recipient:
  # Exim 3 had no checking on -bs messages
  accept  hosts = :
  accept  domains = +local_domains
  accept  domains = +relay_domains
  deny    message = relay not permitted

# End