diff options
author | Omar Polo <op@cvs.openbsd.org> | 2023-12-03 11:48:53 +0000 |
---|---|---|
committer | Omar Polo <op@cvs.openbsd.org> | 2023-12-03 11:48:53 +0000 |
commit | be23463625b73627d72203d24c5e6c2291ff19dc (patch) | |
tree | 8be25d7fdce00a2a720d33a3036878bbc3725edc /usr.sbin/smtpd | |
parent | cd3be48e22a29f969bbbf04ab0b9774a3ad64ab0 (diff) |
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@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gilles@poolp.org> @@ -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); } |