Package: dovecot / 1:2.4.1+dfsg1-9

Metadata

Package Version Patches format
dovecot 1:2.4.1+dfsg1-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
skip rfc subdir.patch | (download)

pigeonhole/configure.ac | 1 0 + 1 - 0 !
pigeonhole/doc/Makefile.am | 1 0 + 1 - 0 !
2 files changed, 2 deletions(-)

 don't try to build doc/rfc subdir components
0001 lda Fix using USER environment if d hasn t been spec.patch | (download)

src/lda/main.c | 10 7 + 3 - 0 !
1 file changed, 7 insertions(+), 3 deletions(-)

 [patch] lda: fix using user environment if -d hasn't been specified

This became broken at some point.

0002 lda Default mail_home HOME environment if not using .patch | (download)

src/lda/main.c | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 [patch] lda: default mail_home=$home environment if not using userdb
 lookup

The previous code to do this was removed by
e57d5b9002f910c095ee5b55821395fcf1da016a

Use _FORTIFY_SOURCE level 3.patch | (download)

m4/dovecot.m4 | 6 3 + 3 - 0 !
pigeonhole/m4/dovecot.m4 | 6 3 + 3 - 0 !
2 files changed, 6 insertions(+), 6 deletions(-)

 use _fortify_source level 3

fit 32 bit test integers.patch | (download)

src/lib/test-event-filter.c | 48 24 + 24 - 0 !
1 file changed, 24 insertions(+), 24 deletions(-)

---
bug1104549 gssapi regression.patch | (download)

src/auth/mech-gssapi.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix gssapi regression
 Dovecot 2.4 introduced a regression that broke GSSAPI authentication for
 some clients.  This patch contains a fix provided by the upstream maintainers.
fix man errors.patch | (download)

doc/man/doveadm-deduplicate.1 | 8 4 + 4 - 0 !
doc/man/doveadm-fetch.1 | 2 1 + 1 - 0 !
doc/man/dovecot-lda.1 | 5 3 + 2 - 0 !
3 files changed, 8 insertions(+), 7 deletions(-)

 fix groff errors in upstream manpages
bug1106784_Fix LDAP SASL auth support.patch | (download)

src/auth/db-ldap-settings.c | 12 12 + 0 - 0 !
1 file changed, 12 insertions(+)

 [patch] fix ldap sasl auth support

961275fdb54878fdfa4ee1b9f1a4f00e82bf4a83 moved code without creating a
way to have HAVE_LDAP_SASL defined there.

Copy the preprocessor block from src/auth/db-ldap.c to fix this.

auth__Use_AUTH_CACHE_KEY_USER_instead_of_per database.patch | (download)

src/auth/auth-settings.h | 2 2 + 0 - 0 !
src/auth/passdb-bsdauth.c | 4 1 + 3 - 0 !
src/auth/passdb-oauth2.c | 2 1 + 1 - 0 !
src/auth/passdb-pam.c | 3 2 + 1 - 0 !
src/auth/passdb-passwd.c | 3 1 + 2 - 0 !
src/auth/userdb-passwd.c | 3 1 + 2 - 0 !
6 files changed, 8 insertions(+), 9 deletions(-)

 [patch] auth: use auth_cache_key_user instead of per-database
 constants

Fixes cache key issue where users would end up overwriting
each other in cache due to cache key being essentially static
string because we no longer support %u.

Forgotten in 2e298e7ee98b6df61cf85117f000290d60a473b8

auth__Terminate_properly_auth_oauth2_post_setting_defines.patch | (download)

src/auth/db-oauth2.c | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 [patch] auth: terminate properly auth_oauth2_post_setting_defines
 list

Fixes:
Error: xoauth2: oauth2 failed: Local validation failed: auth_oauth2_fields settings: Failed to parse configuration: settings struct auth_oauth2_fields #1 key mismatch

lib sieve_sieve script_c_sieve_script_create_common_Correctly_handle_errors.patch | (download)

pigeonhole/src/lib-sieve/sieve-script.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [patch] lib-sieve/sieve-script.c: sieve_script_create_common:
 Correctly handle errors.

Fixes null pointer deref (e.g. in case of absent file).

lib index_Fix_storing_cache_fields_last_used_with_32bit_big_endian_CPUs.patch | (download)

src/lib-index/mail-cache-fields.c | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 [patch] lib-index: fix storing cache fields' last_used with 32bit big
 endian CPUs

Debian started in 2025 to build packages on 32-bit platforms with 64-bit
time_t support by default. With that change, dovecot suddenly fails to
build on 32-bit big endian architectures (e.g. hppa, powerpc) with those
testsuite errors:

test-mail-cache-fields.c:52: Assert failed: cache_field.last_used == priv->field.last_used && cache_field.decision == priv->field.decision
test-mail-cache-fields.c:67: Assert failed: cache_field.last_used == priv->field.last_used && cache_field.decision == priv->field.decision
test-mail-cache-fields.c:96: Assert failed: cache_field.last_used == priv->field.last_used && cache_field.decision == priv->field.decision
mail cache fields read-write ......................................... : FAILED

Change the existing code for big endian architectures to actually check
the size of time_t at compile time instead of hardcoding a check for
SIZEOF_VOID_P to fix the issue for 32- and 64-bit big endian
architectures.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: Timo Sirainen <timo.sirainen@open-xchange.com>