Fix DISABLE_DKIM build & test. Fix build on systems lacking MAX in standard includes.
[users/jgh/exim.git] / test / confs / 3461
1 # Exim test configuration 3461
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
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 # ----- Authenticators -----
29
30 begin authenticators
31
32 plain:
33   driver = plaintext
34   public_name = PLAIN
35   server_condition = "\
36     ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
37   server_set_id = $2
38   client_send = ^userx^secret
39
40
41 # ----- Routers -----
42
43 begin routers
44
45 client:
46   driver = accept
47   condition = ${if eq {SERVER}{server}{no}{yes}}
48   retry_use_local_part
49   transport = send_to_server
50
51 server:
52   driver = accept
53   retry_use_local_part
54   transport = local_delivery
55
56
57 # ----- Transports -----
58
59 begin transports
60
61 local_delivery:
62   driver = appendfile
63   file = DIR/test-mail/$local_part
64   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
65   user = CALLER
66
67 send_to_server:
68   driver = smtp
69   allow_localhost
70   hosts = 127.0.0.1
71   hosts_try_auth = *
72   port = PORT_D
73   tls_try_verify_hosts = :
74
75 # End