# Exim test configuration 2009 SERVER = .include DIR/aux-var/tls_conf_prefix primary_hostname = myhost.test.ex # ----- Main settings ----- acl_smtp_rcpt = check_recipient hostlist tls_hosts = 127.0.0.1 queue_only queue_run_in_order tls_advertise_hosts = * # Set certificate only if server tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} # ----- ACL ----- begin acl check_recipient: deny hosts = +tls_hosts message = encryption required !encrypted = * accept domains = +local_domains deny message = relay not permitted # ----- Routers ----- begin routers client: driver = accept condition = ${if eq {SERVER}{server}{no}{yes}} retry_use_local_part transport = send_to_server # ----- Transports ----- begin transports send_to_server: driver = smtp allow_localhost hosts = 127.0.0.1 port = PORT_D hosts_try_fastopen = : hosts_avoid_tls = 127.0.0.1 # End