#1147195 /usr/lib/dovecot/libdovecot-sieve.so.0: undefined symbol: t_openat_safe

Package:
dovecot-core
Source:
dovecot-core
Description:
secure POP3/IMAP server - core files
Submitter:
Joerg Dorchain
Date:
2026-09-09 15:57:02 UTC
Severity:
normal
Tags:
#1147195#5
Date:
2026-09-09 06:29:38 UTC
From:
To:
Hello,

following test, I noticed the following error while doing an
apt-get upgrade

[...]
Preparing to unpack .../03-dovecot-sieve_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-sieve (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../04-dovecot-imapd_1%3a2.4.5+dfsg1-2_amd64.deb ...
doveconf: Error: Couldn't load plugin
/usr/lib/dovecot/modules/settings/libpigeonhole_settings.so: dlopen() failed:
/usr/lib/dovecot/libdovecot-sieve.so.0: undefined symbol: t_openat_safe
[...]

Best regards,

Joerg

#1147195#10
Date:
2026-09-09 13:29:54 UTC
From:
To:
Control: tags -1 + moreinfo

I don't get this warning when performing the same upgrade tasks, and I
suspect that it's related somehow to your local configuration.

Can you post the output of `doveconf -n`?

Thanks
noah

#1147195#17
Date:
2026-09-09 14:00:55 UTC
From:
To:
# doveconf  -n

# 2.4.5 (0cbb641e3e): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.5 (742bb892)
# OS: Linux 7.2.0 x86_64 Debian forky/sid
# Hostname: Redstar.dorchain.net
# 33 default setting changes since version 2.4.1
dovecot_config_version = 2.4.1
auth_failure_delay = 10 secs
auth_mechanisms = plain
dovecot_storage_version = 2.4.1
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
imap_id_retain = yes
imap_id_send {
  name = %{dovecot:name}
  version = %{dovecot:version}
}
mail_driver = mbox
mail_home = /home/%{user|username}
mail_inbox_path = /var/mail/%{user|username}
mail_path = %{home}/Mail
mail_plugins {
  mail_compress = yes
}
mail_privileged_group = mail
protocols {
  imap = yes
}
ssl_cipher_list = ALL:!LOW:!SSLv2:!SSLv3:!TLSv1:!EXP:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
verbose_proctitle = yes
passdb pam {
}
userdb passwd {
}
namespace inbox {
  inbox = yes
  mailbox Drafts {
    special_use = "\\Drafts"
  }
  mailbox Junk {
    special_use = "\\Junk"
  }
  mailbox Trash {
    special_use = "\\Trash"
  }
  mailbox Sent {
    special_use = "\\Sent"
  }
}
service imap-login {
  inet_listener imap {
    listen = 127.0.0.1 ::1
  }
  inet_listener imaps {
  }
}
service pop3-login {
  inet_listener pop3 {
  }
  inet_listener pop3s {
  }
}
service submission-login {
  inet_listener submission {
  }
  inet_listener submissions {
  }
}
service lmtp {
  unix_listener lmtp {
  }
}
service imap {
}
service pop3 {
}
service submission {
}
service auth {
  unix_listener auth-userdb {
  }
}
service auth-worker {
}
service dict {
  unix_listener dict {
  }
}
event_exporter log {
  driver = log
  format = tab-text
}
metric imap_id {
  exporter = log
  fields = cmd_human_args cmd_name user reason_code
  filter = event=imap_id_received
}
ssl_server {
  cert_file = /etc/letsencrypt/live/dorchain.net/fullchain.pem
  key_file = # hidden, use -P to show it
}
protocol imap {
  mail_max_userip_connections = 30
}

Best regards,

Joerg

#1147195#22
Date:
2026-09-09 15:00:51 UTC
From:
To:
Control: tags -1 + unreproducible

Interesting.  I'm still unable to reproduce this.  What's the complete
set of dovecot-* binary packages that you have installed?  Have you
encountered any instances of this error after completion of the upgrade?

Upgrading from 1:2.4.4+dfsg1-2 to 1:2.4.5+dfsg1-2 looks like this for
me:

noahm@dovecot-test:/etc/dovecot$ apt policy dovecot-imapd
dovecot-imapd:
  Installed: 1:2.4.4+dfsg1-2
  Candidate: 1:2.4.5+dfsg1-2
  Version table:
     1:2.4.5+dfsg1-2 500
        500 mirror+file:/etc/apt/mirrors/debian.list sid/main amd64 Packages
 *** 1:2.4.4+dfsg1-2 100
        100 /var/lib/dpkg/status
noahm@dovecot-test:/etc/dovecot$ sudo apt install dovecot-imapd
The following package was automatically installed and is no longer required:
  libxapian30
Use 'sudo apt autoremove' to remove it.

Upgrading:
  dovecot-core  dovecot-dev  dovecot-imapd  dovecot-lmtpd  dovecot-pop3d  dovecot-sieve  libpcre2-32-0  libpcre2-8-0

Summary:
  Upgrading: 8, Installing: 0, Removing: 0, Not Upgrading: 267
  Download size: 4795 kB
  Space needed: 698 kB / 16.9 GB available

Continue? [Y/n]
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [43 B]
Get:2 http://deb.debian.org/debian sid/main amd64 libpcre2-8-0 amd64 10.48-2 [312 kB]
Get:3 http://deb.debian.org/debian sid/main amd64 dovecot-sieve amd64 1:2.4.5+dfsg1-2 [407 kB]
Get:4 http://deb.debian.org/debian sid/main amd64 dovecot-pop3d amd64 1:2.4.5+dfsg1-2 [46.2 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 dovecot-lmtpd amd64 1:2.4.5+dfsg1-2 [38.5 kB]
Get:6 http://deb.debian.org/debian sid/main amd64 dovecot-imapd amd64 1:2.4.5+dfsg1-2 [212 kB]
Get:7 http://deb.debian.org/debian sid/main amd64 dovecot-dev amd64 1:2.4.5+dfsg1-2 [462 kB]
Get:8 http://deb.debian.org/debian sid/main amd64 libpcre2-32-0 amd64 10.48-2 [281 kB]
Get:9 http://deb.debian.org/debian sid/main amd64 dovecot-core amd64 1:2.4.5+dfsg1-2 [3036 kB]
Fetched 4795 kB in 1s (7349 kB/s)
Reading changelogs... Done
(Reading database ... 32212 files and directories currently installed.)
Preparing to unpack .../libpcre2-8-0_10.48-2_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.48-2) over (10.46-1+b2) ...
Setting up libpcre2-8-0:amd64 (10.48-2) ...
(Reading database ... 32211 files and directories currently installed.)
Preparing to unpack .../0-dovecot-sieve_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-sieve (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../1-dovecot-pop3d_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-pop3d (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../2-dovecot-lmtpd_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-lmtpd (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../3-dovecot-imapd_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-imapd (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../4-dovecot-dev_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-dev (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Preparing to unpack .../5-libpcre2-32-0_10.48-2_amd64.deb ...
Unpacking libpcre2-32-0:amd64 (10.48-2) over (10.46-1+b2) ...
Preparing to unpack .../6-dovecot-core_1%3a2.4.5+dfsg1-2_amd64.deb ...
Unpacking dovecot-core (1:2.4.5+dfsg1-2) over (1:2.4.4+dfsg1-2) ...
Setting up dovecot-dev (1:2.4.5+dfsg1-2) ...
Setting up libpcre2-32-0:amd64 (10.48-2) ...
Setting up dovecot-sieve (1:2.4.5+dfsg1-2) ...
Setting up dovecot-core (1:2.4.5+dfsg1-2) ...
dovecot.socket is a disabled or a static unit not running, not starting it.
Setting up dovecot-imapd (1:2.4.5+dfsg1-2) ...
Setting up dovecot-pop3d (1:2.4.5+dfsg1-2) ...
Setting up dovecot-lmtpd (1:2.4.5+dfsg1-2) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for libselinux1:amd64 (3.10-1) ...
Processing triggers for libc-bin (2.42-16) ...
Processing triggers for dovecot-core (1:2.4.5+dfsg1-2) ...

#1147195#29
Date:
2026-09-09 15:55:41 UTC
From:
To:
# dpkg-query -W|grep dovecot
dovecot-core    1:2.4.5+dfsg1-2
dovecot-imapd   1:2.4.5+dfsg1-2
dovecot-sieve   1:2.4.5+dfsg1-2

I have only seen this once during the upgrade.

If I have to guess wildly, I would assume a race condition
between the installation of old and new dovecot-core and
dovecot-sieve.
I would have to deep dive into the symbols in the different
versions and which script is run when and how to confirm.

As the installation works for me(tm) despite of the message
during upgrade, I do not see a need to raise severity.
[...]

FTR I used apt-get upgrade (not apt).

Best regards,

Joerg