# Exim test configuration 0391

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

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

acl_smtp_rcpt = acl_rcpt
log_selector = +address_rewrite


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

begin acl

acl_rcpt:
  accept  verify = sender


# ----- Routers -----

begin routers

r1:
  driver = accept
  debug_print = sender_address=<$sender_address> \
                local_part=$local_part \
                domain=$domain
  verify_only
  verify_sender


# ----- Rewrite ------

begin rewrite

*@*.x.y   $local_part@x.y


# End