diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-11 11:29:45 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-11 11:29:45 +0000 |
commit | eb1a5256215b68eae3deae39a0068cb71df3f392 (patch) | |
tree | f551291c08f738672a3fc7efeded18dba32c1005 /usr.sbin/smtpd/lka.c | |
parent | 6e758b79727840d5b9d78c9d7b7d78fee4a055f4 (diff) |
report filter responses to smtp
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r-- | usr.sbin/smtpd/lka.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c index 42ff622b599..d721e5f7c31 100644 --- a/usr.sbin/smtpd/lka.c +++ b/usr.sbin/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.222 2018/12/11 08:40:56 gilles Exp $ */ +/* $OpenBSD: lka.c,v 1.223 2018/12/11 11:29:44 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -89,6 +89,7 @@ lka_imsg(struct mproc *p, struct imsg *imsg) const char *address; const char *heloname; struct sockaddr_storage ss_src, ss_dest; + int filter_response; int filter_phase; const char *filter_param; uint32_t msgid; @@ -547,6 +548,19 @@ lka_imsg(struct mproc *p, struct imsg *imsg) lka_report_smtp_protocol_server("smtp-in", tm, reqid, response); return; + case IMSG_SMTP_REPORT_FILTER_RESPONSE: + m_msg(&m, imsg); + m_get_time(&m, &tm); + m_get_id(&m, &reqid); + m_get_int(&m, &filter_phase); + m_get_int(&m, &filter_response); + m_get_string(&m, &filter_param); + m_end(&m); + + lka_report_smtp_filter_response("smtp-in", tm, reqid, + filter_phase, filter_response, filter_param); + return; + case IMSG_MTA_REPORT_LINK_CONNECT: m_msg(&m, imsg); m_get_time(&m, &tm); |