tidying
[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 = $message_exim_id 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 # ----- Routers -----
43
44 begin routers
45
46 .ifdef SERVER
47
48 target:
49   driver = redirect
50   condition = ${if = {$received_port}{PORT_D}}
51   data = :blackhole:
52
53 dut:
54   driver = manualroute
55   route_list = * 127.0.0.1
56   self = send
57   transport = t1
58
59 .else
60
61 client:
62   driver = manualroute
63   route_list = * 127.0.0.1
64   self = send
65   transport = t1
66   errors_to = ""
67
68 .endif
69
70
71 begin transports
72
73 t1:
74   driver = smtp
75   port =   PORT_D
76   tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
77   tls_verify_cert_hostnames = :
78
79
80 # ----- Retry -----
81 begin retry
82
83 * * F,5d,10s
84
85 # End