From 137da685c07eb1d7ca6c667a51da0952927b4dea Mon Sep 17 00:00:00 2001 From: op Date: Sun, 3 Dec 2023 11:48:52 +0000 Subject: [PATCH] enable DSN (Delivery Status Notification) for the implicit socket too DSN is implicitly enabled when using `listen on sock' but it's not for the implicit socket, avoid this incoherence by enabling it on the implicit socket too. Report and diff by Tassilo Philipp (tphilipp at potion-studios dot com) ok millert@ --- usr.sbin/smtpd/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 4c9ea85ffb6..b5cddb909b9 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.293 2023/12/01 09:25:49 op Exp $ */ +/* $OpenBSD: parse.y,v 1.294 2023/12/03 11:48:52 op Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -3123,6 +3123,7 @@ parse_config(struct smtpd *x_conf, const char *filename, int opts) /* If the socket listener was not configured, create a default one. */ if (!conf->sc_sock_listener) { memset(&listen_opts, 0, sizeof listen_opts); + listen_opts.flags |= F_EXT_DSN; create_sock_listener(&listen_opts); } -- 2.20.1