1 # Exim test configuration 5700
4 host_lookup_order = bydns
5 spool_directory = DIR/spool
6 log_file_path = DIR/spool/log/%slog
8 gecos_name = CALLER_NAME
11 # ----- Main settings -----
13 acl_smtp_rcpt = accept
14 acl_smtp_data = accept
16 event_action = ${acl {logger}}
24 accept condition = ${if eq {$event_name}{tcp:connect}}
25 logwrite = . [$host_address]:$host_port
26 accept condition = ${if eq {$event_name}{tcp:close}}
27 logwrite = . [$sending_ip_address] -> \
28 [$host_address]:$host_port
33 logwrite = . [$sending_ip_address] -> \
34 [$host_address]:$host_port
35 logwrite = . banner <$event_data>
38 accept condition = ${if eq {$event_name}{msg:fail:delivery}}
40 refused by fdqn <$host> \
41 local_part <$local_part> \
45 local_part <$local_part> \
55 local_part <$local_part> \
58 router <$router_name> \
59 transport <$transport_name>
62 accept condition = ${if eq {fail} {${listextract{2}{$event_name}}}}
65 accept condition = ${if eq {$event_name}{msg:complete}}
66 logwrite = . finished: $message_exim_id
68 accept condition = ${if !eq {$domain}{domain1}}
69 logwrite = $this_expansion_will_fail
71 accept condition = ${if eq {$event_name}{msg:delivery}}
72 acl = ev_msg_log delivery "confirmation <$event_data>"
74 accept condition = ${if eq {$event_name}{msg:host:defer}}
75 acl = ev_msg_log "host deferral" \
76 "errno <$event_defer_errno> errstr <$event_data>"
78 accept condition = ${if eq {$event_name}{msg:rcpt:defer}}
79 set acl_m_ev_lkup = ${eval:$event_defer_errno & 0xff}
80 set acl_m_ev_lkup = ${if = {$acl_m_ev_lkup}{65} {A} \
81 { ${if = {$acl_m_ev_lkup}{77} {MX} \
83 set acl_m_ev_code = 4${eval:$event_defer_errno >>8}
84 acl = ev_msg_log "rcpt deferral" \
85 "err <$event_defer_errno>:<$acl_m_ev_lkup:$acl_m_ev_code> \
89 warn logwrite = event $event_name
90 accept condition = ${if eq {tcp} {${listextract{1}{$event_name}}}}
92 accept condition = ${if eq {smtp} {${listextract{1}{$event_name}}}}
94 accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
109 route_list = * 127.0.0.1 byname
116 # ----- Transports -----
125 event_action = ${acl {logger}}