History log of /openbsd/usr.sbin/smtpd/smtpctl.c (Results 1 – 25 of 172)
Revision Date Author Comments
# 0dcffd0d 31-May-2023 op <op@openbsd.org>

add missing include of time.h

spotted after a report on OpenSMTPD-portable. While here include
sys/time.h in smtpd.h, as noted in event_init(3), since it includes
event.h.

ok millert@


# e7954c7d 15-May-2023 op <op@openbsd.org>

cast to '(long long)' instead of '(long long int)'

while here adjust the spacing in some of the touched lines.
requested by deraadt@, ok tb@


# ac1395d8 25-Feb-2022 rob <rob@openbsd.org>

Whitespace.


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

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

ok jung@


# ff01b044 26-May-2021 eric <eric@openbsd.org>

replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.c
for code that runs in the daemon.

ok florian@ millert@


# 0228dab0 24-Feb-2020 millert <millert@openbsd.org>

Fix two security vulnerabilities discovered by Qualys.
An out of bounds read in smtpd allows an attacker to inject arbitrary
commands into the envelope file which are then executed as root.
Separatel

Fix two security vulnerabilities discovered by Qualys.
An out of bounds read in smtpd allows an attacker to inject arbitrary
commands into the envelope file which are then executed as root.
Separately, missing privilege revocation in smtpctl allows arbitrary
commands to be run with the _smtpq group.

show more ...


# dd673463 06-Jan-2020 gilles <gilles@openbsd.org>

do not allow passing options to smtpctl encrypt


# 1e7d002c 23-Jul-2019 gilles <gilles@openbsd.org>

include grp.h for setgroups()


# 729f2a4c 02-Jul-2019 martijn <martijn@openbsd.org>

Replace mkstemp/fdopen/unlink dances with tmpfile.
No functional change.

OK gilles@


# 5b1f635f 14-Jan-2019 eric <eric@openbsd.org>

correctly retrieve envelope strings. fixes mailq output.

ok gilles@


# 118c16f3 31-May-2018 gilles <gilles@openbsd.org>

remove 'where' parameter from all x*() functions in utils.c, it doesn't
really help us with anything, propagate the change in codebase

ok millert@


# a8e22235 24-May-2018 gilles <gilles@openbsd.org>

switch smtpd to new grammar

ok eric@


# ef15259e 14-May-2018 gilles <gilles@openbsd.org>

kill corrupt / uncorrupt queue mechanism as it has never been usable and it
will be made irrelevant when the new config comes up soon

ok eric@


# ccfb4053 26-Apr-2018 eric <eric@openbsd.org>

sync log.h with other daemons

ok gilles@


# 5b9e028d 14-Mar-2018 gilles <gilles@openbsd.org>

newaliases is so 70s, very tied to the 'db' table backend (which has not
been the default for a long time now) but users still assume this is the
way to update aliases within the MTA.

when smtpctl i

newaliases is so 70s, very tied to the 'db' table backend (which has not
been the default for a long time now) but users still assume this is the
way to update aliases within the MTA.

when smtpctl is invoked as newaliases, have it notify the daemon that it
has had the aliases table updated, no matter what backend it uses, as it
will at worst be a noop and at best do what user expected.

ok eric@

show more ...


# a8bde366 30-Jan-2018 eric <eric@openbsd.org>

don't reject smtp responses containing non-printable chars as long
as the status is valid. use strnvis() for displaying status lines
in "smtpctl show queue".

ok gilles@ sunil@


# aee31bfd 26-Jan-2018 eric <eric@openbsd.org>

allow unpriviledged user to run "encrypt" and "spf walk"

ok todd@, gilles@, sunil@


# 4636661a 06-Jan-2018 sunil <sunil@openbsd.org>

Import gilles@'s standalone spfwalk utility into smtpctl(8) as
'spf walk' command.

Ok gilles@


# 5ba55e18 27-Jul-2017 sunil <sunil@openbsd.org>

smtpctl(8): Use an int to determine mode instead of __progname.

Ok millert@ gilles@


# f90bac70 19-May-2017 eric <eric@openbsd.org>

- switch to recallocarray
- remove pre-allocation
- use a better growth pattern

ok gilles@ deraadt@


# f24248b7 09-Jan-2017 reyk <reyk@openbsd.org>

smtpd joins the 7 other daemons that share the same log.c file.

The only major difference was the "log_trace" concept that is only
used by smtpd - move it from log.c into util.c and make it a local

smtpd joins the 7 other daemons that share the same log.c file.

The only major difference was the "log_trace" concept that is only
used by smtpd - move it from log.c into util.c and make it a local
concept. This also needed to rename the global "verbose" variable to
"tracing" in a few places.

OK krw@ gilles@ eric@

show more ...


# 4dcd8201 04-Sep-2016 eric <eric@openbsd.org>

Remove the "smtpctl stop" command.
The daemon is stopped with kill(1).

ok gilles@


# 81a33c5d 03-Sep-2016 eric <eric@openbsd.org>

get rid of the type-checking system on internal messages.
bump all imsg protocol versions since message format changed.

ok gilles@ sunil@


# 4fca4105 29-Apr-2016 eric <eric@openbsd.org>

fix "smtpctl show queue" reporting "invalid" envelope state.
runtime state is not serialized with the envelope, so add it to the imsg.

ok gilles@


# 53408464 17-Mar-2016 krw <krw@openbsd.org>

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consisten

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@

show more ...


1234567