315 Commits

Author SHA1 Message Date
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
sthen
7a0a5540f3 update to Dovecot 2.2.33.2, from Brad.
- doveadm: Fix crash in proxying (or dsync replication) if remote is
running older than v2.2.33
- auth: Fix memory leak in %{ldap_dn}
- dict-sql: Fix data types to work correctly with Cassandra
2017-11-05 19:27:56 +00:00
sthen
87f7368ab5 update to Dovecot-2.2.33.1, from Brad. 2017-10-13 10:08:46 +00:00
sthen
b01b304cc6 Build Dovecot's fts-solr plugin (solr itself is not currently in packages;
I've tested this against manually-installed solr 6.6.1 running with jdk 1.8
on OpenBSD).

ok Brad (maintainer).
2017-09-22 22:53:08 +00:00
sthen
d852f4b840 update to Dovecot 2.2.32, from Brad (and same diff here). (Amongst other
things, fixes a fairly annoying bug with replication not being able to
recover from index problems in some versions).
2017-08-28 21:39:14 +00:00
sthen
5e964ab0df bump LIBCXX/LIBECXX/COMPILER_LIBCXX ports. 2017-07-26 22:45:14 +00:00
espie
8ac47fd9c6 use COMPILER_LIBCXX where applicable 2017-07-16 19:18:47 +00:00
sthen
4f4fb6b97c update to dovecot-2.2.31, from Brad 2017-07-11 23:04:43 +00:00
sthen
77d8504823 update to dovecot-2.2.30.1, from Brad 2017-06-05 15:26:32 +00:00
sthen
7d98aa1a61 bugfix update to Dovecot 2.2.29.1, from Brad 2017-04-15 21:56:13 +00:00
sthen
8410a1495a update to Dovecot 2.2.29, from Brad.
* passdb/userdb dict: Don't double-expand %variables in keys. If dict
   was used as the authentication passdb, using specially crafted
   %variables in the username could be used to cause DoS (CVE-2017-2669)
2017-04-11 21:02:09 +00:00
sthen
bcbf44ab87 use LIBCXX 2017-04-10 11:46:18 +00:00
sthen
ab26085647 backport fix for dovecot's trash plugin, "Panic: file mail-namespace.c:
line 709 (mail_namespace_find): assertion failed: (ns != NULL)". ok brad
2017-03-02 11:25:01 +00:00
sthen
c552972c0d update to Dovecot 2.2.28, ok Brad 2017-02-28 00:33:29 +00:00