Testsuite: add delays for predictable log sequencing in 2x36, log-sorting for 2x38
[exim.git] / test / confs / 2135
1 # Exim test configuration 2135
2
3 OPT =
4
5 .include DIR/aux-var/tls_conf_prefix
6
7 .ifdef SERVER
8 tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem
9 tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
10 .else
11 tls_advertise_hosts =
12 .endif
13
14 primary_hostname = myhost.test.ex
15
16 # ----- Main settings -----
17
18 acl_smtp_rcpt = check_rcpt
19 acl_smtp_data = check_data
20
21 log_selector = +received_recipients +outgoing_port
22 OPT
23
24 # ----- ACLs -----
25
26 begin acl
27
28 check_rcpt:
29   accept
30         condition =     ${if or { {!eq {SERVER}{server}} {= {$received_port}{PORT_S}} }}
31         verify =        recipient/callout=use_sender,hold
32   defer condition =     ${if eq {SERVER}{server}}
33         local_parts =   rcpt_defer
34   accept
35
36 check_data:
37   warn  logwrite =      received on port $received_port
38   defer condition =     ${if eq {SERVER}{server}}
39         condition =     ${if eq {data_defer}{${local_part:$recipients}}}
40   accept
41
42 delay:
43   warn  condition =     ${if = {$received_port}{PORT_D}}
44         delay =         1s
45   accept
46
47 # ----- Routers -----
48
49 begin routers
50
51 .ifdef SERVER
52
53 target:
54   driver = redirect
55   condition =           ${if = {$received_port}{PORT_D}}
56   address_data =        ${acl {delay}}
57   data =                :blackhole:
58
59 dut:
60   driver = manualroute
61   route_list = * 127.0.0.1
62   self = send
63   transport = t1
64
65 .else
66
67 client:
68   driver = manualroute
69   route_list = * 127.0.0.1
70   self = send
71   transport = t1
72   errors_to = ""
73
74 .endif
75
76
77 begin transports
78
79 t1:
80   driver = smtp
81   port =   PORT_D
82   tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
83   tls_verify_cert_hostnames = :
84
85
86 # ----- Retry -----
87 begin retry
88
89 * * F,5d,10s
90
91 # End