Testsuite: make debug output for proxied TLS less indeterminate
[exim.git] / test / confs / 2108
1 # Exim test configuration 2108
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 domainlist local_domains = test.ex : *.test.ex
12
13 acl_smtp_rcpt = check_recipient
14 log_selector = +tls_peerdn
15 queue_only
16 queue_run_in_order
17 remote_max_parallel = 1
18
19 tls_advertise_hosts = *
20
21 # Set certificate only if server
22
23 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
24
25
26 # ------ ACL ------
27
28 begin acl
29
30 check_recipient:
31   accept  domains = +local_domains
32   deny    message = relay not permitted
33
34
35 # ----- Routers -----
36
37 begin routers
38
39 client:
40   driver = accept
41   condition = ${if eq {SERVER}{server}{no}{yes}}
42   retry_use_local_part
43   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
44
45 server:
46   driver = accept
47   retry_use_local_part
48   transport = local_delivery
49
50
51 # ----- Transports -----
52
53 begin transports
54
55 local_delivery:
56   driver = appendfile
57   file = DIR/test-mail/$local_part
58   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
59   user = CALLER
60
61 send_to_server1:
62   driver = smtp
63   allow_localhost
64   hosts = 127.0.0.1
65   port = PORT_D
66   helo_data = helo.data.changed
67
68 send_to_server2:
69   driver = smtp
70   allow_localhost
71   hosts = HOSTIPV4
72   port = PORT_D
73
74
75 # ----- Retry -----
76
77
78 begin retry
79
80 * * F,5d,10s
81
82
83 # End