Fix CVE-2016-1531
[exim.git] / test / confs / 3451
1 # Exim test configuration 3451
2
3 SERVER =
4
5 exim_path = EXIM_PATH
6 keep_environment =
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 rfc1413_query_timeout = 0s
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14
15 # ----- Main settings -----
16
17 acl_smtp_rcpt = accept
18
19 log_selector = +tls_peerdn
20
21 queue_only
22 queue_run_in_order
23
24 smtp_accept_max_nonmail = 0
25
26 tls_advertise_hosts = *
27
28 # Set certificate only if server
29
30 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
31 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
32
33
34 # ----- Authenticators -----
35
36 begin authenticators
37
38 plain:
39   driver = plaintext
40   public_name = PLAIN
41   server_condition = "\
42     ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
43   server_set_id = $2
44   client_send = ^userx^secret
45
46
47 # ----- Routers -----
48
49 begin routers
50
51 client:
52   driver = accept
53   condition = ${if eq {SERVER}{server}{no}{yes}}
54   retry_use_local_part
55   transport = send_to_server
56
57 server:
58   driver = accept
59   retry_use_local_part
60   transport = local_delivery
61
62
63 # ----- Transports -----
64
65 begin transports
66
67 local_delivery:
68   driver = appendfile
69   file = DIR/test-mail/$local_part
70   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
71   user = CALLER
72
73 send_to_server:
74   driver = smtp
75   allow_localhost
76   hosts = 127.0.0.1
77   hosts_try_auth = *
78   port = PORT_D
79
80 # End