🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1212

Bug#1151187: dovecot-sieve: undefined reference to mail_deliver_ctx_get_log_var_expand_table breaks sieve plugin in IMAP service

#1212
From: Ger
Date: Sat, 17 Oct 2026 22:20
27 lines
3108 bytes
Package: dovecot-sieve
Version: 1:2.4.1+dfsg1-6+deb13u7
Severity: important

libdovecot-sieve.so.0 in the Debian build contains an undefined reference to
mail_deliver_ctx_get_log_var_expand_table, which is defined in
/usr/lib/dovecot/libdovecot-lda.so.0, but the sieve library is not linked
against libdovecot-lda. In Dovecot 2.4 each service is a separate binary
(e.g. /usr/lib/dovecot/imap) that does not link libdovecot-lda, so dlopen()
of the pigeonhole sieve plugin from the IMAP service fails with:

  undefined symbol: mail_deliver_ctx_get_log_var_expand_table

This breaks any IMAP-context use of libdovecot-sieve, e.g. the sieve-imapsieve
event hook used for antispam training on mailbox COPY events. The symbol only
resolves in binaries that already have libdovecot-lda loaded, so the delivery
side (lda/lmtp) works while IMAP event handling does not.

Verification on this system:
  nm -D -u /usr/lib/dovecot/libdovecot-sieve.so.0.0.0 | grep log_var_expand
  -> U mail_deliver_ctx_get_log_var_expand_table
  readelf -d shows only libc.so.6 as NEEDED for the sieve library.

Workaround in use locally: LD_PRELOAD of libdovecot-lda.so.0 applied at
service exec via a wrapper script (a systemd Environment= drop-in alone is
insufficient because the Dovecot master sanitizes the environment before
exec'ing service binaries).
Technical Details
Message-ID: <NPkUV-6doX-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Ger <lama7@lamafam.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151187: dovecot-sieve: undefined reference to mail_deliver_ctx_get_log_var_expand_table breaks sieve plugin in IMAP service
Date: Sun, 18 Oct 2026 00:20:01 +0200
Message-ID: <NPkUV-6doX-7@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Oct 17 22:11:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Ger <lama7@lamafam.org>, 1151187@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dovecot@packages.debian.org
X-Debian-Pr-Message: report 1151187
X-Debian-Pr-Package: dovecot-sieve
X-Debian-Pr-Source: dovecot
X-Report-Abuse: Please forward a copy of this message, including all headers, to <abuse-report@smtp2go.com>
Feedback-ID: 206444m:206444a3U3Nwz:206444sm1VCVZKow
X-Smtpcorp-Track: o1QZSix_-Kon.VUNfkjRil2BY.NEdkzAqnjf0
X-Greylist: delayed 708 seconds by postgrey-1.37 at buxtehude; Sat, 17 Oct 2026 22:08:41 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997314
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 27
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 17 Oct 2026 17:56:47 -0400
X-Original-Message-ID: <E1xICOV-000000084E9-13LE@stryder>