| 1 | # Exim test configuration 2026 |
| 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 = check_rcpt |
| 15 | log_selector = +tls_peerdn |
| 16 | |
| 17 | tls_advertise_hosts = HOSTIPV4 |
| 18 | tls_certificate = DIR/aux-fixed/cert1 |
| 19 | tls_privatekey = DIR/aux-fixed/cert1 |
| 20 | |
| 21 | |
| 22 | # ----- ACLs ----- |
| 23 | |
| 24 | begin acl |
| 25 | |
| 26 | check_rcpt: |
| 27 | accept local_parts = userx |
| 28 | |
| 29 | defer local_parts = usery |
| 30 | hosts = 127.0.0.1 |
| 31 | |
| 32 | accept |
| 33 | |
| 34 | |
| 35 | # ----- Routers ----- |
| 36 | |
| 37 | begin routers |
| 38 | |
| 39 | r0: |
| 40 | driver = accept |
| 41 | condition = ${if !eq {$sender_host_address}{}} |
| 42 | transport = t2 |
| 43 | |
| 44 | r1: |
| 45 | driver = accept |
| 46 | transport = t1 |
| 47 | |
| 48 | |
| 49 | # ----- Transports ----- |
| 50 | |
| 51 | begin transports |
| 52 | |
| 53 | t1: |
| 54 | driver = smtp |
| 55 | hosts = 127.0.0.1 : HOSTIPV4 |
| 56 | port = PORT_D |
| 57 | allow_localhost |
| 58 | |
| 59 | t2: |
| 60 | driver = appendfile |
| 61 | file = /dev/null |
| 62 | user = CALLER |
| 63 | |
| 64 | # End |