Docs: document ancillary info for more event types. Bug 2313
[exim.git] / test / confs / 5700
1 # Exim test configuration 5700
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 acl_smtp_rcpt = accept
9 acl_smtp_data = accept
10
11 event_action = ${acl {logger}}
12
13
14 # ----- ACL -----
15
16 begin acl
17
18 ev_tcp:
19     accept condition = ${if eq {$event_name}{tcp:connect}}
20            logwrite = . [$host_address]:$host_port
21     accept condition = ${if eq {$event_name}{tcp:close}}
22            logwrite = . [$sending_ip_address] -> \
23                         [$host_address]:$host_port
24     accept
25
26 ev_smtp:
27     accept
28            logwrite = . [$sending_ip_address] -> \
29                         [$host_address]:$host_port
30            logwrite = . banner <$event_data>
31
32 ev_msg_fail:
33     accept condition = ${if eq {$event_name}{msg:fail:delivery}}
34            logwrite = . \
35             refused by fdqn <$host> \
36             local_part <$local_part> \
37             domain <$domain> \
38             errstr <$event_data> \
39
40     accept logwrite = . \
41             local_part <$local_part> \
42             domain <$domain> \
43             reason <$event_data>
44
45 ev_msg_log:
46     accept logwrite = . \
47             $acl_arg1 \
48             ip <$host_address> \
49             port <$host_port> \
50             fqdn <$host> \
51             local_part <$local_part> \
52             domain <$domain> \
53             $acl_arg2 \
54             router <$router_name> \
55             transport <$transport_name>
56
57 ev_msg:
58     accept condition = ${if eq {fail} {${listextract{2}{$event_name}}}}
59            acl = ev_msg_fail
60
61     accept condition = ${if eq {$event_name}{msg:complete}}
62            logwrite = . finished: $message_exim_id
63
64     accept condition = ${if !eq {$domain}{domain1}}
65            logwrite = $this_expansion_will_fail
66
67     accept condition = ${if eq {$event_name}{msg:delivery}}
68            acl = ev_msg_log delivery "confirmation <$event_data>"
69
70     accept condition = ${if eq {$event_name}{msg:host:defer}}
71            acl = ev_msg_log "host deferral" \
72                         "errno <$event_defer_errno> errstr <$event_data>"
73
74     accept condition = ${if eq {$event_name}{msg:rcpt:defer}}
75            set acl_m_ev_lkup =  ${eval:$event_defer_errno & 0xff}
76            set acl_m_ev_lkup =  ${if = {$acl_m_ev_lkup}{65} {A} \
77                                 { ${if = {$acl_m_ev_lkup}{77} {MX} \
78                                   {$acl_m_ev_lkup}}}}
79            set acl_m_ev_code =  4${eval:$event_defer_errno >>8}
80            acl = ev_msg_log "rcpt deferral" \
81                         "err <$event_defer_errno>:<$acl_m_ev_lkup:$acl_m_ev_code> \
82                         errstr <$event_data>"
83
84 logger:
85     warn   logwrite = event $event_name
86     accept condition = ${if eq {tcp} {${listextract{1}{$event_name}}}}
87            acl = ev_tcp
88     accept condition = ${if eq {smtp} {${listextract{1}{$event_name}}}}
89            acl = ev_smtp
90     accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
91            acl = ev_msg
92
93
94 # ----- Routers -----
95
96 begin routers
97
98 dump_bounces:
99   driver = redirect
100   senders = :
101   data = :blackhole:
102
103 others:
104   driver = manualroute
105   route_list = * 127.0.0.1 byname
106   self = send
107   transport = smtp
108   errors_to = ""
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