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