summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 559cf408384..05425f4189f 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.275 2016/06/15 21:52:47 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.276 2016/06/17 18:56:51 otto Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -675,7 +675,7 @@ smtp_session(struct listener *listener, int sock,
rfc2822_body_callback(&s->rfc2822_parser,
dataline_callback, s);
- if (hostname || listener->local) {
+ if (hostname || listener->local || listener->port == 587) {
rfc2822_missing_header_callback(&s->rfc2822_parser, "date",
header_missing_callback, s);
rfc2822_missing_header_callback(&s->rfc2822_parser, "message-id",