Allow relative file names in .include lines (Closes 1971)
[exim.git] / test / confs / 4211
CommitLineData
bfe645c1
JH
1# Exim test configuration 4201
2# SMTPUTF8 handling
3
4OPTION = *
5CONTROL =
6
4fab92fb 7.include DIR/aux-var/tls_conf_prefix
bfe645c1
JH
8
9# ----- Main settings -----
10
11domainlist local_domains = test.ex : cname
12
13acl_smtp_rcpt = check_recipient
14acl_not_smtp = non_smtp
15
16trusted_users = CALLER
17log_selector = +received_recipients +sender_on_delivery
18
19.ifdef SERVER
20queue_only
21queue_run_in_order
22.endif
23
24tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
26tls_advertise_hosts = *
27
28smtputf8_advertise_hosts = OPTION
29
30
31# ----- ACL -----
32
33begin acl
34
35
36.ifdef SERVER
37
38check_recipient:
39 accept hosts = :
40 accept domains = +local_domains
41 local_parts = ^user.*\$
42 deny message = relay not permitted
43
44.else
45
46sub:
47.ifdef CONTROL
48 require CONTROL
49.endif
50 accept
51
52check_recipient:
53 accept domains = *
54 acl = sub
55
56non_smtp:
57 accept senders = :
58 control = queue_only
59 accept
60
61.endif
62
63# ----- Routers -----
64
65begin routers
66
67.ifdef SERVER
68
69fail_remote_domains:
70 driver = redirect
71 domains = ! +local_domains
72 data = :fail: unrouteable mail domain "$domain"
73
74bounces:
75 driver = redirect
76 condition = ${if eq {} {$sender_address}}
77 data = DIR/test-mail/$local_part
78 file_transport = local_delivery
79
80localuser:
81 driver = redirect
82 data = :blackhole:
83
84.else
85
86bounces:
87 driver = redirect
88 domains = *.local
89 data = DIR/test-mail/$local_part
90 file_transport = local_delivery
91
92rmt:
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
103begin transports
104
105local_delivery:
106 driver = appendfile
107 user = CALLER
108 delivery_date_add
109 envelope_to_add
110 file = DIR/test-mail/$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
116rmt_smtp:
117 driver = smtp
118 hosts_require_tls = *
119 tls_try_verify_hosts = :
120
121# End