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