# Exim test configuration 9351 SERVER= .include DIR/aux-var/std_conf_prefix primary_hostname = myhost.test.ex # ----- Main settings ----- acl_smtp_rcpt = check_recipient .ifdef TRUSTED tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} tls_verify_hosts = HOSTIPV4 tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} .endif queue_only # ----- ACL ----- begin acl check_recipient: deny message = authentication required !authenticated = * accept # ----- Route ----- begin routers all: driver = accept transport = server errors_to = begin transports server: driver = smtp hosts = 127.0.0.1 allow_localhost port = PORT_D hosts_require_auth = * # ----- Authentication ----- begin authenticators dovecot: driver = dovecot public_name = PLAIN server_socket = 127.0.0.1 PORT_S .ifdef TRUSTED server_tls = true .endif server_set_id = $auth1 client: driver = plaintext public_name = PLAIN client_send = ^username^mysecret # End