History log of /openbsd/usr.sbin/smtpd/mail.lmtp.c (Results 1 – 16 of 16)
Revision Date Author Comments
# d3140113 14-Jun-2021 eric <eric@openbsd.org>

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

ok jung@


# 1997d66f 23-Jan-2021 rob <rob@openbsd.org>

Remove unused variables found by clang. Additional unused var spotted by eric@.

OK mvs@, eric@


# 7d506d68 16-Mar-2020 millert <millert@openbsd.org>

Initialize session.rcptto to NULL before parsing command line optinos.
Otherwise, if neither -r nor -u is specified, it will be used uninitialized.
Found by tobhe@; OK tobhe@ deraadt@


# 3d02c75d 15-Mar-2020 millert <millert@openbsd.org>

Add missing casts to unsigned char when using ctype(3).
From Hiltjo Posthuma


# 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 ...


# 9d327827 26-Nov-2019 gilles <gilles@openbsd.org>

in mail.lmtp.c, split LMTP connection fd into two FILE * streams

diff from fgma on github


# 3131edd7 03-Oct-2019 gilles <gilles@openbsd.org>

free() destination server copy, not a real leak since the program is short
lived but still


# ccc94729 12-Aug-2019 tim <tim@openbsd.org>

Prepend a dot to every line that starts with a dot -- not merely the
ones that consist of a single dot.

OK gilles@


# 776f254e 11-Aug-2019 tim <tim@openbsd.org>

Change all error exits to EX_TEMPFAIL so that mail rejected by the LMTP
server stays queued instead of being bounced.

Also improve getline(3) error handling and remove unreachable code.

OK sunil@ a

Change all error exits to EX_TEMPFAIL so that mail rejected by the LMTP
server stays queued instead of being bounced.

Also improve getline(3) error handling and remove unreachable code.

OK sunil@ a while ago, "please get it in" gilles@

show more ...


# 47d992ef 30-Jan-2019 sunil <sunil@openbsd.org>

Check ferror(3) on the right stream.

Ok gilles@


# 3520deb8 29-Jan-2019 gilles <gilles@openbsd.org>

strip \r from lmtp responses

ok sunil@


# 6b4fcf69 21-Jan-2019 sunil <sunil@openbsd.org>

While using buffered stdio over a socket, fflush(3) command before
reading the response.

Ok eric@ jung@


# 460f7b42 21-Oct-2018 gilles <gilles@openbsd.org>

do not consider connect() errors as permfail in the lmtp mda

issue spotted and fix tested by Atanas Vladimirov <vlado@bsdbg.net>


# 909acb05 29-May-2018 gilles <gilles@openbsd.org>

it turns out we can provide syntaxic sugar for an LMTP action in smtpd.conf
which should please our users ;-)

while at it get rid of unix:/inet: prefixes in LMTP destinations, we either
use an absol

it turns out we can provide syntaxic sugar for an LMTP action in smtpd.conf
which should please our users ;-)

while at it get rid of unix:/inet: prefixes in LMTP destinations, we either
use an absolute path for a UNIX socket or it's necessarily a network socket
so '/' as the first char of the destination makes the prefixes irrelevant.

show more ...


# aa0e0035 09-Aug-2017 gilles <gilles@openbsd.org>

at the exception of mail.local, smtpd never executes an MDA as root.

the check is performed daemon-side before even forking the child process,
but let's also check euid in the mda we ship in case so

at the exception of mail.local, smtpd never executes an MDA as root.

the check is performed daemon-side before even forking the child process,
but let's also check euid in the mda we ship in case someone executes them
by hand and needs to see an explicit error message.

show more ...


# 6c4a8d13 14-Feb-2017 gilles <gilles@openbsd.org>

add new implementation of a standalone LMTP client which will deprecate the
builtin delivery_lmtp.c

ok sunil@, jung@