SOCKS: fix build on OpenBSD
[users/heiko/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 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/SERVER%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12
13 # ----- Main settings -----
14
15 acl_smtp_rcpt = accept
16
17 log_selector = +tls_peerdn
18
19 queue_only
20 queue_run_in_order
21
22 smtp_accept_max_nonmail = 0
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 = PLAIN
39   server_condition = "\
40     ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
41   server_set_id = $2
42   client_send = ^userx^secret
43
44
45 # ----- Routers -----
46
47 begin routers
48
49 client:
50   driver = accept
51   condition = ${if eq {SERVER}{server}{no}{yes}}
52   retry_use_local_part
53   transport = send_to_server
54
55 server:
56   driver = accept
57   retry_use_local_part
58   transport = local_delivery
59
60
61 # ----- Transports -----
62
63 begin transports
64
65 local_delivery:
66   driver = appendfile
67   file = DIR/test-mail/$local_part
68   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
69   user = CALLER
70
71 send_to_server:
72   driver = smtp
73   allow_localhost
74   hosts = 127.0.0.1
75   hosts_try_auth = *
76   port = PORT_D
77
78 # End