<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Can you test if <a href="https://github.com/dovecot/core/commit/5068b11e594ad7cc1f7cedf2bd9280520e0e534d.patch" class="">https://github.com/dovecot/core/commit/5068b11e594ad7cc1f7cedf2bd9280520e0e534d.patch</a> fixes it for you?<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Oct 2019, at 11.34, MAREN ZUBIZARRETA via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Hello:<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  I have found the same problem reported above by Patrick Cernko affecting our system and corrupting our messages. Even worse, Outlook 2016 will no synchronize and the clients cannot see any message, even if there is only one corrupted mail per mailbox.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  I cannot figure out a feasible workaround for our system, and I can see that in new version 2.38 the bug is not fixed.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""> Will this issue be treated soon?<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""> Thanks a lot<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">     Maren Zubizarreta<o:p class=""></o:p></span></pre><h1 style="margin-right: 0cm; margin-left: 0cm; font-size: 24pt; font-family: "Times New Roman", serif;" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></h1><h1 style="margin-right: 0cm; margin-left: 0cm; font-size: 24pt; font-family: "Times New Roman", serif;" class=""><span lang="EN-US" style="" class="">WARNING: using attachment_dir with plugin zlib can corrupt mails<o:p class=""></o:p></span></h1><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 13.5pt;" class="">Patrick Cernko</span></b><span lang="EN-US" style="font-size: 13.5pt; background-color: white;" class=""> </span><a href="mailto:dovecot%40dovecot.org?Subject=Re:%20Re%3A%20WARNING%3A%20using%20attachment_dir%20with%20plugin%20zlib%20can%20corrupt%20mails&In-Reply-To=%3C1ab8edcc-bef4-3b41-d09a-c523674a5031%40mpi-klsb.mpg.de%3E" title="WARNING: using attachment_dir with plugin zlib can corrupt mails" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" style="font-size: 13.5pt;" class="">pcernko at mpi-klsb.mpg.de</span></a><span lang="EN-US" style="font-size: 13.5pt;" class=""><br class=""><i class="">Fri Jul 19 17:52:37 EEST 2019</i></span><span lang="EN-US" class=""><o:p class=""></o:p></span></div><ul type="disc" style="margin-bottom: 0cm;" class=""><li class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-size: 13.5pt;" class="">Previous message: </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/116617.html" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">index worker 2.3.7 undefined symbol errors</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""><o:p class=""></o:p></span></li><li class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-size: 13.5pt;" class="">Next message: </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/116571.html" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">Address family not supported by protocol</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""><o:p class=""></o:p></span></li><li class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b class=""><span lang="EN-US" style="font-size: 13.5pt;" class="">Messages sorted by:</span></b><span lang="EN-US" style="font-size: 13.5pt;" class=""> </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/date.html#116570" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">[ date ]</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""> </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/thread.html#116570" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">[ thread ]</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""> </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/subject.html#116570" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">[ subject ]</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""> </span><span style="font-size: 13.5pt;" class=""><a href="https://dovecot.org/list/dovecot/2019-July/author.html#116570" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">[ author ]</span></a></span><span lang="EN-US" style="font-size: 13.5pt;" class=""><o:p class=""></o:p></span></li></ul><div class="MsoNormal" align="center" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-align: center;"><hr size="2" width="100%" noshade="" align="center" style="" class=""></div><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New"; white-space: pre-wrap; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;" class=""><span lang="EN-US" style="" class="">Hello list, hello Dovecot developers,<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">this week, I discovered a serious bug in Dovecot, that lead to several <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">broken mails on our servers. The bug corrupts the first few characters <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">of the mail header during saving. On our setup, it was almost always <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">only the very first line of text, that was corrupted.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Depending on the IMAP client (they seem to request different header <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">fields, ... during mail access), the bug causes the imap process to hang <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">up the TCP connection and log errors like this:<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">><i class=""> imap(USERNAME)<4767><TeQP4ASOTK5/AAAB>: Error: Corrupted record in index cache file /IMAP/mail/mailboxes/USERNAME/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache: UID 489113: Broken fields in mailbox Trash: read(attachments-connector(zlib(/IMAP/mail/mailboxes/USERNAME/mdbox/storage/m.813))): FETCH BODY[HEADER.FIELDS (RETURN-PATH SUBJECT)] got too little data: 2 vs 122<o:p class=""></o:p></i></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">In our case that finally grabbed my attention, the client was the users <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">iphone that did not display any new messages but his Thunderbird did.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">The bug seems to be triggered by a bad "interaction" of attachment_dir <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">option and zlib plugin. If you use both, you most likely are affected, <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">too, except you only use zlib plugin for reading previously compressed <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">stored mails. That's also the workaround we use now: zlib plugin only <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">enabled in mail_plugins but no plugin/zlib_save set.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">The bug occurs on very specific mails. Due to privacy reasons I could <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">not provide sample mails here. Storing such mails seems to trigger the <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">bug reproducible.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">I attached a very minimal doveconf -n config, that can be used to <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">trigger the bug. If one of the developers is interested, I can try to <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">generate an "anonymized" version of such a specific mail that still <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">causes the issue. I discovered the bug on our productive systems, <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">running latest Dovecot 2.2 release, but the latest 2.3 I used during <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">debugging is affected, too.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">During debugging, I also found one hint, that might help find the bug: <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">If you store a problematic mail with zlib_save=gz (or zlib_save=bz2) and <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">then disable the zlib plugin in mail_plugins, you can call<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">doveadm fetch -u test hdr all | grep -v ^hdr: | gzip --decompress<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">on test's mailbox with only that one broken mail.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">This will display the beginning of the rfc822 mail text until gzip <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">terminates with "gzip: stdin: unexpected end of file", approximately <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">after twice the length of the mail HEADER. This might indicate, that <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">dovecot stores the uncompressed size of the header in it's data <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">structures although the mail is stored compressed.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">I also found a very efficient way to find all affected mails in our setup:<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">doveadm -f flow fetch -A 'user guid mailbox uid seq flags hdr' all | \<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">   grep -a "^[^ ]+ user=" | \<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">   grep -avF ' hdr=Return-path: ' | \<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">   grep -av '.* hdr=[[:print:][:space:]]*$'<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">(runtime for ~6M mails on our servers was 20-30min)<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">This can be even more optimized if you have a powerful storage system <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">with GNU parallel:<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">><i class=""> doveadm user '*' | parallel "doveadm -f flow fetch -u '{}' 'user guid mailbox uid seq flags hdr' all | grep -a '^user=' | grep -avF ' hdr=Return-path: ' | grep -av '.* hdr=[[:print:][:space:]]*$' || true"<o:p class=""></o:p></i></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">(runtime for ~6M mails on our servers was ~4min)<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">The command will give you a list of mails that possibly are affected, <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span style="" class="">check the full output of<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">doveadm fetch -u USERNAME hdr guid GUID | less<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">to verify that the header is really broken.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">On our systems I found 39 mails within ~12M mails.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">I was able to recover these mails "manually" by reconstructing the <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Return-Path header line, importing the fixed mails and expunging the <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">corrupt ones. Before importing, I had to disable zlib_save option obviously.<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""><o:p class=""> </o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Best regards,<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">-- <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Patrick Cernko <</span><span style="" class=""><a href="https://dovecot.org/mailman/listinfo/dovecot" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">pcernko at mpi-klsb.mpg.de</span></a></span><span lang="EN-US" style="" class="">> +49 681 9325 5815<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Joint Administration: Information Services and Technology<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Max-Planck-Institute fuer Informatik & Softwaresysteme<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">-------------- next part --------------<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""># 2.3.6.1 (d124cc84b): /etc/dovecot/dovecot.conf<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span style="" class=""># OS: Linux 4.14.127.1.amd64-smp x86_64 Debian 9.9 <o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class=""># Hostname: <a href="http://adove.mpi-klsb.mpg.de/" style="color: purple; text-decoration: underline;" class="">adove.mpi-klsb.mpg.de</a><o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">listen = *<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_attachment_dir = /var/vmail/attachments<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_attachment_fs = posix<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_gid = nogroup<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_home = /var/vmail/%u<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_location = mdbox:~/mdbox<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_plugins = " zlib"<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">mail_uid = nobody<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">passdb {<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  args = /etc/dovecot/userdb<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  driver = passwd-file<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">}<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">plugin {<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  zlib_save = gz<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">}<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">protocols = imap<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">userdb {<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  args = /etc/dovecot/userdb<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">  driver = passwd-file<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">}<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">-------------- next part --------------<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">A non-text attachment was scrubbed...<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Name: smime.p7s<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Type: application/pkcs7-signature<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Size: 5324 bytes<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">Desc: S/MIME Cryptographic Signature<o:p class=""></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New";" class=""><span lang="EN-US" style="" class="">URL: <</span><span style="" class=""><a href="https://dovecot.org/pipermail/dovecot/attachments/20190719/3da620ad/attachment-0001.p7s" style="color: purple; text-decoration: underline;" class=""><span lang="EN-US" class="">https://dovecot.org/pipermail/dovecot/attachments/20190719/3da620ad/attachment-0001.p7s</span></a></span><span lang="EN-US" style="" class="">></span></pre></div></div></blockquote></div><br class=""></body></html>