pcre-config support.
[users/jgh/exim.git] / test / confs / 3452
1 # Exim test configuration 3452
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 tls_advertise_hosts = *
24
25 # Set certificate only if server
26
27 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
28 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
29
30
31 # ----- Authenticators -----
32
33 begin authenticators
34
35 plain:
36   driver = plaintext
37   public_name = LOGIN
38   server_prompts = Username : Password
39   server_condition = "\
40     ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}"
41   server_set_id = $1
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
79 # ----- Retry -----
80
81
82 begin retry
83
84 * * F,5d,10s
85
86
87 # End