Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 2026 |
2 | ||
3 | exim_path = EXIM_PATH | |
bc3c7bb7 | 4 | keep_environment = |
afda344b PH |
5 | host_lookup_order = bydns |
6 | primary_hostname = myhost.test.ex | |
afda344b | 7 | spool_directory = DIR/spool |
9f1ec642 | 8 | .ifdef SERVER |
afda344b | 9 | log_file_path = DIR/spool/log/%slog |
9f1ec642 JH |
10 | .else |
11 | log_file_path = DIR/spool/log/%D-%slog | |
12 | .endif | |
afda344b PH |
13 | gecos_pattern = "" |
14 | gecos_name = CALLER_NAME | |
15 | ||
16 | # ----- Main settings ----- | |
17 | ||
18 | acl_smtp_rcpt = check_rcpt | |
19 | log_selector = +tls_peerdn | |
20 | ||
9f1ec642 | 21 | |
afda344b PH |
22 | tls_advertise_hosts = HOSTIPV4 |
23 | tls_certificate = DIR/aux-fixed/cert1 | |
24 | tls_privatekey = DIR/aux-fixed/cert1 | |
25 | ||
26 | ||
27 | # ----- ACLs ----- | |
28 | ||
29 | begin acl | |
30 | ||
31 | check_rcpt: | |
32 | accept local_parts = userx | |
9f1ec642 | 33 | control = queue_only |
afda344b PH |
34 | |
35 | defer local_parts = usery | |
36 | hosts = 127.0.0.1 | |
37 | ||
9f1ec642 | 38 | accept control = queue_only |
afda344b PH |
39 | |
40 | # ----- Routers ----- | |
41 | ||
42 | begin routers | |
43 | ||
44 | r0: | |
45 | driver = accept | |
46 | condition = ${if !eq {$sender_host_address}{}} | |
47 | transport = t2 | |
48 | ||
49 | r1: | |
50 | driver = accept | |
51 | transport = t1 | |
52 | ||
53 | ||
54 | # ----- Transports ----- | |
55 | ||
56 | begin transports | |
57 | ||
58 | t1: | |
59 | driver = smtp | |
60 | hosts = 127.0.0.1 : HOSTIPV4 | |
61 | port = PORT_D | |
62 | allow_localhost | |
63 | ||
64 | t2: | |
65 | driver = appendfile | |
66 | file = /dev/null | |
67 | user = CALLER | |
68 | ||
69 | # End |