Hi,

since one or two month I have a problem with Dovecot not updating the read-flag on mails using IMAP. I receive new mails, but when reading, they still unread on other devices (but shown as read on the first device).

When I remember correct, this problem doesn't come with an update of dovecot, but just occured at some time. But I've updated dovecot since then a few times.

Whenever a client connects to dovecot I get an panic in the log. I therefore added a log file and my dovecot configuration (is this fine or does it need to be in the mail body?). There are system information in the output of dovecot -n; the filesystem dovecot is running on is ext4.

I hope I provided all information needed and seeing forward to get a hint what the problem might be.

Marius
{\rtf1\ansi\ansicpg1252\cocoartf2513
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset0 Menlo-Bold;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red180\green36\blue25;\red64\green11\blue217;
}
{\*\expandedcolortbl;;\csgray\c0;\cssrgb\c76409\c21698\c12524;\cssrgb\c32308\c18668\c88227;
}
\paperw11900\paperh16840\margl1440\margr1440\vieww18700\viewh19880\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0

\f0\fs22 \cf2 \CocoaLigature0 Jun 10 09:17:00 aina dovecot[1497]: imap-login: Login: user=<marius>, method=PLAIN, rip=185.59.220.109, lip=172.29.229.202, mpid=1667, TLS, session=<1U5MobWnZPS5O9xt>\
Jun 10 09:17:00 aina dovecot[1497]: 
\f1\b \cf3 imap(marius)<1667><1U5MobWnZPS5O9xt>: Panic: file cmd-copy.c: line 152 (fetch_and_copy): assertion failed: (copy_ctx->copy_count == seq_range_count(&copy_ctx->saved_uids))
\f0\b0 \cf2 \
Jun 10 09:17:00 aina audit[1667]: \cf4 ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=1667 comm="imap" exe="/usr/lib/dovecot/imap" sig=6 res=1\cf2 \
Jun 10 09:17:00 aina dovecot[1497]: 
\f1\b \cf3 imap(marius)<1667><1U5MobWnZPS5O9xt>: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(backtrace_append+0x43) [0x7fbedd4b4533] -> /usr/lib/dovecot/libdovecot.so.0(backtrace_get+0x20) [0x7fbedd4b4650] -> /usr/lib/dovecot/libdovecot.so.0(+0xe9aef) [0x7fbedd4bdaef] -> /usr/lib/dovecot/libdovecot.so.0(+0xe9b81) [0x7fbedd4bdb81] -> /usr/lib/dovecot/libdovecot.so.0(+0x47988) [0x7fbedd41b988] -> dovecot/imap(+0xe1c7) [0x5616568a01c7] -> dovecot/imap(command_exec+0xa4) [0x5616568b22d4] -> dovecot/imap(+0x1e613) [0x5616568b0613] -> dovecot/imap(+0x1e6ac) [0x5616568b06ac] -> dovecot/imap(client_handle_input+0x1c5) [0x5616568b0ab5] -> dovecot/imap(client_input+0x74) [0x5616568b1044] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x6b) [0x7fbedd4d405b] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x13b) [0x7fbedd4d56cb] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x51) [0x7fbedd4d4101] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x41) [0x7fbedd4d42d1] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x14) [0x7fbedd44ed14] -> dovecot/imap(main+0x487) [0x5616568a24c7] -> /usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7fbedd224002] -> dovecot/imap(_start+0x2e) [0x5616568a255e]
\f0\b0 \cf2 \
Jun 10 09:17:00 aina kernel: 
\f1\b audit: type=1701 audit(1591773420.969:285): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=1667 comm="imap" exe="/usr/lib/dovecot/imap" sig=6 res=1
\f0\b0 \
Jun 10 09:17:00 aina audit: \cf4 BPF prog-id=22 op=LOAD\cf2 \
Jun 10 09:17:00 aina kernel: 
\f1\b audit: type=1334 audit(1591773420.993:286): prog-id=22 op=LOAD
\f0\b0 \
Jun 10 09:17:00 aina audit: \cf4 BPF prog-id=23 op=LOAD\cf2 \
Jun 10 09:17:00 aina audit[1]: \cf4 SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-1668-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\cf2 \
Jun 10 09:17:00 aina systemd[1]: Started Process Core Dump (PID 1668/UID 0).\
Jun 10 09:17:01 aina kernel: 
\f1\b audit: type=1334 audit(1591773420.996:287): prog-id=23 op=LOAD
\f0\b0 \
Jun 10 09:17:01 aina kernel: 
\f1\b audit: type=1130 audit(1591773420.996:288): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-1668-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
\f0\b0 \
Jun 10 09:17:01 aina dovecot[1497]: 
\f1\b \cf3 imap(marius)<1667><1U5MobWnZPS5O9xt>: Fatal: master: service(imap): child 1667 killed with signal 6 (core dumped)
\f0\b0 \cf2 \
Jun 10 09:17:01 aina systemd-coredump[1669]: 
\f1\b \cf3 Process 1667 (imap) of user 1000 dumped core.
\f0\b0 \cf2 \
                                             \
                                             
\f1\b \cf3 Stack trace of thread 1667:
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #0  0x00007fbedd239355 raise (libc.so.6 + 0x3c355)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #1  0x00007fbedd222853 abort (libc.so.6 + 0x25853)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #2  0x00007fbedd41bccb n/a (libdovecot.so.0 + 0x47ccb)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #3  0x00007fbedd4bdb81 n/a (libdovecot.so.0 + 0xe9b81)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #4  0x00007fbedd41b988 i_panic (libdovecot.so.0 + 0x47988)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #5  0x00005616568a01c7 n/a (imap + 0xe1c7)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #6  0x00005616568b22d4 command_exec (imap + 0x202d4)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #7  0x00005616568b0613 n/a (imap + 0x1e613)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #8  0x00005616568b06ac n/a (imap + 0x1e6ac)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #9  0x00005616568b0ab5 client_handle_input (imap + 0x1eab5)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #10 0x00005616568b1044 client_input (imap + 0x1f044)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #11 0x00007fbedd4d405b io_loop_call_io (libdovecot.so.0 + 0x10005b)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #12 0x00007fbedd4d56cb io_loop_handler_run_internal (libdovecot.so.0 + 0x1016cb)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #13 0x00007fbedd4d4101 io_loop_handler_run (libdovecot.so.0 + 0x100101)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #14 0x00007fbedd4d42d1 io_loop_run (libdovecot.so.0 + 0x1002d1)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #15 0x00007fbedd44ed14 master_service_run (libdovecot.so.0 + 0x7ad14)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #16 0x00005616568a24c7 main (imap + 0x104c7)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #17 0x00007fbedd224002 __libc_start_main (libc.so.6 + 0x27002)
\f0\b0 \cf2 \
                                             
\f1\b \cf3 #18 0x00005616568a255e _start (imap + 0x1055e)
\f0\b0 \cf2 \
Jun 10 09:17:01 aina systemd[1]: systemd-coredump@6-1668-0.service: Succeeded.\
Jun 10 09:17:01 aina kernel: 
\f1\b audit: type=1131 audit(1591773421.663:289): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-1668-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
\f0\b0 \
Jun 10 09:17:01 aina audit[1]: \cf4 SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-1668-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\cf2 \
Jun 10 09:17:01 aina audit: \cf4 BPF prog-id=23 op=UNLOAD\cf2 \
Jun 10 09:17:01 aina audit: \cf4 BPF prog-id=22 op=UNLOAD\cf2 \
Jun 10 09:17:01 aina kernel: 
\f1\b audit: type=1334 audit(1591773421.753:290): prog-id=23 op=UNLOAD
\f0\b0 \
Jun 10 09:17:01 aina kernel: 
\f1\b audit: type=1334 audit(1591773421.753:291): prog-id=22 op=UNLOAD}
{\rtf1\ansi\ansicpg1252\cocoartf2513
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
{\*\expandedcolortbl;;\csgray\c0;}
\paperw11900\paperh16840\margl1440\margr1440\vieww18700\viewh19880\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0

\f0\fs22 \cf2 \CocoaLigature0 # 2.3.10.1 (a3d0e1171): /etc/dovecot/dovecot.conf\
# OS: Linux 5.6.15-arch1-1 x86_64  \
# Hostname: aina\
mail_plugins = " virtual"\
namespace folder \{\
  location = maildir:/mnt/mail/%u/maildir:LAYOUT=fs\
  prefix = \
  separator = /\
\}\
namespace inbox \{\
  inbox = yes\
  location = virtual:/mnt/mail/%u/maildir/All:INBOX=/mnt/mail/%u/maildir/All/Inbox:LAYOUT=fs\
  mailbox Drafts \{\
    auto = subscribe\
    special_use = \\Drafts\
  \}\
  mailbox Flagged \{\
    auto = subscribe\
    special_use = \\Flagged\
  \}\
  mailbox Junk \{\
    auto = subscribe\
    special_use = \\Junk\
  \}\
  mailbox Sent \{\
    auto = subscribe\
    special_use = \\Sent\
  \}\
  mailbox Trash \{\
    auto = subscribe\
    special_use = \\Trash\
  \}\
  prefix = All/\
  separator = /\
\}\
passdb \{\
  args = scheme=CRYPT username_format=%u /mnt/mail/users\
  driver = passwd-file\
\}\
protocols = imap\
service imap-login \{\
  inet_listener imap \{\
    port = 0\
  \}\
  inet_listener imaps \{\
    port = 21315\
    ssl = yes\
  \}\
\}\
service stats \{\
  unix_listener stats-writer \{\
    mode = 0666\
  \}\
\}\
ssl = required\
ssl_cert = </etc/letsencrypt/live/aina.jascosius.de/fullchain.pem\
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA\
ssl_dh = # hidden, use -P to show it\
ssl_key = # hidden, use -P to show it\
ssl_prefer_server_ciphers = yes\
userdb \{\
  args = username_format=%u /mnt/mail/users\
  driver = passwd-file\
  override_fields = home=/mnt/mail/%u\
\}}

Reply via email to