Testsuite: handle non-exim-writable testcase spoolfiles
[users/jgh/exim.git] / test / confs / 2109
1 # Exim test configuration 2109
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 = check_recipient
12 hostlist tls_hosts = 127.0.0.1
13
14 queue_only
15 queue_run_in_order
16
17 tls_advertise_hosts = *
18
19 # Set certificate only if server
20
21 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
22 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
23
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 check_recipient:
31   deny    hosts = +tls_hosts
32           message = encryption required
33          !encrypted = *
34   accept  domains = +local_domains
35   deny    message = relay not permitted
36
37
38 # ----- Routers -----
39
40 begin routers
41
42 client:
43   driver = accept
44   condition = ${if eq {SERVER}{server}{no}{yes}}
45   retry_use_local_part
46   transport = send_to_server
47
48
49 # ----- Transports -----
50
51 begin transports
52
53 send_to_server:
54   driver = smtp
55   allow_localhost
56   hosts = 127.0.0.1
57   hosts_avoid_tls = 127.0.0.1
58   port = PORT_D
59
60 # End