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