# Exim test configuration 0231 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 : *.test.ex acl_smtp_rcpt = check_recipient # ----- ACL ----- begin acl check_recipient: accept hosts = : accept domains = +local_domains deny message = relay not permitted # ----- Routers ----- begin routers rewrite1: driver = manualroute domains = ! +local_domains route_list = * 127.0.0.1 byname self = send transport = smtp_rewrite no_more rewrite2: driver = accept local_parts = a retry_use_local_part transport = local_delivery_rewrite no_rewrite: driver = accept retry_use_local_part transport = local_delivery # ----- Transports ----- begin transports local_delivery_rewrite: driver = appendfile file = DIR/test-mail/$local_part headers_rewrite = a@test.ex a-rewrite@test.ex user = CALLER local_delivery: driver = appendfile file = DIR/test-mail/$local_part user = CALLER smtp_rewrite: driver = smtp headers_rewrite = *@domain1 $1-rewrite@domain2 f :\ *@domain1 $1-other@domain2 port = PORT_S # ----- Retry ----- begin retry * * F,5d,10s # End