# Exim test configuration 3500 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 hostlist auth_hosts = 10.0.0.1 : 10.0.0.5 hostlist relay_hosts = 10.0.0.4 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4 acl_smtp_etrn = check_etrn acl_smtp_expn = check_expn acl_smtp_rcpt = check_recipient acl_smtp_vrfy = check_vrfy auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \ 10.0.0.5 smtp_accept_max_nonmail = 20 system_filter = DIR/aux-fixed/TESTNUM.filter trusted_users = CALLER # ----- ACL ----- begin acl check_recipient: warn hosts = 10.0.0.5 message = authentication-failed: $authentication_failed accept hosts = 10.0.0.5 accept hosts = : deny hosts = +auth_hosts message = authentication required !authenticated = * accept domains = +local_domains accept hosts = +relay_hosts accept hosts = +auth_relay_hosts endpass message = authentication required authenticated = * deny message = relay not permitted check_etrn: deny hosts = +auth_hosts message = authentication required !authenticated = * require hosts = 10.0.0.0/24 warn log_message = accepted ETRN $smtp_command_argument accept check_expn: deny hosts = +auth_hosts message = authentication required !authenticated = * accept hosts = 10.0.0.0/24 check_vrfy: deny hosts = +auth_hosts message = authentication required !authenticated = * accept # ----- Authentication ----- begin authenticators cram_md5: driver = cram_md5 public_name = CRAM-MD5 server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3" server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\ {${if eq{$auth1}{userx}{secret}fail}}}" server_set_id = $auth1 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}} # ----- Routers ----- begin routers fail_remote_domains: driver = redirect domains = ! +local_domains data = :fail: unrouteable mail domain "$domain" localuser: driver = accept local_parts = userx transport = appendfile # ----- Transports ----- begin transports appendfile: driver = appendfile delivery_date_add envelope_to_add file = DIR/test-mail/$local_part return_path_add user = CALLER # End