GCC 15 defaults to GNU C23, where an empty parameter list
specifies zero arguments. Alpine's unprototyped strucmp
declaration conflicts with its two-argument definition, and
the compiler rejects calls through its collation callback.
Build this source in GNU C17 mode so its legacy declarations
retain the intended semantics. Fedora used the same dialect
for the still-affected Alpine 2.26 release.
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2336274
Assisted-by: LLM
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
msmtpq builds the queue ID with uuidgen, and msmtp-listqueue.sh calls
grep with --colour, which BusyBox grep does not support. Without them
msmtpq fails to enqueue any mail and msmtp-listqueue.sh prints the
BusyBox grep usage instead of the queue:
/usr/bin/msmtpq: line 580: uuidgen: command not found
grep: unrecognized option: colour
Add uuidgen and grep to the dependencies of msmtp-queue.
The pr command is only used by msmtpq to print source context in its
error messages, so it is not needed for normal operation and is not
added as a dependency.
Fixes: #31176
Signed-off-by: Roberto Andrei Bolda <rbolda@taladin.ro>
The generic package test of the CI fails for dovecot-pigeonhole:
No executables in the package provided version 0.5.21.1
None of the Sieve tools has a version option. doveconf loads the
Pigeonhole settings plugin and prints its version. Check that instead.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The generic package test of the CI fails for dovecot-utils:
No executables in the package provided version 2.3.21.1
doveadm has no version option and prints only its usage. Check that
doveadm runs and look for the ABI version string compiled into it,
e.g. 2.3.ABIv21(2.3.21.1). The override replaces the generic version
check for all packages from this directory, so check dovecot --version
for the main package.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Take the Pigeonhole parts of the Dovecot security fixes from the Debian
bookworm security updates, up to 1:2.3.19.1+dfsg1-2.1+deb12u7, and apply
them to 0.5.21.1, one patch per CVE.
Fixes:
- CVE-2025-59032
- CVE-2026-27857
- CVE-2026-27858
- CVE-2026-33263
- CVE-2026-33605
- CVE-2026-40013
- CVE-2026-40016
- CVE-2026-40204
- CVE-2026-42007
- CVE-2026-42394
- CVE-2026-52681
The patch for CVE-2026-52681 needed a small change for 0.5.21.1,
described in its header. It also moves the Sieve CPU usage tracking from
the compiled scripts to a sieve-rusage file per user.
The patches add source files, so the build runs autoreconf now.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
managesieve-login is linked without an RPATH, unlike the other
Pigeonhole binaries, so it does not find its libraries in
/usr/lib/dovecot:
Error loading shared library libdovecot-login.so.0: No such file or
directory (needed by /usr/libexec/dovecot/managesieve-login)
The managesieve-login service fails to start and ManageSieve is not
available. Link with /usr/lib/dovecot as RPATH, which the other
binaries already have.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Dovecot 2.3.21.1 is the last release of the 2.3 series. Upstream fixed
the issues below in 2.4 only. Debian backported the fixes to 2.3 in its
bookworm security updates, up to 1:2.3.19.1+dfsg1-2.1+deb12u7. Take the
patches from there and apply them to 2.3.21.1, one patch per CVE.
Fixes:
- CVE-2025-59031
- CVE-2026-0394
- CVE-2026-27852
- CVE-2026-27855
- CVE-2026-27856
- CVE-2026-27857
- CVE-2026-27859
- CVE-2026-33263
- CVE-2026-33603
- CVE-2026-33604
- CVE-2026-33606
- CVE-2026-33607
- CVE-2026-40014
- CVE-2026-40015
- CVE-2026-40017
- CVE-2026-40018
- CVE-2026-40020
- CVE-2026-40203
- CVE-2026-40204
- CVE-2026-40205
- CVE-2026-42006
- CVE-2026-42008
- CVE-2026-42391
- CVE-2026-42393
- CVE-2026-42394
- CVE-2026-42395
- CVE-2026-52681
- CVE-2026-52687
- CVE-2026-73208
- CVE-2026-73209
Three of the Debian patches are already part of 2.3.21.1 and are left
out. The patches for CVE-2026-40018 and CVE-2026-40203 needed small
changes for 2.3.21.1, described in their headers.
The Debian patch for CVE-2026-42391 limits only the client_id kept from
the IMAP ID command, so with imap_id_log set the logged ID reply still
grew with every key/value pair. Limit it to the same 30 pairs as the
upstream fix does.
The fix for CVE-2026-33607 is a mitigation, it limits IMAP LIST pattern
matching to 20000 steps. The fix for CVE-2026-40017 converts strmap
files to a new format, which older Dovecot versions cannot read.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
GNU make treats a line that starts with a tab in a rule context as part
of a recipe, even when it looks like a variable definition [1].
Build/Compile and Package/mailsend/install are recipes and start with a
tab.
The Package/mailsend/default, Package/mailsend and
Package/mailsend-nossl blocks only hold variable definitions, so indent
them with two spaces like the CONFLICTS line.
The generated package metadata is unchanged.
[1] https://www.gnu.org/software/make/manual/html_node/Recipe-Syntax.html
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
mailsend and mailsend-nossl both install /usr/bin/mailsend, but nothing
marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Since alpine 2.24, upstream requires OpenSSL, so the nossl variant was
marked @BROKEN in commit 29b91b0141 ("alpine: update to 2.24") and
cannot be built.
Drop it. With only the OpenSSL variant left, also drop the build
variant handling and pass the OpenSSL configure arguments
unconditionally. The resulting alpine package is unchanged.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Security release:
- Proxy protocol: fix an out-of-bounds read in V1 header parsing
(GCVE-25-2026-09-50-1).
- Proxy protocol: do not use uninitialised data as the length of an
incompletely received V2 header (GCVE-25-2026-09-55-1).
- GnuTLS: fix a use-after-free when a client closes the connection
during session startup (GCVE-25-2026-09-51-1).
- Block more SMTP smuggling variants, extending the fixes for
CVE-2023-51766 (GCVE-25-2026-09-56-1).
All patches apply without changes.
Link: https://code.exim.org/exim/exim/src/tag/exim-4.100.1/doc/doc-txt/ChangeLog
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
downloads.exim.org keeps only the current release in exim4/ and moves
older tarballs to exim4/old/. Since 4.100.1 came out, the download of
4.100 from the primary URL fails with 404 and only works through the
OpenWrt mirror.
Add exim4/old/ as a second source URL.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Security release, plus one further release the same day.
4.99.5:
JH/01 Restrict named-queue names. Previously, files could be corrupted by
poor choices of name. (GCVE-25-2026-07-45-1)
JH/02 Do not expand a local_part gotten from a .forward file, under
force_command in a pipe transport. (GCVE-25-2026-07-45-3)
4.100: fixes a use-after-free in duplicate processing combined with
continued transport; fixes crashes after deferred local deliveries
from an uninitialised pointer, and excessive DNS lookups on temporary
errors for remote deliveries, both from a mistaken 4.99 optimisation;
fixes a memory leak in DNS lookups present since 4.95; fixes
Proxy-protocol connections evaluating host-based ACL options
(host_reject_connection, helo_verify_hosts, message_size_limit, and
others) against the proxy's own address/name instead of the real
client behind it. Also: dbm lookups no longer return tainted data by
mistake, RFC2047-encoding header size counting, DMARC for empty
envelope senders, and a number of smaller build/portability fixes.
Refreshed patches/030-openssl-deprecated.patch,
patches/100-localscan_dlopen.patch and patches/200-fix-build.patch
for context moved by the version bump. patches/100 also needed six
log_write() call sites fixed: 4.100 dropped log_write()'s leading
selector argument, so the patch's dlopen-failure diagnostics were
passing LOG_MAIN|LOG_REJECT into the format-string slot. All four
patches, including 050, now carry git am headers.
Extended patches/050-fix-crosscompile.patch: 4.100 fixed the dkim.o
partial-link rule in src/miscmods/Makefile (raw `ld -r` -> `$(LD) -r`)
but left the sibling dmarc.o/dmarc_native.o and sieve_filter.o rules
on the unqualified `ld`, which cannot parse a foreign architecture's
relocations when cross-compiling. Applied the same fix to both; these
are the only two `ld -r` sites left in the pristine 4.100 tree.
Build-verified locally for the gnutls and ldap variants on
x86_64/musl.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Generic version checks were introduced in actions-shared-workflows,
making these individual test.sh files obsolete.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
4.99.3 (security release):
* Addresses EXIM-Security-2026-05-01.1: a remotely reachable
Use-After-Free vulnerability in Exim's BDAT (binary data
transmission) body parsing path when using the GnuTLS
backend. This can lead to heap corruption and potential code
execution. Affects 4.97 through 4.99.x when built with GnuTLS
support AND with STARTTLS and CHUNKING advertised.
Reported by xbow security.
Previous security releases folded into this bump:
4.99.2 (security release):
* Addresses Exim-Security-2026-04.1, covering 4 CVEs:
- CVE-2026-40684: Possible crash with malicious DNS data (musl libc)
- CVE-2026-40685: Possible OOB read/write on corrupt JSON in header
- CVE-2026-40686: Possible OOB read with large UTF8 trailing characters
- CVE-2026-40687: Possible OOB read/write with SPA authenticator
4.99.1 (security release):
* Re-incarnation of CVE-2025-26794, ports fixes from 4.98.1/4.98.2.
Link: https://exim.org/static/doc/security/EXIM-Security-2026-05-01.1/
Link: https://git.exim.org/exim.git/blob/refs/tags/exim-4.99.3:/doc/doc-txt/ChangeLog
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Seems a lot of packages are just getting abandoned by people.
Will pick these up and see them through.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
As described in #28261 Not compiled with OpenSSL, the SSL variant of
the mailsend package is not actually being compiled with OpenSSL.
This is due to an upstream configure check borrowed from an ancient
version of BIND, which no longer works.
As a workaround we add `-DHAVE_OPENSSL=1` to the `TARGET_CFLAGS` when
building the SSL variant.
This results in a complaint about COPTS not being honoured correctly,
but results in `mailsend` compiled with OpenSSL (i.e. works).
Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
The current pigeonhole Makefile is more complex than it needs to be, with
too many unique variables and the resulting package version
is currently this one:
```
dovecot-pigeonhole_2.3.21.0.5.21-r1_aarch64_cortex-a53.ipk
```
and based on Repology [1], it looks like we are the only GNU/Linux
distribution, who includes dovecot version and pigeonhole version
together. We should not include the extra dovecot version, because
even project [2] website does not do it except their tarball.
What we can do better is that we added and modify a little bit
EXTRA_DEPENDS, which ensures that pigenhole 0.5.21.1 will be used
for Dovecot 2.3, because of that, we can have package version as
it should be.
```
dovecot-pigeonhole_0.5.21-r1_arm_cortex-a9_vfpv3-d16.ipk
```
Because of the changed versioning, we can remove the dynamic shell
execution for version extraction.
[1] https://repology.org/project/dovecot-pigeonhole/versions
[2] https://pigeonhole.dovecot.org/download
Fixes: 6c6a40ab57 ("pigeonhole: fix runtime dependency on dovecot's ABI")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Use $(XARGS) variable instead of plain xargs command, consistent with
the dovecot package implementation. Remove unnecessary space in
EXTRA_DEPENDS version constraint.
Fixes failing error on buildbot:
```
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
Makefile:62: *** multiple target patterns. Stop.
time: package/feeds/packages/pigeonhole/compile#0.52#0.42#1.15
```
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Buildbot caught an error:
"Berkeley DB file locking needs flock() for version 5.x (and greater?)"
It is caused by leakage of host-installed Berkley DB into the build.
Since libmilter is not using the DB and because of convoluted build
process of sendmail, we do the workaround - define a macro which
prevents the error without affecting libmilter binary.
Also change source URL from FTP to HTTPS.
Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
Buildbot builds started failing with this:
[...]
install -c -o buildbot -g buildbot -m 644 ../../include/libmilter/mfapi.h /builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/sendmail-8.16.1/ipkg-install/usr/include/libmilter/mfapi.h
install: invalid user 'buildbot'
Extend 010-enable-nonroot-install.patch to remove "-o U -g G" from more
install targets.
Signed-off-by: W. Michael Petullo <mike@flyn.org>
glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
The emailrelay-filter-copy was removed and --filter=copy: can be used instead.
Minor improvement of description.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
--as-client mode.
dnsbl: to reject bad IPs.
spool_dir and delivery_dir: to set storage on USB disk.
filter: for SpamAssassin.
POP3 options.
Specify interface.
Use --forward-to-some by default.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Since v2.3.1 --server-tls-certificate and --client-tls-certificate may be comma separated list of privkey and fullchain so users don't need to merge the both files.
The privkey must be firts, the cert second.
Reflect this in config samples.
Alternatively instead of comma separated the emailrelay allows just pass two --server-tls-certificate options: one for a privkey and second time for a cert.
So the server_tls_certificate option may be a list. But instead to make it easier to configure from UCI let's add a separate option server-tls-key which is dedicated for a privkey.
Similarly, the client-tls-key is a private key part for the --client-tls-certificate
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>