Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 2110 |
2 | ||
3 | SERVER = | |
e97957bc | 4 | HOSTS = 127.0.0.1 : HOSTIPV4 |
afda344b | 5 | |
d4dc049f JH |
6 | .include DIR/aux-var/tls_conf_prefix |
7 | ||
afda344b | 8 | primary_hostname = myhost.test.ex |
afda344b PH |
9 | |
10 | # ----- Main settings ----- | |
11 | ||
1a47b633 JH |
12 | log_selector = +outgoing_port |
13 | ||
afda344b PH |
14 | acl_smtp_rcpt = accept |
15 | ||
16 | queue_only | |
17 | queue_run_in_order | |
18 | ||
19 | # Set certificate only if server | |
20 | ||
21 | tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} | |
22 | tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} | |
23 | ||
24 | tls_advertise_hosts = HOSTIPV4 | |
25 | ||
26 | ||
27 | # ----- Routers ----- | |
28 | ||
29 | begin routers | |
30 | ||
31 | client: | |
32 | driver = accept | |
33 | condition = ${if eq {SERVER}{server}{no}{yes}} | |
34 | retry_use_local_part | |
35 | transport = send_to_server | |
36 | ||
37 | ||
38 | # ----- Transports ----- | |
39 | ||
40 | begin transports | |
41 | ||
42 | send_to_server: | |
43 | driver = smtp | |
44 | allow_localhost | |
e97957bc | 45 | hosts = HOSTS |
afda344b PH |
46 | hosts_require_tls = * |
47 | port = PORT_D | |
48 | ||
e97957bc PH |
49 | |
50 | # ----- Retry ----- | |
51 | ||
52 | begin retry | |
53 | ||
54 | * tls_required | |
55 | * * F,1d,5m | |
56 | ||
afda344b | 57 | # End |