As -r1.285 does for authentication events, log address and host for
failed-command events too.
Regards,
--
Ant
Index: usr.sbin/smtpd/smtp_session.c
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/smtp_session.c,v
retrieving revision 1.285
diff -u -p -r1.285 smtp_session.c
--- usr.sbin/smtpd/smtp_session.c 29 Jul 2016 08:53:07 -0000 1.285
+++ usr.sbin/smtpd/smtp_session.c 16 Aug 2016 20:55:50 -0000
@@ -2242,8 +2242,9 @@ smtp_reply(struct smtp_session *s, char
else {
strnvis(tmp, s->cmd, sizeof tmp, VIS_SAFE | VIS_CSTYLE);
log_info("%016"PRIx64" smtp "
- "event=failed-command command=\"%s\"
result=\"%.*s\"",
- s->id, tmp, n, buf);
+ "event=failed-command command=\"%s\" "
+ "result=\"%.*s\" address=%s host=%s",
+ s->id, tmp, n, buf, ss_to_text(&s->ss),
s->hostname);
}
break;
}