328 Commits

Author SHA1 Message Date
sthen
9ff8ec765e Add an upstream commit to Dovecot
30e69471792aec818dbbfa64adb868db14a6d8e2
From: Timo Sirainen <timo.sirainen@open-xchange.com>
Date: Wed, 18 May 2022 11:31:44 +0300
Subject: [PATCH] auth: Fix assert-crash in iterating multiple userdbs
2022-05-25 12:12:42 +00:00
sthen
db0e6d9b3f update to Dovecot 2.3.19 (amongt other things this fixes an issue with
replication not always working that I've run into with 2.3.18) and
Dovecot-pigeonhole to 0.5.19.  OK Brad (maintainer)
2022-05-13 12:50:16 +00:00
naddy
348a3e29c5 drop RCS Ids 2022-03-11 19:34:31 +00:00
robert
7f2442c974 ship a default dovecot login class in the dovecot server package 2022-02-18 16:11:27 +00:00
sthen
09fb1cde48 update to dovecot-2.3.18, from Brad 2022-02-05 13:28:40 +00:00
sthen
170ee78f1d dovecot: fix failures in some situations where the user has no configured
home directory, backport from upstream, ok brad (maintainer)
2021-12-15 12:57:06 +00:00
sthen
5eb37570ae rm empty patches 2021-12-15 12:24:56 +00:00
sthen
9e9d376359 update to dovecot-2.3.17.1, from Brad 2021-12-08 14:10:07 +00:00
sthen
305ce32261 list known dependencies in a comment in the Makefile as a reminder for
anyone doing commits to -stable (we don't have a good discovery mechanism
for what to rebuild for -stable packages, so PKGSPEC is ignored for that)..
2021-09-13 09:20:18 +00:00
sthen
2395da476d build Dovecot with icu4c support, tweak/ok brad 2021-09-02 21:44:28 +00:00
sthen
3b9649506d backport a couple of upstream Dovecot commits, ok Brad
- indexer crash if the client disconnects while waiting for command reply
(most likely if an IMAP search triggered slow fts indexing)

- "(i_stream_read_memarea): assertion failed: (!stream->blocking)" when
reading with lz4 compression if the header was read only partially.
2021-08-16 17:43:21 +00:00
sthen
166cb1ceb5 update to Dovecot 2.3.16 / Dovecot-pigeonhole 0.5.16, from Brad 2021-08-07 12:03:58 +00:00
sthen
e02f604d53 update to Dovecot 2.3.15
CVE-2021-29157: Dovecot does not correctly escape kid and azp fields in
JWT tokens. This may be used to supply attacker controlled keys to
validate tokens, if attacker has local access.

CVE-2021-33515: On-path attacker could have injected plaintext commands
before STARTTLS negotiation that would be executed after STARTTLS
finished with the client.
2021-06-22 11:29:26 +00:00
sthen
203f676451 add an @sample that I missed 2021-03-08 17:56:18 +00:00
sthen
f269847025 update to Dovecot 2.3.14, ok Brad
Note that some components have been removed in this release, summarised
below but check changelogs before updating. https://dovecot.org/doc/NEWS

* Remove autocreate, expire, snarf and mail-filter plugins.

expire and autocreate can be replaced by "autoexpunge" and "auto"
mailbox settings instead. mail-filter was a bit problematic anyway.
snarf is not often used.

* Remove cydir storage driver.

This was meant for benchmarking and stress testing index handling
and is not normally used in a real server.

* Remove XZ/LZMA write support. Read support will be removed in future release.

If you're using XZ/LZMA then disable it for writes in your configuration
(mailboxes can have a mixture of different types of compression, or some
and no compression) and plan to migrate your existing storage to either
no compression or alternative compression.
2021-03-08 13:08:27 +00:00
sthen
825f360895 Dovecot tweaks: depend on libstemmer/libexttextcat to build snowball filters,
fix paths to tools (pdftotext, etc) in decode2text.sh which can optionally be
used to index attachments. OK Brad.
2021-02-23 14:27:33 +00:00
sthen
4c699c9e16 enable debug packages for Dovecot/-piugeonhole, suggested by anton@, ok brad 2021-01-20 14:57:49 +00:00
sthen
ec9c818421 add a gratuitous bump to dovecot-fts-xapian; dovecot plugins must be
built against the exact version and this is handled correctly by PKGSPEC
but the scripts used to decide which packages to build for -stable can't
cope with this

add warnings to all the ports known to have this type of version check
2021-01-11 22:17:55 +00:00
sthen
2c24e71ce7 update to Dovecot 2.3.13, ok Brad 2021-01-07 17:17:54 +00:00
sthen
5f2e5a715f Dovecot: add patch to avoid a null printf, from upstream
ok Brad
2020-08-13 19:07:00 +00:00
sthen
6cd5416dab update to Dovecot 2.3.11.3, ok Brad (maintainer)
includes some crash fixes, see https://github.com/dovecot/core/blob/2.3.11.3/NEWS
2020-08-12 15:21:11 +00:00
sthen
25571a8846 update to Dovecot 2.3.10.1, ok Brad
DOV-3784, CVE-2020-10957: Sending malformed NOOP command causes
crash in submission, submission-login or lmtp service.

DOV-3875, CVE-2020-10958: Sending command followed by sufficient
number of newlines triggers a use-after-free bug that might crash
submission-login, submission or lmtp service.

DOV-1745, CVE-2020-10967: Sending mail with empty quoted localpart
causes submission or lmtp component to crash.
2020-05-18 17:45:53 +00:00
naddy
d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00
sthen
db4c50aa44 dovecot: sync PLIST closer to what Brad had (I was confused as I had a local
update before he sent his). Keep dovecot-sysreport commented for now as it
requires GNU grep options.
2020-03-07 11:36:52 +00:00
sthen
e343a5291d update to Dovecot 2.3.10, from Brad, plus I synced plist and wantlib 2020-03-07 09:53:24 +00:00
sthen
cdf51fadc5 update to Dovecot 2.3.9.3, from Brad (maintainer).
CVE-2020-7046

lib-smtp doesn't handle truncated command parameters properly, resulting
in infinite loop taking 100% CPU for the process. This happens for LMTP
(where it doesn't matter so much) and also for submission-login where
unauthenticated users can trigger it.

CVE-2020-7957

Snippet generation crashes if:
- message is large enough that message-parser returns multiple body blocks
- The first block(s) don't contain the full snippet (e.g. full of whitespace)
- input ends with '>'

Sending specially crafted email can cause mailbox to have permanently
unaccessible mail, or the mail can be stuck in delivery.
2020-02-12 15:00:45 +00:00
sthen
4b4866a59a update to Dovecot 2.3.9.2 and pigeonhole 0.5.9, from Brad.
CVE-2019-19722
2019-12-15 23:57:22 +00:00
sthen
6a70ebb4c4 update to Dovecot 2.3.8, from Brad 2019-10-14 20:41:44 +00:00
sthen
6b2231038c update to Dovecot 2.3.7.2 / Dovecot Pigeonhole 0.5.7.2, from Brad
CVE-2019-11500 https://dovecot.org/pipermail/dovecot/2019-August/116873.html
2019-08-28 22:02:07 +00:00
sthen
026519bb92 Update to Dovecot 2.3.7.1 / Pigeonhole 0.5.7.1, these have a couple of
small post-2.3.7 fixes including one which fixes sync if sieve is in use
and mail_attribute_dict is not set. From Brad.
2019-07-25 21:41:37 +00:00
sthen
419271df6a oops, forgot to remove this patch when backing out 2019-07-16 20:42:26 +00:00
sthen
cc9d78b8ee Revert the Dovecot update for now, there are some problems with replication
e.g. https://www.mail-archive.com/dovecot@dovecot.org/msg78030.html
2019-07-16 16:14:57 +00:00
sthen
909d85a3fa update to Dovecot 2.3.7, from Brad 2019-07-13 13:30:11 +00:00
sthen
3318ced016 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:46:54 +00:00
sthen
32ce2c0794 update to Dovecot 2.3.6, from Brad:
- CVE-2019-11494: Submission-login crashed with signal 11 due to null
pointer access when authentication was aborted by disconnecting.

- CVE-2019-11499: Submission-login crashed when authentication was
started over TLS secured channel and invalid authentication message was
sent.
2019-05-02 22:06:13 +00:00
danj
9a75556f29 Bump limit, from Hiltjo Posthuma
Remove mention about full-text search since the internal FTS indexer
was removed and it's out-of-process now. Requested by sthen@

No feedback from maintainer.
2019-05-01 13:41:20 +00:00
sthen
ca2be96654 security update to Dovecot 2.3.5.2, from Brad
CVE-2019-10691: Trying to login with 8bit username containing invalid
UTF8 input causes auth process to crash if auth policy is enabled. This
could be used rather easily to cause a DoS. Similar crash also happens
during mail delivery when using invalid UTF8 in From or Subject header
when OX push notification driver is used.
2019-04-18 17:04:47 +00:00
sthen
93b426716c update to Dovecot 2.3.5.1, from Brad
CVE-2019-7524: Buffer overflow when reading extension header from dovecot index files
2019-03-28 14:38:10 +00:00
sthen
a1223aedc9 update to Dovecot 2.3.5, from Brad 2019-03-06 21:53:06 +00:00
sthen
0f166e1ebb Remove USE_LIBTOOL=gnu, the test program that had compile failures with
base libtool is no longer present, and everything else seems fine. ok Brad.
2019-02-27 21:49:58 +00:00
sthen
c429595b71 update to Dovecot 2.3.4.1, fixing some issues with client certificates.
ok brad (maintainer)

* CVE-2019-3814: If imap/pop3/managesieve/submission client has trusted
certificate with missing username field (ssl_cert_username_field), under
some configurations Dovecot mistakenly trusts the username provided via
authentication instead of failing.

* ssl_cert_username_field setting was ignored with external SMTP
AUTH, because none of the MTAs (Postfix, Exim) currently send the
cert_username field. This may have allowed users with trusted
certificate to specify any username in the authentication. This bug
didn't affect Dovecot's Submission service.
2019-02-08 13:34:40 +00:00
sthen
d5242fc8a1 dovecot patch tweak, from Brad (no package change):
Update to the patch from upstream and add use PRIu64 format patch.
2019-01-16 10:25:46 +00:00
sthen
630a5300d1 update to Dovecot 2.3.4, from Brad (maintainer) 2018-11-24 12:02:49 +00:00
sthen
84cfcf5eba Update to dovecot-2.3.3. N.B. see https://wiki.dovecot.org/Upgrading/2.3
for required configuration changes, some settings especially ssl-related
have changed.

Initial diff from Renaud Allard, further changes from Brad.
2018-10-24 19:42:36 +00:00
espie
f4b7f81318 convert to PKGSTEM 2018-09-04 12:46:09 +00:00
sthen
34c88c30c0 update to dovecot-2.2.36, from Brad 2018-05-29 14:25:11 +00:00
sthen
96da226e8f update to Dovecot 2.2.35, ok brad 2018-03-29 23:50:28 +00:00
sthen
dd456311ac If SSL_CTX_set_min_proto_version is found, Dovecot enables some code to
convert ssl_protocols strings to min/max values. Patch to neuter the autoconf
check because this code doesn't work correctly (in particular it doesn't
handle strings with !SSLv2) and fallback to the old working code instead.

No reply to https://www.dovecot.org/pipermail/dovecot/2018-March/111260.html
but the code is different in Dovecot master/2.3 (it looks like they did it
this way in 2.2 so they could use the 1.1-api functions without config
changes, but it backfired).

ok Brad
2018-03-15 22:20:54 +00:00
sthen
d3f16df230 security update to Dovecot 2.2.34. while there, also fix the default TLS
protocol string to avoid using !SSLv2 which is not supported. ok juanfra@ Brad

* CVE-2017-15130: TLS SNI config lookups may lead to excessive memory usage,
causing imap-login/pop3-login VSZ limit to be reached and the process
restarted. This happens only if Dovecot config has local_name { } or local
{ } configuration blocks and attacker uses randomly generated SNI servernames.

* CVE-2017-14461: Parsing invalid email addresses may cause a crash or leak
memory contents to attacker. For example, these memory contents might contain
parts of an email from another user if the same imap process is reused for
multiple users.

* CVE-2017-15132: Aborted SASL authentication leaks memory in login process.
2018-03-10 21:54:30 +00:00
rpe
9a8b5ccd06 Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.

discussed with and OK aja@
OK tb
2018-01-11 19:27:01 +00:00