not_good:
{
-#ifndef DISABLE_EVENTS
+#ifndef DISABLE_EVENT
const uschar * s = NULL;
BOOL save_flag = f.search_find_defer;
uschar * save_serr = search_error_message;
/*XXX what other state could an expansion in the eventhandler mess up? */
search_error_message = save_serr;
f.search_find_defer = save_flag;
-#endif /*EVENTS*/
+#endif /*EVENT*/
return rc;
}
}
queue_run_in_order
+.ifdef _HAVE_EVENT
event_action = ${acl {ev_log}}
+.endif
#
begin acl
+.ifdef _HAVE_EVENT
ev_log:
accept logwrite = event $event_name
+.endif
rcpt:
accept hosts = HOSTIPV4
smtp:
driver = smtp
+.ifdef _HAVE_EVENT
event_action = ${acl {ev_log}}
+.endif
hosts_try_fastopen = :
bad_tpt:
driver = smtp
connect_timeout = 1s
+.ifdef _HAVE_EVENT
event_action = ${acl {ev_log}}
+.endif
tofile:
driver = appendfile
file = DIR/test-mail/$local_part
create_file = DIR/test-mail
user = CALLER
+.ifdef _HAVE_EVENT
event_action = ${acl {ev_log}}
+.endif
begin retry
hide socks_proxy = HOSTIPV4 port=PORT_D OPT
hosts_try_fastopen = ${if eq {$local_part}{user_tfo} {*}}
debug_print = transport_name <$transport_name>
+.ifdef _HAVE_EVENT
event_action = ${if eq {smtp:connect}{$event_name} {${acl {logger}}} {}}
+.endif
# End
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = ${if match {$local_part}{^noverify} {*}{:}}
tls_try_verify_hosts = *
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
send_to_server2:
driver = smtp
hosts_try_fastopen = :
tls_verify_certificates = CDIR/CA/CA.pem
tls_verify_cert_hostnames = :
+.ifdef _HAVE_EVENT
event_action = ${acl {log_resumption}}
+.endif
# ----- Retry -----
-# Arbitrary expansion after transport
-# (EXPERIMENTAL_EVENT)
+# Events
#
need_ipv4
munge timeout_errno