3369288bb2e7b7c2c40ae5e41042e5bea68945de
[exim.git] / test / confs / 2149
1 # Exim test configuration 2149
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 tls_advertise_hosts =   *
14 tls_certificate =       DIR/aux-fixed/cert1
15
16 .ifdef DATA
17 tls_eccurve =           DATA
18 .endif
19
20
21 # ----- Routers -----
22
23 begin routers
24
25 client:
26   driver =      accept
27   condition =   ${if eq {SERVER}{server}{no}{yes}}
28   retry_use_local_part
29   transport =   send_to_server
30   errors_to =   ""
31
32 server:
33   driver =      accept
34   retry_use_local_part
35   transport =   local_delivery
36
37
38 # ----- Transports -----
39
40 begin transports
41
42 local_delivery:
43   driver =      appendfile
44   file =        DIR/test-mail/$local_part
45   create_file = DIR/test-mail
46   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
47   user =        CALLER
48
49 send_to_server:
50   driver =      smtp
51   allow_localhost
52   hosts =       127.0.0.1
53   port =        PORT_D
54   hosts_try_fastopen =          :
55   tls_verify_certificates =     DIR/aux-fixed/cert1
56   tls_verify_cert_hostnames =   :
57   hosts_require_tls =           *
58
59 # End