| 1 | # Exim test configuration 3465 |
| 2 | |
| 3 | HOSTS_AVOID_TLS= |
| 4 | |
| 5 | .include DIR/aux-var/tls_conf_prefix |
| 6 | |
| 7 | primary_hostname = myhost.test.ex |
| 8 | |
| 9 | # ----- Main settings ----- |
| 10 | |
| 11 | acl_smtp_rcpt = accept |
| 12 | |
| 13 | domainlist local_domains = test.ex |
| 14 | |
| 15 | log_selector = +smtp_no_mail |
| 16 | |
| 17 | queue_only = true |
| 18 | |
| 19 | tls_advertise_hosts = * |
| 20 | tls_certificate = DIR/aux-fixed/cert1 |
| 21 | tls_privatekey = DIR/aux-fixed/cert1 |
| 22 | |
| 23 | |
| 24 | # ----- Authenticators ----- |
| 25 | |
| 26 | begin authenticators |
| 27 | |
| 28 | plain: |
| 29 | driver = plaintext |
| 30 | public_name = PLAIN |
| 31 | server_condition = "\ |
| 32 | ${if and {{eq{$2}{userx}}{eq{$3}{secret1}}}{yes}{no}}" |
| 33 | server_set_id = $2 |
| 34 | client_condition = ${if !eq {$tls_out_cipher}{}} |
| 35 | client_send = ^userx^secret1 |
| 36 | |
| 37 | login: |
| 38 | driver = plaintext |
| 39 | public_name = LOGIN |
| 40 | server_prompts = User Name : Password |
| 41 | server_condition = "\ |
| 42 | ${if and {{eq{$auth1}{usery}}{eq{$auth2}{secret2}}}{yes}{no}}" |
| 43 | server_set_id = $auth1 |
| 44 | client_send = : usery : secret2 |
| 45 | |
| 46 | |
| 47 | # ----- Routers ----- |
| 48 | |
| 49 | begin routers |
| 50 | |
| 51 | r1: |
| 52 | driver = accept |
| 53 | transport = t1 |
| 54 | |
| 55 | |
| 56 | # ----- Transports ----- |
| 57 | |
| 58 | begin transports |
| 59 | |
| 60 | t1: |
| 61 | driver = smtp |
| 62 | hosts = 127.0.0.1 |
| 63 | port = PORT_D |
| 64 | hosts_avoid_tls = HOSTS_AVOID_TLS |
| 65 | tls_try_verify_hosts = : |
| 66 | hosts_require_auth = * |
| 67 | allow_localhost |
| 68 | |
| 69 | # These can be made visible by adding "-d-all+deliver+transport+tls" to the script 1st queuerun |
| 70 | headers_add = X-tls-cipher: <$tls_cipher> |
| 71 | headers_add = X-tls-out-cipher: <$tls_out_cipher> |
| 72 | |
| 73 | |
| 74 | # End |