Dovecot does not support it Until 2.3.11. So, when it's released we could modify the script, but at this time it'd just make all emails unreadable by dovecot.How about using/supporting that format?
Dovecot does not support it Until 2.3.11. So, when it's released we could modify the script, but at this time it'd just make all emails unreadable by dovecot.How about using/supporting that format?
The script corrupted a bunch of email. So I am looking for away to fix them. Or undo the compression. It basically created a bunch of no subject emails. When you try to delete them in RC you can’t.Emails? "find" command would need to be used for this, to find all the emails in Maildir directories and execute decompression command. Do you see any reason to do it?
Is that the latest version of the script/DA? If yes, I'd suggest running the script again, you may run it for a single maildir if you wish, and see if it solves it I've seen some clients who had older version and got zstd emails gzippped (because of no zstd support in that version of the script).The script corrupted a bunch of email. So I am looking for away to fix them. Or undo the compression. It basically created a bunch of no subject emails. When you try to delete them in RC you can’t.
seems to be this issue
Compress mail manually (dovecot_compress.sh)
Sorry, you're right :) Double-checked the code and found the bug. Please check if the following 0.0.4 version does the trick (it should): wget -O /usr/local/directadmin/scripts/dovecot_compress.sh https://custombuild.eu/dovecot_compress.sh We could include it into the next release of DA then...forum.directadmin.com
cat /usr/local/directadmin/scripts/dovecot_compress.shIs that the latest version of the script/DA?
I did run it once before zstd supportI've seen some clients who had older version and got zstd emails gzippped
doveadm(tech@my domain.com): Error: Mailbox Sent: UID=2: read(zlib(/home/admin/imap/my domain.com/tech/Maildir/.Sent/cur/1603476378.M66804P736843.myserver.my domain.com,S=578,W=594:2,S)) failed: Cached message size larger than expected (578 > 378, box=Sent, UID=2) (read reason=mail stream)
doveadm(tech@my domain.com): Error: Mailbox Sent: Cache /home/admin/imap/my domain.com/tech/Maildir/.Sent/dovecot.index.cache: Deleting corrupted cache record uid=2: UID 2: Broken physical size in mailbox Sent: read(zlib(/home/admin/imap/my domain.com/tech/Maildir/.Sent/cur/1603476378.M66804P736843.myserver.my domain.com,S=578,W=594:2,S)) failed: Cached message size larger than expected (578 > 378, box=Sent, UID=2)
doveadm(tech@my domain.com): Error: Mailbox Sent: UID=2: read(zlib(/home/admin/imap/my domain.com/tech/Maildir/.Sent/cur/1603476378.M66804P736843.myserver.my domain.com,S=578,W=594:2,S)) failed: Cached message size larger than expected (578 > 378, box=Sent, UID=2) (read reason=)
2/2
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457445><SF3x1G2y0oVf2MRm>: Error: Mailbox Trash: Saving mail: save: read(zlib(/home/admin/imap/mydomain.com/tech/Maildir/cur/1603288859.M824688P3389109.myserver.mydomain.com,S=13637,W=13845:2,S)) failed: Cached message size larger than expected (13637 > 2864, box=INBOX, UID=16337)
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457445><SF3x1G2y0oVf2MRm>: Error: Mailbox Trash: copy: i_stream_read(zlib(/home/admin/imap/mydomain.com/tech/Maildir/cur/1603288859.M824688P3389109.myserver.mydomain.com,S=13637,W=13845:2,S)) failed: Cached message size larger than expected (13637 > 2864, box=INBOX, UID=16337)
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457445><SF3x1G2y0oVf2MRm>: Logged out in=164 out=1200 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct 24 12:14:37 myserver dovecot[457240]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=my ip, lip=my ip, mpid=457447, TLS, session=<ocr01G2y1oVf2MRm>
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457447><ocr01G2y1oVf2MRm>: Error: Mailbox INBOX: UID=16337: read(zlib(/home/admin/imap/mydomain.com/tech/Maildir/cur/1603288859.M824688P3389109.myserver.mydomain.com,S=13637,W=13845:2,S)) failed: Cached message size larger than expected (13637 > 2864, box=INBOX, UID=16337) (read reason=mail stream)
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457447><ocr01G2y1oVf2MRm>: Error: Mailbox INBOX: Cache /home/admin/imap/mydomain.com/tech/Maildir/dovecot.index.cache: Deleting corrupted cache record uid=16337: UID 16337: Broken physical size in mailbox INBOX: read(zlib(/home/admin/imap/mydomain.com/tech/Maildir/cur/1603288859.M824688P3389109.myserver.mydomain.com,S=13637,W=13845:2,S)) failed: Cached message size larger than expected (13637 > 2864, box=INBOX, UID=16337)
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457447><ocr01G2y1oVf2MRm>: Error: Mailbox INBOX: UID=16337: read(zlib(/home/admin/imap/mydomain.com/tech/Maildir/cur/1603288859.M824688P3389109.myserver.mydomain.com,S=13637,W=13845:2,S)) failed: Cached message size larger than expected (13637 > 2864, box=INBOX, UID=16337)
Oct 24 12:14:37 myserver dovecot[457240]: imap([email protected])<457447><ocr01G2y1oVf2MRm>: FETCH failed: Internal error occurred. Refer to server log for more information. [2020-10-24 12:14:37] in=287 out=1588 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Don't have to wait for DA update , just do this :He will be adding the updated 0.0.6. in the next release of DA
wget -O /usr/local/directadmin/scripts/dovecot_compress.sh https://custombuild.eu/dovecot_compress.sh
This is true as well for now. It's not always updated with the latest version.. Which is how I got in the mess I was in.Don't have to wait for DA update , just do this :
Code:wget -O /usr/local/directadmin/scripts/dovecot_compress.sh https://custombuild.eu/dovecot_compress.sh