| 1 | # Exim test configuration 3403 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | host_lookup_order = bydns |
| 5 | primary_hostname = myhost.test.ex |
| 6 | rfc1413_query_timeout = 0s |
| 7 | spool_directory = DIR/spool |
| 8 | log_file_path = DIR/spool/log/%slog |
| 9 | gecos_pattern = "" |
| 10 | gecos_name = CALLER_NAME |
| 11 | |
| 12 | # ----- Main settings ----- |
| 13 | |
| 14 | acl_smtp_rcpt = accept |
| 15 | |
| 16 | |
| 17 | # ----- Authentication ----- |
| 18 | |
| 19 | begin authenticators |
| 20 | |
| 21 | plain1: |
| 22 | driver = plaintext |
| 23 | public_name = PLAIN |
| 24 | server_condition = \ |
| 25 | ${if or {\ |
| 26 | {and {{eq{$2}{userx}}{eq{$3}{secret}}}}\ |
| 27 | {and {{eq{$2}{usery}}{eq{$3}{ab?}}}}\ |
| 28 | }\ |
| 29 | {yes}{no}} |
| 30 | server_set_id = $2 |
| 31 | server_mail_auth_condition = ${if eq{$authenticated_id}{userx}{yes}} |
| 32 | |
| 33 | |
| 34 | # ----- Routers ----- |
| 35 | |
| 36 | begin routers |
| 37 | |
| 38 | d1: |
| 39 | driver = accept |
| 40 | headers_add = aid: $authenticated_id |
| 41 | retry_use_local_part |
| 42 | transport = t1 |
| 43 | |
| 44 | |
| 45 | # ----- Transports ----- |
| 46 | |
| 47 | begin transports |
| 48 | |
| 49 | t1: |
| 50 | driver = appendfile |
| 51 | file = DIR/test-mail/$local_part |
| 52 | user = CALLER |
| 53 | |
| 54 | # End |