Article View: linux.debian.bugs.dist
Article #1228Bug#1151187: dovecot-sieve: undefined reference to mail_deliver_ctx_get_log_var_expand_table breaks sieve plugin in IMAP service
From: Noah Meyerhans
Date: Sun, 18 Oct 2026 02:40
Date: Sun, 18 Oct 2026 02:40
50 lines
3852 bytes
3852 bytes
On Sat, Oct 17, 2026 at 05:56:47PM -0400, Ger wrote:
> 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.
I don't see this, at least on amd64.
It's defined in libdovecot-lda:
root@c9c251285d2c:/# nm -D -U /usr/lib/dovecot/libdovecot-lda.so.0 | grep log_var_expand
00000000000076a0 T mail_deliver_ctx_get_log_var_expand_table
But I don't see a reference to it in libdovecot-sieve.so:
root@c9c251285d2c:/# nm -D -u /usr/lib/dovecot/libdovecot-sieve.so.0.0.0 | grep log_var_expand | wc -l
0
root@c9c251285d2c:/# nm -D -u /usr/lib/dovecot/libdovecot-sieve.so.0.0.0 | wc -l
458
root@c9c251285d2c:/# dpkg -S libdovecot-sieve.so.0.0.0
dovecot-sieve: /usr/lib/dovecot/libdovecot-sieve.so.0.0.0
root@c9c251285d2c:/# apt policy dovecot-sieve
dovecot-sieve:
Installed: 1:2.4.1+dfsg1-6+deb13u7
Candidate: 1:2.4.1+dfsg1-6+deb13u7
Version table:
*** 1:2.4.1+dfsg1-6+deb13u7 500
500 http://deb.debian.org/debian-security trixie-security/main amd64 Packages
100 /var/lib/dpkg/status
1:2.4.1+dfsg1-6+deb13u6 500
500 http://deb.debian.org/debian trixie/main amd64 Packages
What architecture are you using?
noah
Technical Details
Message-ID:
<NPoYx-6fI8-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NPkUV-6doX-7@gated-at.bofh.it> <NPkUV-6doX-7@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Noah Meyerhans <noahm@debian.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 04:40:01 +0200 Message-ID: <NPoYx-6fI8-1@gated-at.bofh.it> References: <NPkUV-6doX-7@gated-at.bofh.it> <NPkUV-6doX-7@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Oct 18 02:35:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Noah Meyerhans <noahm@debian.org>, 1151187@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: dovecot@packages.debian.org X-Debian-Pr-Message: followup 1151187 X-Debian-Pr-Package: dovecot-sieve X-Debian-Pr-Source: dovecot MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: noahm X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997335 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 50 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 17 Oct 2026 22:33:41 -0400 X-Original-Message-ID: <atQwBSaYsvv1TWbn@doom.morgul.net> X-Original-References: <E1xICOV-000000084E9-13LE@stryder> <E1xICOV-000000084E9-13LE@stryder>