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