Testsuite: more portable implementation of "showenv"
[exim.git] / test / confs / 5700
CommitLineData
d68218c7
JH
1# Exim test configuration 5700
2
3exim_path = EXIM_PATH
4host_lookup_order = bydns
5rfc1413_query_timeout = 0s
6spool_directory = DIR/spool
7log_file_path = DIR/spool/log/%slog
8gecos_pattern = ""
9gecos_name = CALLER_NAME
10
11# ----- Main settings -----
12
13acl_smtp_rcpt = accept
14acl_smtp_data = accept
15
14a465c3
JH
16delivery_event_action = ${acl {logger}}
17
d68218c7
JH
18
19# ----- ACL -----
20
21begin acl
22
a7538db1
JH
23ev_tcp:
24 accept condition = ${if eq {$tpda_event}{tcp:connect}}
430f98cb 25 logwrite = . [$host_address]:$host_port
a7538db1
JH
26 accept condition = ${if eq {$tpda_event}{tcp:close}}
27 logwrite = . [$sending_ip_address] -> \
28 [$host_address]:$host_port
29 accept
30
31ev_smtp:
32 accept
33 logwrite = . [$sending_ip_address] -> \
34 [$host_address]:$host_port
35 logwrite = . banner <$tpda_data>
36
14a465c3
JH
37ev_msg_fail:
38 accept condition = ${if eq {$tpda_event}{msg:fail:delivery}}
39 logwrite = . \
40 refused by fdqn <$host> \
41 local_part <$local_part> \
42 domain <$domain> \
43
44 accept logwrite = . \
45 local_part <$local_part> \
46 domain <$domain> \
47 reason <$tpda_data>
48
a7538db1 49ev_msg:
14a465c3
JH
50 accept condition = ${if eq {fail} {${listextract{2}{$tpda_event}}}}
51 acl = ev_msg_fail
52
53 accept condition = ${if eq {$tpda_event}{msg:complete}}
54 logwrite = . finished: $message_exim_id
55
56 accept condition = ${if !eq {$domain}{domain1}}
a7538db1
JH
57 logwrite = $this_expansion_will_fail
58
14a465c3 59 accept condition = ${if eq {$tpda_event}{msg:delivery}}
a7538db1
JH
60 logwrite = . \
61 delivery \
62 ip <$host_address> \
63 port <$host_port> \
64 fqdn <$host> \
65 local_part <$local_part> \
66 domain <$domain> \
67 confirmation <$tpda_data> \
68 router <$router_name> \
69 transport <$transport_name>
70
14a465c3 71 accept condition = ${if eq {$tpda_event}{msg:host:defer}}
a7538db1
JH
72 logwrite = . \
73 deferral \
74 ip <$host_address> \
75 port <$host_port> \
76 fqdn <$host> \
77 local_part <$local_part> \
78 domain <$domain> \
d68218c7 79 errno <$tpda_defer_errno> \
a7538db1 80 errstr <$tpda_data> \
d68218c7
JH
81 router <$router_name> \
82 transport <$transport_name>
83
a7538db1
JH
84logger:
85 warn logwrite = event $tpda_event
86 accept condition = ${if eq {tcp} {${listextract{1}{$tpda_event}}}}
87 acl = ev_tcp
88 accept condition = ${if eq {smtp} {${listextract{1}{$tpda_event}}}}
89 acl = ev_smtp
90 accept condition = ${if eq {msg} {${listextract{1}{$tpda_event}}}}
14a465c3 91 acl = ev_msg
a7538db1 92
d68218c7
JH
93
94# ----- Routers -----
95
96begin routers
97
98dump_bounces:
99 driver = redirect
100 senders = :
101 data = :blackhole:
102
103others:
104 driver = manualroute
105 route_list = * 127.0.0.1 byname
106 self = send
107 transport = smtp
108 no_more
109
110
111# ----- Transports -----
112
113begin transports
114
115smtp:
116 driver = smtp
117 port = PORT_S
118 command_timeout = 1s
119 final_timeout = 1s
14a465c3 120 tpda_event_action = ${acl {logger}}
d68218c7
JH
121
122# End