| 1 | # Exim test configuration 3460 |
| 2 | |
| 3 | .include DIR/aux-var/tls_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | |
| 7 | # ----- Main settings ----- |
| 8 | |
| 9 | domainlist local_domains = test.ex |
| 10 | hostlist auth_over_tls_hosts = 127.0.0.1 |
| 11 | |
| 12 | acl_smtp_auth = check_auth |
| 13 | |
| 14 | tls_advertise_hosts = * |
| 15 | tls_certificate = DIR/aux-fixed/cert1 |
| 16 | tls_privatekey = DIR/aux-fixed/cert1 |
| 17 | |
| 18 | |
| 19 | # ----- ACL ----- |
| 20 | |
| 21 | begin acl |
| 22 | check_auth: |
| 23 | accept hosts = +auth_over_tls_hosts |
| 24 | endpass |
| 25 | message = STARTTLS required before AUTH |
| 26 | encrypted = * |
| 27 | accept |
| 28 | |
| 29 | |
| 30 | # ----- Authenticators ----- |
| 31 | |
| 32 | |
| 33 | begin authenticators |
| 34 | |
| 35 | plain: |
| 36 | driver = plaintext |
| 37 | public_name = PLAIN |
| 38 | server_condition = "\ |
| 39 | ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" |
| 40 | server_set_id = $2 |
| 41 | |
| 42 | # End |