Testsuite: Add doc for PORT_DYNAMIC
[exim.git] / test / confs / 2013
1 # Exim test configuration 2013
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
14
15 queue_only
16 queue_run_in_order
17
18 smtp_accept_max_nonmail = 0
19
20 tls_advertise_hosts = *
21
22 # Set certificate only if server
23
24 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
26
27
28 # ----- Routers -----
29
30 begin routers
31
32 client:
33   driver = accept
34   condition = ${if eq {SERVER}{server}{no}{yes}}
35   retry_use_local_part
36   transport = send_to_server
37
38 server:
39   driver = accept
40   retry_use_local_part
41   transport = local_delivery
42
43
44 # ----- Transports -----
45
46 begin transports
47
48 local_delivery:
49   driver = appendfile
50   file = DIR/test-mail/$local_part
51   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
52   user = CALLER
53
54 send_to_server:
55   driver = smtp
56   allow_localhost
57   hosts = 127.0.0.1
58   port = PORT_D
59
60 # End