Commit | Line | Data |
---|---|---|
b7d3afcf JH |
1 | # Exim test configuration 2135 |
2 | ||
3 | SERVER = | |
4 | ||
5 | .include DIR/aux-var/tls_conf_prefix | |
6 | ||
7 | primary_hostname = myhost.test.ex | |
8 | ||
9 | # ----- Main settings ----- | |
10 | ||
11 | acl_smtp_rcpt = accept | |
12 | ||
13 | log_selector = +tls_peerdn+smtp_connection+incoming_port+received_recipients | |
14 | ||
15 | queue_only | |
16 | queue_run_in_order | |
62970272 | 17 | remote_max_parallel = 1 |
b7d3afcf JH |
18 | |
19 | smtp_accept_max_nonmail = 0 | |
20 | ||
21 | tls_advertise_hosts = * | |
22 | ||
23 | # Set certificate only if server | |
24 | ||
25 | tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} | |
26 | tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} | |
27 | ||
28 | ||
29 | # ----- Routers ----- | |
30 | ||
31 | begin routers | |
32 | ||
33 | client: | |
34 | driver = manualroute | |
35 | condition = ${if eq {SERVER}{server}{no}{yes}} | |
36 | route_data = 127.0.0.1 | |
37 | self = send | |
38 | retry_use_local_part | |
39 | transport = send_to_server | |
40 | ||
41 | server: | |
42 | driver = accept | |
43 | retry_use_local_part | |
44 | transport = local_delivery | |
45 | ||
46 | ||
47 | # ----- Transports ----- | |
48 | ||
49 | begin transports | |
50 | ||
51 | local_delivery: | |
52 | driver = appendfile | |
0d2e392e | 53 | file = DIR/test-mail/${bless:$local_part} |
b7d3afcf JH |
54 | headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn |
55 | user = CALLER | |
56 | ||
57 | send_to_server: | |
58 | driver = smtp | |
59 | allow_localhost | |
b7d3afcf | 60 | port = PORT_D |
277b9979 JH |
61 | hosts_try_fastopen = : |
62 | hosts_noproxy_tls = : | |
b7d3afcf JH |
63 | tls_try_verify_hosts = : |
64 | max_rcpt = 1 | |
65 | ||
66 | # End |