X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/9ba4af2b76958e076a0c002e53ead87ed7a47a68..afda344b580b54a4513569720aec3260cd5ba546:/test/confs/3500 diff --git a/test/confs/3500 b/test/confs/3500 new file mode 100644 index 000000000..999cd5673 --- /dev/null +++ b/test/confs/3500 @@ -0,0 +1,114 @@ +# 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 +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 \$1="$1" \$2=\"$2" \$3="$3" + server_secret = "${if eq{$1}{tim}{tanstaaftanstaaf}\ + {${if eq{$1}{userx}{secret}fail}}}" + server_set_id = $1 + + + +# ----- 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