Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-28 Thread Philip Iezzi via dovecot


> On 2 Feb 2026, at 23:53, Christian Kivalo via dovecot  
> wrote:
> On 2026-02-02 21:52, Timo Sirainen via dovecot wrote:
>> On 2. Feb 2026, at 22.16, Timo Sirainen via dovecot  
>> wrote:
>>> On 2. Feb 2026, at 12.31, Christian Kivalo via dovecot 
>>>  wrote:
 On 2026-02-02 09:09, Timo Sirainen via dovecot wrote:
> Hi,
> On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot 
>  wrote:
>> the ipad logged in again and caused ~100 panics. Logging with 
>> log_debug=category==imap or category=sieve.
>> I can provide the coredump if needed.
> A core dump for this crash would be helpful, since it's not easily 
> reproducible. Please send it to me privately 
> [email protected]  
> using the tarball generated by dovecot-sysreport --core /path/to/core.
 Hi,
 I sent you the dovecot-sysreport tarball.
>>> Thanks. I can now reproduce. The crash happens (at least) when:
>>> * imapsieve action is for COPY
>>> * source message has no $HasAttachment or $HasNoAttachment flags
>>> * mail_attachment_detection_options contains add-flags (nowadays the 
>>> default)
>>> So for now the workaround would be to set mail_attachment_detection_options 
>>> to empty value. Or trigger some doveadm command to update attachment flags 
>>> to all existing mails (I think doveadm fetch imap.bodystructure or maybe 
>>> body.1 would work).
>> Actually, also it seems to need the copying to happen using the slow way of 
>> saving a new mail. With Maildir this means either 
>> maildir_copy_with_hardlinks=no or if the source and destination Maildir 
>> directories' permissions aren't the same (e.g. both aren't 0700 permissions, 
>> or they have different groups).
> 
> Thanks!
> 
> i did doveadm fetch -u user imap.bodystructure ALL for two users and changed 
> mail_attachment_detection_options to empty. I'll see if I get some panics for 
> the third user.
> 
> I have maildir_copy_with_hardlinks=yes and directory permissions are all 
> identical.

Hi guys. I have a larger (1200 users) Dovecot 2.4.2 server on Debian Trixie 
where this happens immediately, almost on every COPY, when moving a message to 
a different directory.
It seems mail client related, mostly happening on with Apple Mail / iOS 
clients, but also with Android Mail.
On another server with exact same configuration (imap_sieve enabled in 
mail_plugins, global spam/ham learning sieve scripts triggered by `cause = 
copy`) with 2200 users, it barely ever happens - but could be the completely 
different user base that is rarely using Apple Mail.

Can you give us an update on this issue? Is it already fixed upstream in 
Pigeonhole?
Looks like 
https://github.com/dovecot/pigeonhole/commit/f96cc4b18109080393f100c580cdd043d2b92d8d
 by Stephan Bosch fixes it.
@Stephan Can you confirm and tell us if 2.4.3 is going to be released soon?

Thanks,
Philip
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Christian Kivalo via dovecot




On 2026-02-02 21:52, Timo Sirainen via dovecot wrote:
On 2. Feb 2026, at 22.16, Timo Sirainen via dovecot 
 wrote:


On 2. Feb 2026, at 12.31, Christian Kivalo via dovecot 
 wrote:




On 2026-02-02 09:09, Timo Sirainen via dovecot wrote:

Hi,
On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot 
 wrote:
the ipad logged in again and caused ~100 panics. Logging with 
log_debug=category==imap or category=sieve.

I can provide the coredump if needed.
A core dump for this crash would be helpful, since it's not easily 
reproducible. Please send it to me privately 
[email protected] 
 using the tarball generated 
by dovecot-sysreport --core /path/to/core.


Hi,
I sent you the dovecot-sysreport tarball.


Thanks. I can now reproduce. The crash happens (at least) when:
* imapsieve action is for COPY
* source message has no $HasAttachment or $HasNoAttachment flags
* mail_attachment_detection_options contains add-flags (nowadays the 
default)


So for now the workaround would be to set 
mail_attachment_detection_options to empty value. Or trigger some 
doveadm command to update attachment flags to all existing mails (I 
think doveadm fetch imap.bodystructure or maybe body.1 would work).


Actually, also it seems to need the copying to happen using the slow 
way of saving a new mail. With Maildir this means either 
maildir_copy_with_hardlinks=no or if the source and destination Maildir 
directories' permissions aren't the same (e.g. both aren't 0700 
permissions, or they have different groups).


Thanks!

i did doveadm fetch -u user imap.bodystructure ALL for two users and 
changed mail_attachment_detection_options to empty. I'll see if I get 
some panics for the third user.


I have maildir_copy_with_hardlinks=yes and directory permissions are all 
identical.


--
 Christian Kivalo
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Timo Sirainen via dovecot
On 2. Feb 2026, at 22.16, Timo Sirainen via dovecot  wrote:
> 
> On 2. Feb 2026, at 12.31, Christian Kivalo via dovecot  
> wrote:
>> 
>> 
>> 
>> On 2026-02-02 09:09, Timo Sirainen via dovecot wrote:
>>> Hi,
>>> On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot 
>>>  wrote:
 the ipad logged in again and caused ~100 panics. Logging with 
 log_debug=category==imap or category=sieve.
 I can provide the coredump if needed.
>>> A core dump for this crash would be helpful, since it's not easily 
>>> reproducible. Please send it to me privately [email protected] 
>>>  using the tarball generated by 
>>> dovecot-sysreport --core /path/to/core.
>> 
>> Hi,
>> I sent you the dovecot-sysreport tarball.
> 
> Thanks. I can now reproduce. The crash happens (at least) when:
> * imapsieve action is for COPY
> * source message has no $HasAttachment or $HasNoAttachment flags
> * mail_attachment_detection_options contains add-flags (nowadays the default)
> 
> So for now the workaround would be to set mail_attachment_detection_options 
> to empty value. Or trigger some doveadm command to update attachment flags to 
> all existing mails (I think doveadm fetch imap.bodystructure or maybe body.1 
> would work).

Actually, also it seems to need the copying to happen using the slow way of 
saving a new mail. With Maildir this means either 
maildir_copy_with_hardlinks=no or if the source and destination Maildir 
directories' permissions aren't the same (e.g. both aren't 0700 permissions, or 
they have different groups).
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Timo Sirainen via dovecot
On 2. Feb 2026, at 12.31, Christian Kivalo via dovecot  
wrote:
> 
> 
> 
> On 2026-02-02 09:09, Timo Sirainen via dovecot wrote:
>> Hi,
>> On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot 
>>  wrote:
>>> the ipad logged in again and caused ~100 panics. Logging with 
>>> log_debug=category==imap or category=sieve.
>>> I can provide the coredump if needed.
>> A core dump for this crash would be helpful, since it's not easily 
>> reproducible. Please send it to me privately [email protected] 
>>  using the tarball generated by 
>> dovecot-sysreport --core /path/to/core.
> 
> Hi,
> I sent you the dovecot-sysreport tarball.

Thanks. I can now reproduce. The crash happens (at least) when:
 * imapsieve action is for COPY
 * source message has no $HasAttachment or $HasNoAttachment flags
 * mail_attachment_detection_options contains add-flags (nowadays the default)

So for now the workaround would be to set mail_attachment_detection_options to 
empty value. Or trigger some doveadm command to update attachment flags to all 
existing mails (I think doveadm fetch imap.bodystructure or maybe body.1 would 
work).

___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Roberto Puzzanghera via dovecot

I have panics quite similar to this one.
Timo, would you like to have the coredump and the debug log sent in 
private?


Roberto

Il 16-01-2026 19:25 Christian Kivalo via dovecot ha scritto:
Reposting my reply from a few days ago to a thread with the same panic 
message.


I found this in my logs when some mails that got deleted on the phone 
were still visible in roundcube. I currently have three users that 
trigger the panic. One user with an iPad accounts for nearly all of the 
panics.


The problem shows when the account is accessed from android 
(thunderbird) or ipad. The same accounts show no problems when beeing 
used with roundcube or thunderbird on windows.


I enabled core dumps on 2026-01-14 and have ~8500 core dumps of the 
imap binary until now.


What causes this error and how can I fix it?
In the logs all I see is the users login, then the panic.

# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-custom.kvm x86_64 Debian 13.3 ext4

2026-01-13T21:44:32.317609+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, lip=, 
mpid=4194077, TLS, session=
2026-01-13T21:44:38.455379+01:00 uschi dovecot: 
imap([email protected])<4194077>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): 
assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)
2026-01-13T21:44:38.458755+01:00 uschi dovecot: 
imap([email protected])<4194077>: Error: Raw 
backtrace: #1 [unw_get_proc_name() failed: -10] -> #2 
[unw_get_proc_name() failed: -10] -> #3 i_panic[0x7f6b6c46c2f6] -> #4 
[unw_get_proc_name() failed: -10] -> #5 [unw_get_proc_name() failed: 
-10] -> #6 [unw_get_proc_name() failed: -10] -> #7 
mailbox_save_alloc[0x7f6b6ca103c0] -> #8 [unw_get_proc_name() failed: 
-10] -> #9 command_exec[0x55654e677400] -> #10 [unw_get_proc_name() 
failed: -10] -> #11 [unw_get_proc_name() failed: -10] -> #12 
[unw_get_proc_name() failed: -10] -> #13 
client_handle_input[0x55654e67ddc0] -> #14 
client_continue_pending_input[0x55654e67e0b0] -> #15 
io_loop_call_io[0x7f6b6c565490] -> #16 
io_loop_handler_run_internal[0x7f6b6c567230] -> #17 
io_loop_handler_run[0x7f6b6c5673c0] -> #18 io_loop_run[0x7f6b6c5675a0] 
-> #19 master_service_run[0x7f6b6c4b27f0] -> #20 main[0x55654e6688a0] 
-> #21 [unw_get_proc_name() failed: -10] -> #22 
__libc_start_main[0x7f6b6c234ce0] -> #23 _start[0x55654e668eb0]
2026-01-13T21:44:38.459536+01:00 uschi dovecot: 
imap([email protected])<4194077>: Fatal: master: 
service(imap): child 4194077 killed with signal 6 (core dumps disabled 
- https://dovecot.org/bugreport.html#coredumps)


# coredumpctl dump
   PID: 1071230 (imap)
   UID: 5000 (vmail)
   GID: 5000 (vmail)
Signal: 6 (ABRT)
 Timestamp: Fri 2026-01-16 19:17:15 CET (2s ago)
  Command Line: $'dovecot/imap [[email protected]  UID 
MOVE]'

Executable: /usr/lib/dovecot/imap
 Control Group: /system.slice/dovecot.service
  Unit: dovecot.service
 Slice: system.slice
   Boot ID: 3668d179bda340229a780d5d43e426c3
Machine ID: 05698baa30ae984c9bd014566e16da18
  Hostname: uschi
   Storage: 
/var/lib/systemd/coredump/core.imap.5000.3668d179bda340229a780d5d43e426c3.1071230.176858743500.zst 
(present)

  Size on Disk: 1.1M
   Message: Process 1071230 (imap) of user 5000 dumped core.

Module libgcc_s.so.1 from deb gcc-14-14.2.0-19.amd64
Module libstdc++.so.6 from deb gcc-14-14.2.0-19.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Stack trace of thread 1071230:
#0  0x7fbd1ca9f95c n/a (libc.so.6 + 0x9495c)
#1  0x7fbd1ca4acc2 raise (libc.so.6 + 0x3fcc2)
#2  0x7fbd1ca334ac abort (libc.so.6 + 0x284ac)
#3  0x7fbd1cc6caa0 n/a (libdovecot.so.0 + 0x6caa0)
#4  0x7fbd1cd49e67 n/a (libdovecot.so.0 + 0x149e67)
#5  0x7fbd1cc6c3d0 i_panic (libdovecot.so.0 + 
0x6c3d0)
#6  0x7fbd1c42f942 n/a (lib95_imap_sieve_plugin.so 
+ 0x4942)
#7  0x7fbd1c431223 n/a (lib95_imap_sieve_plugin.so 
+ 0x6223)
#8  0x7fbd1d258f10 n/a (libdovecot-storage.so.0 + 
0x11bf10)
#9  0x7fbd1d1a843b mailbox_save_alloc 
(libdovecot-storage.so.0 + 0x6b43b)

#10 0x5590b7ed4a69 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64

___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Christian Kivalo via dovecot




On 2026-02-02 09:09, Timo Sirainen via dovecot wrote:

Hi,

On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot 
 wrote:


the ipad logged in again and caused ~100 panics. Logging with 
log_debug=category==imap or category=sieve.


I can provide the coredump if needed.


A core dump for this crash would be helpful, since it's not easily 
reproducible. Please send it to me privately 
[email protected]  
using the tarball generated by dovecot-sysreport --core /path/to/core.


Hi,
I sent you the dovecot-sysreport tarball.

Thanks
--
 Christian Kivalo
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-02 Thread Timo Sirainen via dovecot
   Hi,
   On 26. Jan 2026, at 14.13, Christian Kivalo via dovecot
wrote:

 the ipad logged in again and caused ~100 panics. Logging with
 log_debug=category==imap or category=sieve.

 I can provide the coredump if needed.

   A core dump for this crash would be helpful, since it's not easily
   reproducible. Please send it to me privately
   [1][email protected] using the tarball generated by
   dovecot-sysreport --core /path/to/core.

References

   Visible links
   1. mailto:[email protected]
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-02-01 Thread Stephan Bosch via dovecot
No luck so far, but that weird $HasNoAttachment FLAG change event might 
be a clue. I'll ask a colleague who knows more about this feature and 
how to trigger this log line.


Op 26-1-2026 om 13:13 schreef Christian Kivalo via dovecot:

Hi,

the ipad logged in again and caused ~100 panics. Logging with 
log_debug=category==imap or category=sieve.


I can provide the coredump if needed.

User, IPs and users folders redacted.

2026-01-26T12:47:04.311037+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x10, ret=1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311167+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311211+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=-1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311248+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311275+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS read client hello: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311597+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write server hello: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311651+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.312066+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.312109+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write certificate: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313242+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify: 
user=<>, rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313324+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write finished: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313415+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313493+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=-1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313690+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=-1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313778+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=-1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357326+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=-1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357466+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: TLSv1.3 early data: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357536+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS read finished: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357603+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x20, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357662+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357714+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357852+01:00 uschi dovecot: imap-login: Debug: 
SSL: where=0x2002, ret=1: SSL negotiation finished successfully: 
user=<>, rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.358122+01:00 uschi dovecot: imap-login: Debug: 
SSL: Chosen application protocol imap: user=<>, rip=, 
lip=, TLS, session=
2026-01-26T12:47:04.392529+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, 
lip=, mpid=2841427, TLS, session=
2026-01-26T12:47:04.394788+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: 
Added setting via userdb: 
mail_path=/srv/mail/[email protected]/Maildir
2026-01-26T12:47:04.394856+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: 
Added setting via userdb: quota_storage_size=*:bytes=0
2026-01-26T12:47:04.395002+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: 
Effective uid=5000, gid=5000, home=/srv/mail/[email protected]
2026-01-26T12:47:04.395199+

Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-29 Thread Jeffrey Böhm via dovecot
Hi,

I’m seeing the same issue after upgrading to Dovecot 2.4.2.
I reproduced it with both the Alpine Linux build and the official Dovecot 
Docker image referenced at [1].

In my case, the crash correlates strongly with iOS devices auto-deleting older 
messages from the Trash folder. As Christian described, it starts after a 
larger number of IMAP MOVE operations.

Key finding: when I disable the imap_sieve extensions, the crashes stop. 
Personal Sieve rules continue to work as expected, so the problem appears to be 
specific to imap_sieve (or its interaction with frequent MOVE operations).

> sieve_plugins {
>   sieve_imapsieve = no
> }
> 
> protocol imap {
>   mail_plugins {
> imap_sieve = no
> imap_filter_sieve = no
>   }
> }

My configuration with the enabled imap_sieve extension is located at [2].

Kind regards

Jeff


[1]: https://github.com/dovecot/docker
[2]: 
https://github.com/jeboehm/docker-mailserver/blob/7433443ebd4af1c422cb4030ceffe62b248812be/target/mda/rootfs/etc/dovecot/conf.d/90-sieve.conf

___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-26 Thread Christian Kivalo via dovecot

Hi,

the ipad logged in again and caused ~100 panics. Logging with 
log_debug=category==imap or category=sieve.


I can provide the coredump if needed.

User, IPs and users folders redacted.

2026-01-26T12:47:04.311037+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x10, ret=1: before SSL initialization: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.311167+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311211+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=-1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311248+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: before SSL initialization: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311275+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS read client hello: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311597+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write server hello: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.311651+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write change cipher spec: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.312066+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: TLSv1.3 write encrypted extensions: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.312109+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write certificate: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313242+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: TLSv1.3 write server certificate verify: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.313324+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write finished: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.313415+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.313493+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=-1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.313690+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=-1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.313778+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=-1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.357326+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=-1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.357466+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: TLSv1.3 early data: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.357536+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS read finished: user=<>, rip=, 
lip=, TLS handshaking, session=
2026-01-26T12:47:04.357603+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x20, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357662+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357714+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2001, ret=1: SSLv3/TLS write session ticket: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.357852+01:00 uschi dovecot: imap-login: Debug: SSL: 
where=0x2002, ret=1: SSL negotiation finished successfully: user=<>, 
rip=, lip=, TLS handshaking, 
session=
2026-01-26T12:47:04.358122+01:00 uschi dovecot: imap-login: Debug: SSL: 
Chosen application protocol imap: user=<>, rip=, 
lip=, TLS, session=
2026-01-26T12:47:04.392529+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, 
lip=, mpid=2841427, TLS, session=
2026-01-26T12:47:04.394788+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: Added 
setting via userdb: 
mail_path=/srv/mail/[email protected]/Maildir
2026-01-26T12:47:04.394856+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: Added 
setting via userdb: quota_storage_size=*:bytes=0
2026-01-26T12:47:04.395002+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: 
Effective uid=5000, gid=5000, home=/srv/mail/[email protected]
2026-01-26T12:47:04.395199+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: acl: 
dict(proxy): dict created (driver=proxy)
2026-01-26T12:47:04.395244+01:00 uschi dovecot: 
imap([email protected])<2841427>: Debug: acl: 
Shared mailbox listing 

Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-26 Thread Christian Kivalo via dovecot

On 2026-01-26 03:41, Stephan Bosch wrote:

Hi,

I cannot reproduce any of this so far:

Maybe try again with  log_debug=category=imap or category=sieve

And provide all config (`dovecot -n`) and the Sieve scripts involved.

Regards,

Stephan


Hi,

thanks for your reply. I changed log_debug and am waiting for the next 
Panic.


Config and sieve scripts below.

# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-sec-svcs.kvm x86_64 Debian 13.3 ext4
# Hostname: uschi.sec-svcs.eu
dovecot_config_version = 2.4.2
acl_driver = vfile
auth_mechanisms = plain
default_vsz_limit = 2048M
deliver_log_format = msgid=%{msgid}, size=%{size}, from=%{from}, 
subject=%{subject}, envelope from=%{from_envelope}, envelope 
to=%{to_envelope}, delivery time=%{delivery_time}ms, lmtp session 
time=%{session_time}ms, status=%{message}, storage_id=%{storage_id}

dovecot_storage_version = 2.4.2
first_valid_gid = 5000
first_valid_uid = 5000
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
imap_client_workarounds {
  tb-extra-mailbox-sep = yes
  tb-lsub-flags = yes
}
imap_logout_format = in=%{input} out=%{output} appended=%{appended} 
deleted=%{deleted} expunged=%{expunged} autoexpunged=%{autoexpunged} 
trashed=%{trashed} hdr_count=%{fetch_hdr_count} 
hdr_bytes=%{fetch_hdr_bytes} body_count=%{fetch_body_count} 
body_bytes=%{fetch_body_bytes}

last_valid_gid = 5000
last_valid_uid = 5000
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lmtp_user_concurrency_limit = unlimited
log_debug = category=imap or category=sieve
mail_access_groups = vmail
mail_always_cache_fields = date.save
mail_attachment_detection_options = add-flags 
"content-type=!application/signature"

mail_driver = maildir
mail_gid = vmail
mail_path = /srv/mail/%{user | lower}/Maildir
mail_plugins {
  notify = yes
  mail_log = yes
  fts = yes
  fts_solr = yes
  virtual = yes
  acl = yes
  quota = yes
  quota_clone = yes
}
mail_server_admin = mailto:[email protected]
mail_server_comment = sec-svcs.eu mail hosting
mail_uid = vmail
postmaster_address = [email protected]
protocols = imap pop3 lmtp sieve
quota_status_nouser = DUNNO
quota_status_overquota = 552 5.2.2 Mailbox is full
quota_status_success = DUNNO
sieve_extensions {
  fileinto = yes
  reject = yes
  envelope = yes
  encoded-character = yes
  vacation = yes
  subaddress = yes
  comparator-i;ascii-numeric = yes
  relational = yes
  regex = yes
  imap4flags = yes
  copy = yes
  include = yes
  body = yes
  variables = yes
  enotify = yes
  environment = yes
  mailbox = yes
  date = yes
  index = yes
  ihave = yes
  duplicate = yes
  mime = yes
  foreverypart = yes
  extracttext = yes
  vnd.dovecot.debug = yes
  editheader = yes
}
sieve_global_extensions {
  vnd.dovecot.pipe = yes
  vnd.dovecot.environment = yes
}
sieve_pipe_bin_dir = /srv/sieve/imapsieve
sieve_plugins {
  sieve_imapsieve = yes
  sieve_extprograms = yes
}
sql_driver = mysql
ssl = required
syslog_facility = local5
verbose_proctitle = yes
mysql 10.1.1.50 {
  dbname = mailadmin
  password = # hidden, use -P to show it
  user = mailuser
}
passdb sql {
  default_password_scheme = SHA512-CRYPT
  query = SELECT username AS user, password AS password, homedir AS 
userdb_home, maildir AS userdb_mail_path, CONCAT('*:bytes=', quota) AS 
userdb_quota_storage_size, uid AS userdb_uid, gid AS userdb_gid FROM 
mailbox WHERE username = '%{user | lower}' AND active = '1' AND ( 
access_restriction = 'ALL' OR LOCATE( '%{protocol | upper}', 
access_restriction ) > 0 )

}
userdb sql {
  iterate_query = SELECT username AS user FROM mailbox
  query = SELECT homedir AS home, maildir AS mail_path, 
CONCAT('*:bytes=', quota) AS quota_storage_size, uid, gid FROM mailbox 
WHERE username = '%{user | lower}'

}
namespace inbox {
  inbox = yes
  separator = /
  subscriptions = yes
  type = private
  quota_storage_grace = 100M
  mailbox Drafts {
auto = subscribe
special_use = "\\Drafts"
  }
  mailbox Spam {
auto = subscribe
autoexpunge = 15d
special_use = "\\Junk"
  }
  mailbox Trash {
auto = subscribe
special_use = "\\Trash"
quota_storage_extra = 1024M
  }
  mailbox Sent {
auto = subscribe
special_use = "\\Sent"
quota_storage_extra = 1024M
  }
  mailbox Archives {
auto = subscribe
special_use = "\\Archive"
  }
  mailbox virtual/All {
special_use = "\\All"
  }
}
namespace virtual {
  mail_path = /srv/mail/%{user | lower}/virtual
  hidden = no
  inbox = no
  list = children
  prefix = virtual/
  separator = /
  subscriptions = yes
  type = private
}
namespace others {
  mail_driver = maildir
  mail_index_private_path = ~/Maildir/shared/%{owner_user}
  mail_path = %{owner_home}/Maildir
  list = children
  prefix = shared/$user/
  separator = /
  subscriptions = no
  type = shared
}
protocol !indexer-worker {
  mail_vsize_bg_after_count = 0
}
maildir {
  copy_with_hardlinks = yes
}
service 

Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-25 Thread Stephan Bosch via dovecot

Hi,

I cannot reproduce any of this so far:

Maybe try again with  log_debug=category=imap or category=sieve

And provide all config (`dovecot -n`) and the Sieve scripts involved.

Regards,

Stephan

Op 19-1-2026 om 22:39 schreef Christian Kivalo via dovecot:



On 2026-01-16 19:25, Christian Kivalo via dovecot wrote:
Reposting my reply from a few days ago to a thread with the same 
panic message.


I found this in my logs when some mails that got deleted on the phone 
were still visible in roundcube. I currently have three users that 
trigger the panic. One user with an iPad accounts for nearly all of 
the panics.


The problem shows when the account is accessed from android 
(thunderbird) or ipad. The same accounts show no problems when beeing 
used with roundcube or thunderbird on windows.


I enabled core dumps on 2026-01-14 and have ~8500 core dumps of the 
imap binary until now.


What causes this error and how can I fix it?
In the logs all I see is the users login, then the panic.

# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-custom.kvm x86_64 Debian 13.3 ext4

2026-01-13T21:44:32.317609+01:00 uschi dovecot: imap-login: Logged 
in: user=, method=PLAIN, rip=, lip=, 
mpid=4194077, TLS, session=
2026-01-13T21:44:38.455379+01:00 uschi dovecot: 
imap([email protected])<4194077>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): 
assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)
2026-01-13T21:44:38.458755+01:00 uschi dovecot: 
imap([email protected])<4194077>: Error: Raw 
backtrace: #1 [unw_get_proc_name() failed: -10] -> #2 
[unw_get_proc_name() failed: -10] -> #3 i_panic[0x7f6b6c46c2f6] -> #4 
[unw_get_proc_name() failed: -10] -> #5 [unw_get_proc_name() failed: 
-10] -> #6 [unw_get_proc_name() failed: -10] -> #7 
mailbox_save_alloc[0x7f6b6ca103c0] -> #8 [unw_get_proc_name() failed: 
-10] -> #9 command_exec[0x55654e677400] -> #10 [unw_get_proc_name() 
failed: -10] -> #11 [unw_get_proc_name() failed: -10] -> #12 
[unw_get_proc_name() failed: -10] -> #13 
client_handle_input[0x55654e67ddc0] -> #14 
client_continue_pending_input[0x55654e67e0b0] -> #15 
io_loop_call_io[0x7f6b6c565490] -> #16 
io_loop_handler_run_internal[0x7f6b6c567230] -> #17 
io_loop_handler_run[0x7f6b6c5673c0] -> #18 
io_loop_run[0x7f6b6c5675a0] -> #19 master_service_run[0x7f6b6c4b27f0] 
-> #20 main[0x55654e6688a0] -> #21 [unw_get_proc_name() failed: -10] 
-> #22 __libc_start_main[0x7f6b6c234ce0] -> #23 _start[0x55654e668eb0]
2026-01-13T21:44:38.459536+01:00 uschi dovecot: 
imap([email protected])<4194077>: Fatal: master: 
service(imap): child 4194077 killed with signal 6 (core dumps 
disabled - https://dovecot.org/bugreport.html#coredumps)


# coredumpctl dump
   PID: 1071230 (imap)
   UID: 5000 (vmail)
   GID: 5000 (vmail)
    Signal: 6 (ABRT)
 Timestamp: Fri 2026-01-16 19:17:15 CET (2s ago)
  Command Line: $'dovecot/imap [[email protected]  UID 
MOVE]'

    Executable: /usr/lib/dovecot/imap
 Control Group: /system.slice/dovecot.service
  Unit: dovecot.service
 Slice: system.slice
   Boot ID: 3668d179bda340229a780d5d43e426c3
    Machine ID: 05698baa30ae984c9bd014566e16da18
  Hostname: uschi
   Storage: 
/var/lib/systemd/coredump/core.imap.5000.3668d179bda340229a780d5d43e426c3.1071230.176858743500.zst 
(present)

  Size on Disk: 1.1M
   Message: Process 1071230 (imap) of user 5000 dumped core.

    Module libgcc_s.so.1 from deb gcc-14-14.2.0-19.amd64
    Module libstdc++.so.6 from deb gcc-14-14.2.0-19.amd64
    Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
    Stack trace of thread 1071230:
    #0  0x7fbd1ca9f95c n/a (libc.so.6 + 0x9495c)
    #1  0x7fbd1ca4acc2 raise (libc.so.6 + 0x3fcc2)
    #2  0x7fbd1ca334ac abort (libc.so.6 + 0x284ac)
    #3  0x7fbd1cc6caa0 n/a (libdovecot.so.0 + 0x6caa0)
    #4  0x7fbd1cd49e67 n/a (libdovecot.so.0 + 0x149e67)
    #5  0x7fbd1cc6c3d0 i_panic (libdovecot.so.0 + 
0x6c3d0)
    #6  0x7fbd1c42f942 n/a 
(lib95_imap_sieve_plugin.so + 0x4942)
    #7  0x7fbd1c431223 n/a 
(lib95_imap_sieve_plugin.so + 0x6223)
    #8  0x7fbd1d258f10 n/a (libdovecot-storage.so.0 + 
0x11bf10)
    #9  0x7fbd1d1a843b mailbox_save_alloc 
(libdovecot-storage.so.0 + 0x6b43b)

    #10 0x5590b7ed4a69 n/a (n/a + 0x0)
    ELF object binary architecture: AMD x86-64


With log_debug=category=imap I see that the iPad moves many mails from 
Inbox to Trash


[...]
2026-01-19T22:22:39.721023+01:00 uschi dovecot: 
imap([email protected])<1961360>: Debug: Mailbox 
Trash: imapsieve: MOVE event
20

Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-19 Thread Christian Kivalo via dovecot




On 2026-01-16 19:25, Christian Kivalo via dovecot wrote:
Reposting my reply from a few days ago to a thread with the same panic 
message.


I found this in my logs when some mails that got deleted on the phone 
were still visible in roundcube. I currently have three users that 
trigger the panic. One user with an iPad accounts for nearly all of the 
panics.


The problem shows when the account is accessed from android 
(thunderbird) or ipad. The same accounts show no problems when beeing 
used with roundcube or thunderbird on windows.


I enabled core dumps on 2026-01-14 and have ~8500 core dumps of the 
imap binary until now.


What causes this error and how can I fix it?
In the logs all I see is the users login, then the panic.

# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-custom.kvm x86_64 Debian 13.3 ext4

2026-01-13T21:44:32.317609+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, lip=, 
mpid=4194077, TLS, session=
2026-01-13T21:44:38.455379+01:00 uschi dovecot: 
imap([email protected])<4194077>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): 
assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)
2026-01-13T21:44:38.458755+01:00 uschi dovecot: 
imap([email protected])<4194077>: Error: Raw 
backtrace: #1 [unw_get_proc_name() failed: -10] -> #2 
[unw_get_proc_name() failed: -10] -> #3 i_panic[0x7f6b6c46c2f6] -> #4 
[unw_get_proc_name() failed: -10] -> #5 [unw_get_proc_name() failed: 
-10] -> #6 [unw_get_proc_name() failed: -10] -> #7 
mailbox_save_alloc[0x7f6b6ca103c0] -> #8 [unw_get_proc_name() failed: 
-10] -> #9 command_exec[0x55654e677400] -> #10 [unw_get_proc_name() 
failed: -10] -> #11 [unw_get_proc_name() failed: -10] -> #12 
[unw_get_proc_name() failed: -10] -> #13 
client_handle_input[0x55654e67ddc0] -> #14 
client_continue_pending_input[0x55654e67e0b0] -> #15 
io_loop_call_io[0x7f6b6c565490] -> #16 
io_loop_handler_run_internal[0x7f6b6c567230] -> #17 
io_loop_handler_run[0x7f6b6c5673c0] -> #18 io_loop_run[0x7f6b6c5675a0] 
-> #19 master_service_run[0x7f6b6c4b27f0] -> #20 main[0x55654e6688a0] 
-> #21 [unw_get_proc_name() failed: -10] -> #22 
__libc_start_main[0x7f6b6c234ce0] -> #23 _start[0x55654e668eb0]
2026-01-13T21:44:38.459536+01:00 uschi dovecot: 
imap([email protected])<4194077>: Fatal: master: 
service(imap): child 4194077 killed with signal 6 (core dumps disabled 
- https://dovecot.org/bugreport.html#coredumps)


# coredumpctl dump
   PID: 1071230 (imap)
   UID: 5000 (vmail)
   GID: 5000 (vmail)
Signal: 6 (ABRT)
 Timestamp: Fri 2026-01-16 19:17:15 CET (2s ago)
  Command Line: $'dovecot/imap [[email protected]  UID 
MOVE]'

Executable: /usr/lib/dovecot/imap
 Control Group: /system.slice/dovecot.service
  Unit: dovecot.service
 Slice: system.slice
   Boot ID: 3668d179bda340229a780d5d43e426c3
Machine ID: 05698baa30ae984c9bd014566e16da18
  Hostname: uschi
   Storage: 
/var/lib/systemd/coredump/core.imap.5000.3668d179bda340229a780d5d43e426c3.1071230.176858743500.zst 
(present)

  Size on Disk: 1.1M
   Message: Process 1071230 (imap) of user 5000 dumped core.

Module libgcc_s.so.1 from deb gcc-14-14.2.0-19.amd64
Module libstdc++.so.6 from deb gcc-14-14.2.0-19.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Stack trace of thread 1071230:
#0  0x7fbd1ca9f95c n/a (libc.so.6 + 0x9495c)
#1  0x7fbd1ca4acc2 raise (libc.so.6 + 0x3fcc2)
#2  0x7fbd1ca334ac abort (libc.so.6 + 0x284ac)
#3  0x7fbd1cc6caa0 n/a (libdovecot.so.0 + 0x6caa0)
#4  0x7fbd1cd49e67 n/a (libdovecot.so.0 + 0x149e67)
#5  0x7fbd1cc6c3d0 i_panic (libdovecot.so.0 + 
0x6c3d0)
#6  0x7fbd1c42f942 n/a (lib95_imap_sieve_plugin.so 
+ 0x4942)
#7  0x7fbd1c431223 n/a (lib95_imap_sieve_plugin.so 
+ 0x6223)
#8  0x7fbd1d258f10 n/a (libdovecot-storage.so.0 + 
0x11bf10)
#9  0x7fbd1d1a843b mailbox_save_alloc 
(libdovecot-storage.so.0 + 0x6b43b)

#10 0x5590b7ed4a69 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64


With log_debug=category=imap I see that the iPad moves many mails from 
Inbox to Trash


[...]
2026-01-19T22:22:39.721023+01:00 uschi dovecot: 
imap([email protected])<1961360>: Debug: Mailbox Trash: 
imapsieve: MOVE event
2026-01-19T22:22:39.721054+01:00 uschi dovecot: 
imap([email protected])<1961360>: Debug: Mailbox INBOX: 
UID 56191: Expunge requested
2026-01-19T22:22:39.721090+01:00 uschi dovecot: 
imap([email protected])<1961360>: Debug: Mailbox Trash: 
imapsieve: M

Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-16 Thread Christian Kivalo via dovecot
Reposting my reply from a few days ago to a thread with the same panic 
message.


I found this in my logs when some mails that got deleted on the phone 
were still visible in roundcube. I currently have three users that 
trigger the panic. One user with an iPad accounts for nearly all of the 
panics.


The problem shows when the account is accessed from android 
(thunderbird) or ipad. The same accounts show no problems when beeing 
used with roundcube or thunderbird on windows.


I enabled core dumps on 2026-01-14 and have ~8500 core dumps of the imap 
binary until now.


What causes this error and how can I fix it?
In the logs all I see is the users login, then the panic.

# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-custom.kvm x86_64 Debian 13.3 ext4

2026-01-13T21:44:32.317609+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, lip=, 
mpid=4194077, TLS, session=
2026-01-13T21:44:38.455379+01:00 uschi dovecot: 
imap([email protected])<4194077>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion 
failed: (ismt->src_box == NULL || ismt->src_box == src_box)
2026-01-13T21:44:38.458755+01:00 uschi dovecot: 
imap([email protected])<4194077>: Error: Raw backtrace: 
#1 [unw_get_proc_name() failed: -10] -> #2 [unw_get_proc_name() failed: 
-10] -> #3 i_panic[0x7f6b6c46c2f6] -> #4 [unw_get_proc_name() failed: 
-10] -> #5 [unw_get_proc_name() failed: -10] -> #6 [unw_get_proc_name() 
failed: -10] -> #7 mailbox_save_alloc[0x7f6b6ca103c0] -> #8 
[unw_get_proc_name() failed: -10] -> #9 command_exec[0x55654e677400] -> 
#10 [unw_get_proc_name() failed: -10] -> #11 [unw_get_proc_name() 
failed: -10] -> #12 [unw_get_proc_name() failed: -10] -> #13 
client_handle_input[0x55654e67ddc0] -> #14 
client_continue_pending_input[0x55654e67e0b0] -> #15 
io_loop_call_io[0x7f6b6c565490] -> #16 
io_loop_handler_run_internal[0x7f6b6c567230] -> #17 
io_loop_handler_run[0x7f6b6c5673c0] -> #18 io_loop_run[0x7f6b6c5675a0] 
-> #19 master_service_run[0x7f6b6c4b27f0] -> #20 main[0x55654e6688a0] -> 
#21 [unw_get_proc_name() failed: -10] -> #22 
__libc_start_main[0x7f6b6c234ce0] -> #23 _start[0x55654e668eb0]
2026-01-13T21:44:38.459536+01:00 uschi dovecot: 
imap([email protected])<4194077>: Fatal: master: 
service(imap): child 4194077 killed with signal 6 (core dumps disabled - 
https://dovecot.org/bugreport.html#coredumps)


# coredumpctl dump
   PID: 1071230 (imap)
   UID: 5000 (vmail)
   GID: 5000 (vmail)
Signal: 6 (ABRT)
 Timestamp: Fri 2026-01-16 19:17:15 CET (2s ago)
  Command Line: $'dovecot/imap [[email protected]  UID 
MOVE]'

Executable: /usr/lib/dovecot/imap
 Control Group: /system.slice/dovecot.service
  Unit: dovecot.service
 Slice: system.slice
   Boot ID: 3668d179bda340229a780d5d43e426c3
Machine ID: 05698baa30ae984c9bd014566e16da18
  Hostname: uschi
   Storage: 
/var/lib/systemd/coredump/core.imap.5000.3668d179bda340229a780d5d43e426c3.1071230.176858743500.zst 
(present)

  Size on Disk: 1.1M
   Message: Process 1071230 (imap) of user 5000 dumped core.

Module libgcc_s.so.1 from deb gcc-14-14.2.0-19.amd64
Module libstdc++.so.6 from deb gcc-14-14.2.0-19.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Stack trace of thread 1071230:
#0  0x7fbd1ca9f95c n/a (libc.so.6 + 0x9495c)
#1  0x7fbd1ca4acc2 raise (libc.so.6 + 0x3fcc2)
#2  0x7fbd1ca334ac abort (libc.so.6 + 0x284ac)
#3  0x7fbd1cc6caa0 n/a (libdovecot.so.0 + 0x6caa0)
#4  0x7fbd1cd49e67 n/a (libdovecot.so.0 + 0x149e67)
#5  0x7fbd1cc6c3d0 i_panic (libdovecot.so.0 + 
0x6c3d0)
#6  0x7fbd1c42f942 n/a (lib95_imap_sieve_plugin.so + 
0x4942)
#7  0x7fbd1c431223 n/a (lib95_imap_sieve_plugin.so + 
0x6223)
#8  0x7fbd1d258f10 n/a (libdovecot-storage.so.0 + 
0x11bf10)
#9  0x7fbd1d1a843b mailbox_save_alloc 
(libdovecot-storage.so.0 + 0x6b43b)

#10 0x5590b7ed4a69 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64


--
 Christian Kivalo
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-13 Thread Christian Kivalo via dovecot

On 2025-12-30 08:45, Kamil Jońca via dovecot wrote:

Recently I found in my lda logs:
2025-12-30T07:55:14.717927+01:00 alfa dovecot: lda(kjonca): Error: Raw 
backtrace: #1 [unw_get_proc_name() failed: -10] -> #2 
i_syslog_fatal_handler[0x7f99a2351430] -> #3 i_panic[0x7f99a226d453] -> 
#4 [unw_get_proc_name() failed: -10] -> #5 [unw_get_proc_name() failed: 
-10] -> #6 [unw_get_proc_name() failed: -10] -> #7 
buffer_append[0x7f99a2345270] -> #8 
dregex_code_match_groups[0x7f99a233f1a0] -> #9 [unw_get_proc_name() 
failed: -10] -> #10 [unw_get_proc_name() failed: -10] -> #11 
sieve_match_value[0x7f99a117f770] -> #12 sieve_match[0x7f99a117fa30] -> 
#13 [unw_get_proc_name() failed: -10] -> #14 
sieve_interpreter_continue[0x7f99a117e100] -> #15 
sieve_multiscript_run[0x7f99a1190330] -> #16 [unw_get_proc_name() 
failed: -10] -> #17 mail_deliver[0x7f99a27e54a0] -> #18 
main[0x55e371c555e0] -> #19 __libc_start_call_main[0x7f99a1e29f00] -> 
#20 __libc_start_main_alias_2[0x7f99a1e29fa0] -> #21 
_start[0x55e371c566a0]


Found the same in my logs when some mails that got deleted on the phone 
were still visible in roundcube. I currently have three users showing 
the same error.


# doveconf -n
# 2.4.2-2+debian13 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2-2+debian13 (767418c3)
# OS: Linux 6.12.0-sec-svcs.kvm x86_64 Debian 13.3 ext4


2026-01-13T21:44:32.317609+01:00 uschi dovecot: imap-login: Logged in: 
user=, method=PLAIN, rip=, lip=, 
mpid=4194077, TLS, session=
2026-01-13T21:44:38.455379+01:00 uschi dovecot: 
imap([email protected])<4194077>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion 
failed: (ismt->src_box == NULL || ismt->src_box == src_box)
2026-01-13T21:44:38.458755+01:00 uschi dovecot: 
imap([email protected])<4194077>: Error: Raw backtrace: 
#1 [unw_get_proc_name() failed: -10] -> #2 [unw_get_proc_name() failed: 
-10] -> #3 i_panic[0x7f6b6c46c2f6] -> #4 [unw_get_proc_name() failed: 
-10] -> #5 [unw_get_proc_name() failed: -10] -> #6 [unw_get_proc_name() 
failed: -10] -> #7 mailbox_save_alloc[0x7f6b6ca103c0] -> #8 
[unw_get_proc_name() failed: -10] -> #9 command_exec[0x55654e677400] -> 
#10 [unw_get_proc_name() failed: -10] -> #11 [unw_get_proc_name() 
failed: -10] -> #12 [unw_get_proc_name() failed: -10] -> #13 
client_handle_input[0x55654e67ddc0] -> #14 
client_continue_pending_input[0x55654e67e0b0] -> #15 
io_loop_call_io[0x7f6b6c565490] -> #16 
io_loop_handler_run_internal[0x7f6b6c567230] -> #17 
io_loop_handler_run[0x7f6b6c5673c0] -> #18 io_loop_run[0x7f6b6c5675a0] 
-> #19 master_service_run[0x7f6b6c4b27f0] -> #20 main[0x55654e6688a0] -> 
#21 [unw_get_proc_name() failed: -10] -> #22 
__libc_start_main[0x7f6b6c234ce0] -> #23 _start[0x55654e668eb0]
2026-01-13T21:44:38.459536+01:00 uschi dovecot: 
imap([email protected])<4194077>: Fatal: master: 
service(imap): child 4194077 killed with signal 6 (core dumps disabled - 
https://dovecot.org/bugreport.html#coredumps)


The problems shows when the account is accessed from android 
(thunderbird) or ipad. The same accounts show no problems when beeing 
used with roundcube or thunderbird on windows.


I have core dumps available.
--
 Christian Kivalo
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-13 Thread Massimiliano Torromeo via dovecot
I'm having the exact same issue on multiple servers after upgrading from 2.3.x 
to 2.4.2.

-- 
Massimiliano Torromeo

signature.asc
Description: This is a digitally signed message part.
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2026-01-09 Thread Stephen Callaghan via dovecot
   Having a similar issue: 2.4.2 (0962ed2104) via docker.
   Causing constant core dumping and my client keeps retrying blocking
   everything up.
   Any suggestions on how to identify the cause of the problem?
   S.
   Jan 09 19:22:13 imap(SNIP)<555>: Panic: file
   imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion
   failed: (ismt->src_box == NULL || ismt->src_box == src_box)
   Jan 09 19:22:13 imap(SNIP)<555>: Error: Raw backtrace:
   #1 [unw_get_proc_name() failed: -10] -> #2 [unw_get_proc_name() failed:
   -10] -> #3 [unw_get_proc_name() failed: -10] -> #4 i_panic[0x7f13c0e8b7dd]
   -> #5 [unw_get_proc_name() failed: -10] -> #6 [unw_get_proc_name() failed:
   -10] -> #7 [unw_get_proc_name() failed: -10] -> #8
   mailbox_save_alloc[0x7f13c11baf52] -> #9 [unw_get_proc_name() failed: -10]
   -> #10 [unw_get_proc_name() failed: -10] -> #11 cmd_move[0x5572105ab0ca]
   -> #12 command_exec[0x5572105c33f4] -> #13 [unw_get_proc_name() failed:
   -10] -> #14 [unw_get_proc_name() failed: -10] -> #15 [unw_get_proc_name()
   failed: -10] -> #16 [unw_get_proc_name() failed: -10] -> #17
   client_handle_input[0x5572105c060c] -> #18 client_input[0x5572105c0847] ->
   #19 io_loop_call_io[0x7f13c0eb9798] -> #20
   io_loop_handler_run_internal[0x7f13c0ebd48a] -> #21
   io_loop_handler_run[0x7f13c0eb9aea] -> #22 io_loop_run[0x7f13c0eb9963] ->
   #23 master_service_run[0x7f13c0d7264b] -> #24 main[0x5572105db2a4] -> #25
   [unw_get_proc_name() failed: -10] -> #26 __libc_start_main[0x7f13c0ae4ce0]
   -> #27 _start[0x5572105a62f0]
   Jan 09 19:22:13 imap(SNIP)<555>: Fatal: master:
   service(imap): child 555 killed with signal 6 (core dumped)
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2025-12-03 Thread Thomas via dovecot
No idea where the error might be coming from?
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2025-12-01 Thread Thomas via dovecot
For anonymization reasons, I have hidden the host and domain names:

# 2.4.2 (0962ed2104): /usr/local/dovecot/etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2 (767418c3)
# OS: Linux 6.12.0-157.el10.x86_64 x86_64 CentOS Stream release 10 (Coughlan)
# Hostname: xxx.domain.tld
dovecot_config_version = 2.4.2
auth_allow_cleartext = yes
auth_allow_weak_schemes = yes
auth_default_domain = domain.tld
auth_mechanisms = plain login
auth_socket_path = /usr/local/dovecot/var/run/dovecot/auth-userdb
auth_verbose = yes
auth_verbose_passwords = sha1
dovecot_storage_version = 2.4.2
first_valid_gid = 89
first_valid_uid = 89
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
hostname = xxx.domain.tld
last_valid_gid = 89
last_valid_uid = 89
listen {
  * = yes
  :: = no
}
log_path = /dev/stderr
mail_access_groups = 89
mail_driver = maildir
mail_gid = 89
mail_path = ~/Maildir
mail_plugins {
  notify = yes
  quota = yes
}
mail_privileged_group = 89
mail_uid = 89
mailbox_list_validate_fs_names = no
passdb_default_password_scheme = SHA512-CRYPT
postmaster_address = [email protected]
protocols {
  imap = yes
  sieve = yes
}
sql_driver = mysql
passdb sql {
  query = SELECT CONCAT(vpopmail.pw_name, '@', vpopmail.pw_domain) AS user, 
vpopmail.pw_passwd AS password, vpopmail.pw_dir AS userdb_home, 89 AS 
userdb_uid, 89 AS userdb_gid, CONCAT(REPLACE(SUBSTRING_INDEX(vpopmail.pw_shell, 
'S', 1), 'NOQUOTA', '0'), 'B') AS userdb_quota_storage_size FROM vpopmail LEFT 
JOIN aliasdomains ON aliasdomains.alias='%{user | domain}' LEFT JOIN limits ON 
limits.domain='%{user | domain}' WHERE vpopmail.pw_name='%{user | username}' 
AND (vpopmail.pw_domain='%{user | domain}' OR 
vpopmail.pw_domain=aliasdomains.domain) AND ('%{local_port}'!='995' OR 
!(vpopmail.pw_gid & 2)) AND ('%{remote_ip}'!='127.0.0.1' OR !(vpopmail.pw_gid & 
4)) AND ('%{remote_ip}'='127.0.0.1' OR '%{local_port}'!='993' OR 
!(vpopmail.pw_gid & 8)) AND ('%{remote_ip}'!='127.0.0.1' OR 
COALESCE(disable_webmail,0)!=1) AND ('%{remote_ip}'='127.0.0.1' OR 
COALESCE(disable_imap,0)!=1)
}
userdb prefetch {
  driver = prefetch
}
userdb sql {
  iterate_query = SELECT CONCAT(pw_name,'@',pw_domain) AS user FROM vpopmail
  query = SELECT vpopmail.pw_dir AS home, 89 AS uid, 89 AS gid, 
CONCAT(REPLACE(SUBSTRING_INDEX(vpopmail.pw_shell, 'S', 1), 'NOQUOTA', '0'), 
'B') AS quota_storage_size FROM vpopmail WHERE vpopmail.pw_name='%{user | 
username}' AND vpopmail.pw_domain='%{user | domain}'
}
namespace inbox {
  inbox = yes
  mailbox Drafts {
auto = subscribe
special_use = "\\Drafts"
  }
  mailbox Junk {
autoexpunge = 30d
special_use = "\\Junk"
  }
  mailbox Trash {
autoexpunge = 30d
special_use = "\\Trash"
quota_storage_extra = 100M
  }
  mailbox Sent {
special_use = "\\Sent"
  }
  mailbox "Sent Messages" {
special_use = "\\Sent"
  }
}
maildir {
  broken_filename_sizes = yes
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service imap {
}
service auth {
  user = $SET:default_internal_user
  unix_listener auth-userdb {
group = vchkpw
mode = 0660
user = vpopmail
  }
}
service auth-worker {
  user = $SET:default_internal_user
}
service stats {
  unix_listener stats-reader {
group = vchkpw
mode = 0660
user = vpopmail
  }
  unix_listener stats-writer {
group = vchkpw
mode = 0660
user = vpopmail
  }
}
protocol lda {
  mail_plugins {
sieve = yes
  }
}
protocol imap {
  mail_plugins {
notify = yes
mail_log = yes
imap_sieve = yes
imap_quota = yes
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service managesieve {
}
language en {
  default = yes
}
quota "User quota" {
  driver = maildir
  storage_grace = 10M
  quota_warning overquota {
quota_storage_percentage = 100
execute quota-warning {
  args = 100 %{user}
}
  }
  quota_warning warn-95 {
quota_storage_percentage = 95
execute quota-warning {
  args = 95 %{user}
}
  }
  quota_warning warn-85 {
quota_storage_percentage = 85
execute quota-warning {
  args = 85 %{user}
}
  }
}
service quota-warning {
  executable = script ../../etc/scripts/quota-warning.sh
  user = vpopmail
  unix_listener quota-warning {
group = vchkpw
mode = 0660
user = dovenull
  }
}
sieve_script personal {
  active_path = ~/.sieve/dovecot.sieve
  driver = file
  path = ~/.sieve
}
mysql localhost {
  dbname = vpopmail
  password = # hidden, use -P to show it
  user = vpopmail
}
ssl_server {
  cert_file = /etc/pki/tls/certs/domain.tld.pem
  key_file = /etc/pki/tls/private/domain.tld.key
}
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Re: Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2025-11-28 Thread Stephan Bosch via dovecot

We'll need a look at your configuration (`dovecot -n`).

Op 28-11-2025 om 17:34 schreef Thomas via dovecot:

Hello,
I'm new to dovecot and greet everyone!
I come from courier-imap and updated my imap server now to dovecot-2.4.2. All 
user directories and files were copied 1:1.
In some cases, I now receive the following message in logfiles:

2025-11-28 15:20:52.184760182 Nov 28 15:20:52 imap(Email_address_hidden)<2297539>: Error: Raw backtrace: 
libdovecot.so.0(backtrace_append+0x39) [0x7f8eb793ab09] -> libdovecot.so.0(backtrace_get+0x22) [0x7f8eb793ac42] -> 
libdovecot.so.0(+0x1493fc) [0x7f8eb79493fc] -> libdovecot.so.0(+0x149491) [0x7f8eb7949491] -> libdovecot.so.0(+0x6bde2) 
[0x7f8eb786bde2] -> lib95_imap_sieve_plugin.so(+0x49b7) [0x7f8eb74bb9b7] -> lib95_imap_sieve_plugin.so(+0x7c8b) [0x7f8eb74bec8b] 
-> libdovecot-storage.so.0(index_mail_free+0xe) [0x7f8eb7cb4c9e] -> lib95_imap_sieve_plugin.so(+0x6ef5) [0x7f8eb74bdef5] -> 
libdovecot-storage.so.0(mail_free+0x1a) [0x7f8eb7c29bca] -> libdovecot-storage.so.0(+0xf5c52) [0x7f8eb7cc7c52] -> 
libdovecot-storage.so.0(mail_index_transaction_commit_full+0x8c) [0x7f8eb7ce11ec] -> 
libdovecot-storage.so.0(index_transaction_commit+0xf2) [0x7f8eb7cc81f2] -> libdovecot-storage.so.0(+0xcff1e) [0x7f8eb7ca1f1e] -> 
lib95_imap_sieve_plugin.so(+0x8576) [0x7f8eb74bf576] -> l

ib

  15_notify_plugin.so(+0x368f) [0x7f8eb7bc668f] -> lib10_quota_plugin.so(+0xd99d) [0x7f8eb74d999d] -> 
libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x79) [0x7f8eb7c3bac9] -> imap(+0x1762b) 
[0x562bf69c462b] -> imap(command_exec+0xa4) [0x562bf69d3334] -> imap(+0x24180) [0x562bf69d1180] -> 
imap(+0x24214) [0x562bf69d1214] -> imap(+0x2449b) [0x562bf69d149b] -> imap(client_handle_input+0x1c5) 
[0x562bf69d1675] -> imap(client_input+0x73) [0x562bf69d1c33] -> libdovecot.so.0(io_loop_call_io+0x67) 
[0x7f8eb7960187] -> libdovecot.so.0(io_loop_handler_run_internal+0x12a) [0x7f8eb79618ba] -> 
libdovecot.so.0(io_loop_handler_run+0x51) [0x7f8eb7960231] -> libdovecot.so.0(io_loop_run+0x48) [0x7f8eb7960408] -> 
libdovecot.so.0(master_service_run+0x19e) [0x7f8eb78b011e]
2025-11-28 15:20:52.940692672 Nov 28 15:20:52 
imap(Email_address_hiddene)<2297539>: Fatal: master: 
service(imap): child 2297539 killed with signal 6 (core dumped)

If I filter for "Panic" now I see:
2025-11-28 15:20:52.183676628 Nov 28 15:20:52 
imap(Email_address_hidden)<2297539>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: 
(ismt->src_box == NULL || ismt->src_box == src_box)

Panic repeats up to several times.

In moment of crash I can find lots [# of repeats] of copies of ONE mail file in 
users .Trash/tmp dir. Original mail file also in e.g. INBOX/cur

Please tell me wht's going on here.
I checked all permission, dirs and so on.

CentOS 10
s/qmail
dovecot-2.4.2
dovecot-pigeonhole-2.4.2

Regards,
Thomas
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]


Panic: file imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion failed: (ismt->src_box == NULL || ismt->src_box == src_box)

2025-11-28 Thread Thomas via dovecot
Hello,
I'm new to dovecot and greet everyone!
I come from courier-imap and updated my imap server now to dovecot-2.4.2. All 
user directories and files were copied 1:1.
In some cases, I now receive the following message in logfiles:

2025-11-28 15:20:52.184760182 Nov 28 15:20:52 
imap(Email_address_hidden)<2297539>: Error: Raw backtrace: 
libdovecot.so.0(backtrace_append+0x39) [0x7f8eb793ab09] -> 
libdovecot.so.0(backtrace_get+0x22) [0x7f8eb793ac42] -> 
libdovecot.so.0(+0x1493fc) [0x7f8eb79493fc] -> libdovecot.so.0(+0x149491) 
[0x7f8eb7949491] -> libdovecot.so.0(+0x6bde2) [0x7f8eb786bde2] -> 
lib95_imap_sieve_plugin.so(+0x49b7) [0x7f8eb74bb9b7] -> 
lib95_imap_sieve_plugin.so(+0x7c8b) [0x7f8eb74bec8b] -> 
libdovecot-storage.so.0(index_mail_free+0xe) [0x7f8eb7cb4c9e] -> 
lib95_imap_sieve_plugin.so(+0x6ef5) [0x7f8eb74bdef5] -> 
libdovecot-storage.so.0(mail_free+0x1a) [0x7f8eb7c29bca] -> 
libdovecot-storage.so.0(+0xf5c52) [0x7f8eb7cc7c52] -> 
libdovecot-storage.so.0(mail_index_transaction_commit_full+0x8c) 
[0x7f8eb7ce11ec] -> libdovecot-storage.so.0(index_transaction_commit+0xf2) 
[0x7f8eb7cc81f2] -> libdovecot-storage.so.0(+0xcff1e) [0x7f8eb7ca1f1e] -> 
lib95_imap_sieve_plugin.so(+0x8576) [0x7f8eb74bf576] -> lib
 15_notify_plugin.so(+0x368f) [0x7f8eb7bc668f] -> 
lib10_quota_plugin.so(+0xd99d) [0x7f8eb74d999d] -> 
libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x79) 
[0x7f8eb7c3bac9] -> imap(+0x1762b) [0x562bf69c462b] -> imap(command_exec+0xa4) 
[0x562bf69d3334] -> imap(+0x24180) [0x562bf69d1180] -> imap(+0x24214) 
[0x562bf69d1214] -> imap(+0x2449b) [0x562bf69d149b] -> 
imap(client_handle_input+0x1c5) [0x562bf69d1675] -> imap(client_input+0x73) 
[0x562bf69d1c33] -> libdovecot.so.0(io_loop_call_io+0x67) [0x7f8eb7960187] -> 
libdovecot.so.0(io_loop_handler_run_internal+0x12a) [0x7f8eb79618ba] -> 
libdovecot.so.0(io_loop_handler_run+0x51) [0x7f8eb7960231] -> 
libdovecot.so.0(io_loop_run+0x48) [0x7f8eb7960408] -> 
libdovecot.so.0(master_service_run+0x19e) [0x7f8eb78b011e]
2025-11-28 15:20:52.940692672 Nov 28 15:20:52 
imap(Email_address_hiddene)<2297539>: Fatal: master: 
service(imap): child 2297539 killed with signal 6 (core dumped)

If I filter for "Panic" now I see:
2025-11-28 15:20:52.183676628 Nov 28 15:20:52 
imap(Email_address_hidden)<2297539>: Panic: file 
imap-sieve-storage.c: line 216 (imap_sieve_add_mailbox_event): assertion 
failed: (ismt->src_box == NULL || ismt->src_box == src_box)

Panic repeats up to several times.

In moment of crash I can find lots [# of repeats] of copies of ONE mail file in 
users .Trash/tmp dir. Original mail file also in e.g. INBOX/cur

Please tell me wht's going on here.
I checked all permission, dirs and so on.

CentOS 10
s/qmail
dovecot-2.4.2
dovecot-pigeonhole-2.4.2

Regards,
Thomas
___
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]