History log of /openbsd/usr.sbin/smtpd/lka_filter.c (Results 1 – 25 of 78)
Revision Date Author Comments
# d49c07c7 12-Aug-2024 op <op@openbsd.org>

implement the report response for proc-filters too

Reported by renegm on GitHub:
<https://github.com/OpenSMTPD/OpenSMTPD/issues/1257>

ok gilles@


# 806da1f1 14-May-2024 op <op@openbsd.org>

oops, fix previous. wrong patch committed. was lacking the final \n


# a06e8449 14-May-2024 op <op@openbsd.org>

include the filter protocol version in the handshake

This adds "config|protocol|0.7" during the filters handshake, like
was done for the tables too, so that the filters can know the version
of the p

include the filter protocol version in the handshake

This adds "config|protocol|0.7" during the filters handshake, like
was done for the tables too, so that the filters can know the version
of the protocol right from the start.

ok gilles@

show more ...


# e6c7c102 23-Apr-2024 jsg <jsg@openbsd.org>

correct indentation; no functional change
ok tb@


# 8c71974f 03-Nov-2023 op <op@openbsd.org>

cast tv_usec to long for *printf

mostly for -portable; on darwin suseconds_t is an int.

ok tb@


# 51ecec67 07-Jul-2023 op <op@openbsd.org>

swap link-auth filter arguments

Fields which can contain a '|' character are kept last to avoid
ambiguities so move result before username; link-auth was likely forgot
in r1.61 of lka_filter.c when

swap link-auth filter arguments

Fields which can contain a '|' character are kept last to avoid
ambiguities so move result before username; link-auth was likely forgot
in r1.61 of lka_filter.c when the same treatment was applied to other
events.

Discovered after a report on -portable due to filter-rspamd crashing.

ok millert@

show more ...


# bba303a8 21-Jun-2023 op <op@openbsd.org>

clear errno before strtoull as it may already be set to ERANGE

noticed and ok millert@


# 56ac5201 21-Jun-2023 op <op@openbsd.org>

avoid truncation of filtered data lines

Don't copy in a buffer the filter' output for parsing as we may truncate
filter-dataline (i.e. the mail body). Instead, parse the string by
advancing the poi

avoid truncation of filtered data lines

Don't copy in a buffer the filter' output for parsing as we may truncate
filter-dataline (i.e. the mail body). Instead, parse the string by
advancing the pointer without copying or modifications.

Issue reported by Joachim Schneider on the OpenSMTPD-portable
repository.

ok millert@

show more ...


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


# ff70b891 10-May-2023 op <op@openbsd.org>

cast time_t to long long for printf, reduces the diff with -portable

ok millert@


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


# 1a5b831a 31-Dec-2020 martijn <martijn@openbsd.org>

Rename the pony process to dispatcher and klondike to crypto.

From gilles@
OK millert@ giovanni@


# 6c322044 23-Dec-2020 millert <millert@openbsd.org>

smtpd's filter state machine can prematurely release resources
leading to a crash. From gilles@


# 21522cbe 20-Dec-2020 martijn <martijn@openbsd.org>

Free filter_name in lka_filter_end

From gilles@
OK millert@ eric@


# f2bf7361 16-Sep-2020 martijn <martijn@openbsd.org>

Add the admd keyword. This can be used by filters interested in the
Authentication-Results header.

OK giovanni@


# 0124f38d 24-Apr-2020 eric <eric@openbsd.org>

strip trailing CRs at smtp level rather than io level

ok millert@


# a23c7749 17-Apr-2020 eric <eric@openbsd.org>

switch email and result fields in mail-from/rcpt-to event reports
and bump protocol version.

discussed with jung@, martijn@ and Gilles.

ok jung@


# bdf9247d 08-Jan-2020 gilles <gilles@openbsd.org>

allow using the session username in builtin filters when available


# 80acd33c 08-Jan-2020 gilles <gilles@openbsd.org>

enable builtin filtering for commit phase


# d85cc38e 08-Jan-2020 gilles <gilles@openbsd.org>

emable builtin filtering for phase DATA, no idea why we didn't earlier as
the grammar allowed it and the code was already there.


# 2beeb4db 21-Dec-2019 gilles <gilles@openbsd.org>

if a filter was attached to a relay action in config, notify instance that
it can register smtp-out events


# a7061c79 21-Dec-2019 gilles <gilles@openbsd.org>

start bringing smtp-out reporting code, lacks some events still


# 6c0f0c33 21-Dec-2019 gilles <gilles@openbsd.org>

do not pass rdns, fcrdns, ss_src and ss_dest with IMSG_FILTER_SMTP_BEGIN,
but gather the information from the link-connect reporting event instead.
this removes redundant code and makes it easier to

do not pass rdns, fcrdns, ss_src and ss_dest with IMSG_FILTER_SMTP_BEGIN,
but gather the information from the link-connect reporting event instead.
this removes redundant code and makes it easier to prepare for smtp-out.

show more ...


# b4dfc37c 14-Dec-2019 gilles <gilles@openbsd.org>

introduce a bypass keyword so that builtin filters can bypass processing of
a phase when a condition is met

suggested by several people including jung@, ok jung@


1234