Another update:
I think this is a weird encryption key issue, looking at the logs from mailcow/dovecot:1.21
:
Dec 12 21:07:30 b7f15c4c02ca dovecot: imap(user@example.com)<199><328y5KfvYuysFgH4>: Disconnected: FETCH failed: Mailbox INBOX: UID=7576: read() failed: read(/var/vmail/example.com/user/Maildir/cur/1665173325.M156278P138.0cb49019f340,S=1605,W=1651:2,S) failed: Decryption error: no private key available (read reason=prefetch) in=628 out=28830 deleted=0 expunged=0 trashed=0 hdr_count=38 hdr_bytes=121 body_count=0 body_bytes=0
Considering I don’t think there’s a way to recover these emails without the correct key (still not sure how this happened in the first place)
Is there an easy way to find the emails that can’t be read? It’s quite painful having to read the log file each time, as it only tries to load one email at a time, so I have to restart the host in order to get a new error log.
Thanks