testsuite: make runtest exit(!0) on failure in continue mode
[users/heiko/exim.git] / test / confs / 4211
1 # Exim test configuration 4201
2 # SMTPUTF8 handling
3
4 OPTION = *
5 CONTROL =
6
7 .include DIR/aux-var/tls_conf_prefix
8
9 # ----- Main settings -----
10
11 domainlist local_domains = test.ex : cname
12
13 acl_smtp_rcpt = check_recipient
14 acl_not_smtp = non_smtp
15
16 trusted_users = CALLER
17 log_selector = +received_recipients +sender_on_delivery
18
19 .ifdef SERVER
20 queue_only
21 queue_run_in_order
22 .endif
23
24 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25 tls_privatekey =  ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
26 tls_advertise_hosts = *
27
28 smtputf8_advertise_hosts = OPTION
29
30
31 # ----- ACL -----
32
33 begin acl
34
35
36 .ifdef SERVER
37
38 check_recipient:
39   accept hosts = :
40   accept domains = +local_domains
41          local_parts = ^user.*\$
42   deny   message = relay not permitted
43
44 .else
45
46 sub:
47 .ifdef CONTROL
48   require CONTROL
49 .endif
50   accept
51
52 check_recipient:
53   accept domains = *
54          acl = sub
55
56 non_smtp:
57   accept senders = :
58          control = queue_only
59   accept
60
61 .endif
62
63 # ----- Routers -----
64
65 begin routers
66
67 .ifdef SERVER
68
69 fail_remote_domains:
70   driver = redirect
71   domains = ! +local_domains
72   data = :fail: unrouteable mail domain "$domain"
73
74 bounces:
75   driver = redirect
76   condition = ${if eq {} {$sender_address}}
77   data = DIR/test-mail/$local_part
78   file_transport = local_delivery
79
80 localuser:
81   driver = redirect
82   data = :blackhole:
83
84 .else
85
86 bounces:
87   driver = redirect
88   domains = *.local
89   data = DIR/test-mail/$local_part
90   file_transport = local_delivery
91
92 rmt:
93   driver = manualroute
94   domains = +local_domains
95   route_data = <;[127.0.0.1]:PORT_D
96   transport = rmt_smtp
97   self = send
98
99 .endif
100
101 # ----- Transports -----
102
103 begin transports
104
105 local_delivery:
106   driver = appendfile
107   user = CALLER
108   delivery_date_add
109   envelope_to_add
110   file = DIR/test-mail/${bless:$local_part}
111   headers_add = "X-body-linecount: $body_linecount\n\
112                  X-message-linecount: $message_linecount\n\
113                  X-received-count: $received_count"
114   return_path_add
115
116 rmt_smtp:
117   driver =              smtp
118   hosts_try_fastopen =  :
119   hosts_require_tls =   *
120   tls_try_verify_hosts = :
121   utf8_downconvert =    0
122
123 # End