Do not sleep for tiny periods, or hang trying to sleep for zero. Bug 1426
[users/jgh/exim.git] / test / confs / 3451
1 # Exim test configuration 3451
2
3 SERVER =
4
5 exim_path = EXIM_PATH
6 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 rfc1413_query_timeout = 0s
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
11 gecos_pattern = ""
12 gecos_name = CALLER_NAME
13
14 # ----- Main settings -----
15
16 acl_smtp_rcpt = accept
17
18 log_selector = +tls_peerdn
19
20 queue_only
21 queue_run_in_order
22
23 smtp_accept_max_nonmail = 0
24
25 tls_advertise_hosts = *
26
27 # Set certificate only if server
28
29 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
30 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
31
32
33 # ----- Authenticators -----
34
35 begin authenticators
36
37 plain:
38   driver = plaintext
39   public_name = PLAIN
40   server_condition = "\
41     ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
42   server_set_id = $2
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 # End