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