Testsuite: Experimental_Certnames absorbed into mainline
[users/jgh/exim.git] / test / confs / 2108
1 # Exim test configuration 2108
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
14 # ----- Main settings -----
15
16 domainlist local_domains = test.ex : *.test.ex
17
18 acl_smtp_rcpt = check_recipient
19 log_selector = +tls_peerdn
20 queue_only
21 queue_run_in_order
22 remote_max_parallel = 1
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
30
31 # ------ ACL ------
32
33 begin acl
34
35 check_recipient:
36   accept  domains = +local_domains
37   deny    message = relay not permitted
38
39
40 # ----- Routers -----
41
42 begin routers
43
44 client:
45   driver = accept
46   condition = ${if eq {SERVER}{server}{no}{yes}}
47   retry_use_local_part
48   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
49
50 server:
51   driver = accept
52   retry_use_local_part
53   transport = local_delivery
54
55
56 # ----- Transports -----
57
58 begin transports
59
60 local_delivery:
61   driver = appendfile
62   file = DIR/test-mail/$local_part
63   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
64   user = CALLER
65
66 send_to_server1:
67   driver = smtp
68   allow_localhost
69   hosts = 127.0.0.1
70   port = PORT_D
71   helo_data = helo.data.changed
72
73 send_to_server2:
74   driver = smtp
75   allow_localhost
76   hosts = HOSTIPV4
77   port = PORT_D
78
79
80 # ----- Retry -----
81
82
83 begin retry
84
85 * * F,5d,10s
86
87
88 # End