History log of /openbsd/usr.sbin/smtpd/mda_unpriv.c (Results 1 – 9 of 9)
Revision Date Author Comments
# 01523086 15-Mar-2024 op <op@openbsd.org>

set ORIGINAL_RECIPIENT in the environment of mda scripts

mostly for compatibility with postfix since some mdas (like
public-inbox) make use of it.

diff from Philipp (philipp+openbsd [at] bureaucrac

set ORIGINAL_RECIPIENT in the environment of mda scripts

mostly for compatibility with postfix since some mdas (like
public-inbox) make use of it.

diff from Philipp (philipp+openbsd [at] bureaucracy [dot] de)
ok gilles@

show more ...


# d3140113 14-Jun-2021 eric <eric@openbsd.org>

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@


# d8fe1c91 01-Jun-2020 chrisz <chrisz@openbsd.org>

Run lmtp deliveries as SMTPD_USER instead of the recipient user.

ok millert@


# 43304138 02-Feb-2020 gilles <gilles@openbsd.org>

add SENDER to mda environment and teach lmtp to use that instead of command
line parameter. this allows simplifying lmtp command line and it would have
prevented the unpriv command exec for LMTP in r

add SENDER to mda environment and teach lmtp to use that instead of command
line parameter. this allows simplifying lmtp command line and it would have
prevented the unpriv command exec for LMTP in recent advisory.

ok millert@ and jung@

show more ...


# f67bab36 27-Dec-2018 gilles <gilles@openbsd.org>

extract subaddress from last resolved node, not from dest or rcpt address
which was incorrect and can lead to ambiguous cases, this will affect the
people who were using subaddresses within aliases t

extract subaddress from last resolved node, not from dest or rcpt address
which was incorrect and can lead to ambiguous cases, this will affect the
people who were using subaddresses within aliases themselves AND expected
deliveries to a maildir subdir of the recipient user.

ok eric@

show more ...


# f68f476f 06-Dec-2018 gilles <gilles@openbsd.org>

in mda variables expansions, do not consider empty strings as errors since
an empty %{sender} is really a mailer-daemon and not an error

reported and initial diff by Lauri Tirkkonen <lotheac@iki.fi>

in mda variables expansions, do not consider empty strings as errors since
an empty %{sender} is really a mailer-daemon and not an error

reported and initial diff by Lauri Tirkkonen <lotheac@iki.fi>
commit is a revised version of the diff based on a discussion with eric@

show more ...


# 6279b358 02-Dec-2018 gilles <gilles@openbsd.org>

err -> errx

diff from Lauri Tirkkonen <lotheac@iki.fi>


# d0df4e7a 04-Jun-2018 gilles <gilles@openbsd.org>

add support for mda wrappers allowing postmaster to define command wrappers
that will be executed (with recipient privileges) before calling the users'
mail delivery agent

ok eric@


# 01472467 03-Jun-2018 gilles <gilles@openbsd.org>

split forkmda() in two:
- forkmda() creates the process that will be used for the delivery and does
the switching of privileges then calls mda_unpriv()
- mda_unpriv() runs with privileges of the re

split forkmda() in two:
- forkmda() creates the process that will be used for the delivery and does
the switching of privileges then calls mda_unpriv()
- mda_unpriv() runs with privileges of the recipient, it expands variables,
sets up environment and executes the mda

ok millert@ and eric@

show more ...