1 # Exim test configuration 5700
5 host_lookup_order = bydns
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
9 gecos_name = CALLER_NAME
12 # ----- Main settings -----
14 acl_smtp_rcpt = accept
15 acl_smtp_data = accept
17 event_action = ${acl {logger}}
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
34 logwrite = . [$sending_ip_address] -> \
35 [$host_address]:$host_port
36 logwrite = . banner <$event_data>
39 accept condition = ${if eq {$event_name}{msg:fail:delivery}}
41 refused by fdqn <$host> \
42 local_part <$local_part> \
46 local_part <$local_part> \
56 local_part <$local_part> \
59 router <$router_name> \
60 transport <$transport_name>
63 accept condition = ${if eq {fail} {${listextract{2}{$event_name}}}}
66 accept condition = ${if eq {$event_name}{msg:complete}}
67 logwrite = . finished: $message_exim_id
69 accept condition = ${if !eq {$domain}{domain1}}
70 logwrite = $this_expansion_will_fail
72 accept condition = ${if eq {$event_name}{msg:delivery}}
73 acl = ev_msg_log delivery "confirmation <$event_data>"
75 accept condition = ${if eq {$event_name}{msg:host:defer}}
76 acl = ev_msg_log "host deferral" \
77 "errno <$event_defer_errno> errstr <$event_data>"
79 accept condition = ${if eq {$event_name}{msg:rcpt:defer}}
80 set acl_m_ev_lkup = ${eval:$event_defer_errno & 0xff}
81 set acl_m_ev_lkup = ${if = {$acl_m_ev_lkup}{65} {A} \
82 { ${if = {$acl_m_ev_lkup}{77} {MX} \
84 set acl_m_ev_code = 4${eval:$event_defer_errno >>8}
85 acl = ev_msg_log "rcpt deferral" \
86 "err <$event_defer_errno>:<$acl_m_ev_lkup:$acl_m_ev_code> \
90 warn logwrite = event $event_name
91 accept condition = ${if eq {tcp} {${listextract{1}{$event_name}}}}
93 accept condition = ${if eq {smtp} {${listextract{1}{$event_name}}}}
95 accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
110 route_list = * 127.0.0.1 byname
117 # ----- Transports -----
126 event_action = ${acl {logger}}