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