Fix CVE-2016-1531
[exim.git] / test / confs / 3462
1 # Exim test configuration 3462
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 tls_advertise_hosts = *
25
26 # Set certificate only if server
27
28 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
29 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
30
31
32 # ----- Authenticators -----
33
34 begin authenticators
35
36 plain:
37   driver = plaintext
38   public_name = LOGIN
39   server_prompts = Username : Password
40   server_condition = "\
41     ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}"
42   server_set_id = $1
43   client_send = : userx : secret
44
45
46 # ----- Routers -----
47
48 begin routers
49
50 client:
51   driver = accept
52   condition = ${if eq {SERVER}{server}{no}{yes}}
53   retry_use_local_part
54   transport = send_to_server
55
56 server:
57   driver = accept
58   retry_use_local_part
59   transport = local_delivery
60
61
62 # ----- Transports -----
63
64 begin transports
65
66 local_delivery:
67   driver = appendfile
68   file = DIR/test-mail/$local_part
69   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
70   user = CALLER
71
72 send_to_server:
73   driver = smtp
74   allow_localhost
75   hosts = 127.0.0.1
76   hosts_try_auth = *
77   port = PORT_D
78
79
80 # ----- Retry -----
81
82
83 begin retry
84
85 * * F,5d,10s
86
87
88 # End