Docs: document ancillary info for more event types. Bug 2313
[exim.git] / test / confs / 5700
CommitLineData
d68218c7
JH
1# Exim test configuration 5700
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
d68218c7
JH
5
6# ----- Main settings -----
7
8acl_smtp_rcpt = accept
9acl_smtp_data = accept
10
774ef2d7 11event_action = ${acl {logger}}
14a465c3 12
d68218c7
JH
13
14# ----- ACL -----
15
16begin acl
17
a7538db1 18ev_tcp:
774ef2d7 19 accept condition = ${if eq {$event_name}{tcp:connect}}
430f98cb 20 logwrite = . [$host_address]:$host_port
774ef2d7 21 accept condition = ${if eq {$event_name}{tcp:close}}
a7538db1
JH
22 logwrite = . [$sending_ip_address] -> \
23 [$host_address]:$host_port
24 accept
25
26ev_smtp:
27 accept
28 logwrite = . [$sending_ip_address] -> \
29 [$host_address]:$host_port
774ef2d7 30 logwrite = . banner <$event_data>
a7538db1 31
14a465c3 32ev_msg_fail:
774ef2d7 33 accept condition = ${if eq {$event_name}{msg:fail:delivery}}
14a465c3
JH
34 logwrite = . \
35 refused by fdqn <$host> \
36 local_part <$local_part> \
37 domain <$domain> \
1afce5bb 38 errstr <$event_data> \
14a465c3
JH
39
40 accept logwrite = . \
41 local_part <$local_part> \
42 domain <$domain> \
774ef2d7 43 reason <$event_data>
14a465c3 44
5ef5dd52
JB
45ev_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
a7538db1 57ev_msg:
774ef2d7 58 accept condition = ${if eq {fail} {${listextract{2}{$event_name}}}}
14a465c3
JH
59 acl = ev_msg_fail
60
774ef2d7 61 accept condition = ${if eq {$event_name}{msg:complete}}
14a465c3
JH
62 logwrite = . finished: $message_exim_id
63
64 accept condition = ${if !eq {$domain}{domain1}}
a7538db1
JH
65 logwrite = $this_expansion_will_fail
66
774ef2d7 67 accept condition = ${if eq {$event_name}{msg:delivery}}
5ef5dd52 68 acl = ev_msg_log delivery "confirmation <$event_data>"
a7538db1 69
774ef2d7 70 accept condition = ${if eq {$event_name}{msg:host:defer}}
5ef5dd52
JB
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>"
d68218c7 83
a7538db1 84logger:
774ef2d7
JH
85 warn logwrite = event $event_name
86 accept condition = ${if eq {tcp} {${listextract{1}{$event_name}}}}
a7538db1 87 acl = ev_tcp
774ef2d7 88 accept condition = ${if eq {smtp} {${listextract{1}{$event_name}}}}
a7538db1 89 acl = ev_smtp
774ef2d7 90 accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
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
5ef5dd52 108 errors_to = ""
d68218c7
JH
109 no_more
110
111
112# ----- Transports -----
113
114begin transports
115
116smtp:
117 driver = smtp
118 port = PORT_S
119 command_timeout = 1s
120 final_timeout = 1s
774ef2d7 121 event_action = ${acl {logger}}
d68218c7
JH
122
123# End