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