DLLIST_PREPEND(&clients, client);
clients_count++;
- i_info("Connect from %s", client_remote_id(client));
+ e_info(client->event, "Connect from %s", client_remote_id(client));
if (hook_client_created != NULL)
hook_client_created(&client);
if (reason == NULL)
reason = "Connection closed";
- i_info("Disconnect from %s: %s (state=%s)", client_remote_id(client),
- reason, client_state_get_name(client));
+ e_info(client->event, "Disconnect from %s: %s (state=%s)",
+ client_remote_id(client), reason, client_state_get_name(client));
if (conn != NULL) {
client->last_state = smtp_server_connection_get_state(conn);
/* handle reply */
if (smtp_reply_is_success(proxy_reply)) {
/* if backend accepts it, we accept it too */
- i_info("%s", str_c(msg));
+ e_info(rcpt->event, "%s", str_c(msg));
/* substitute our own success message */
smtp_reply_printf(&reply, 250, "<%s> %s Saved",
/* The problem isn't with the proxy, it's with the
remote side. so the remote side will log an error,
while for us this is just an info event */
- i_info("%s", str_c(msg));
+ e_info(rcpt->event, "%s", str_c(msg));
} else {
e_error(rcpt->event, "%s", str_c(msg));
}