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