Dovecot process died with assertion failed

2020-02-11 Thread TACHIBANA Masashi
Hi,

I'm testing Dovecot v2.3.9.2.
So, I found a problem that a Dovecot process termed with Panic, like below:

Feb 10 08:50:09 imap(us...@example.com)<38440>: Panic: file 
message-snippet.c: line 71 (snippet_add_content): assertion failed: (*count_r 
<= size)
Feb 10 08:50:09 imap(us...@example.com)<38440>: Error: Raw 
backtrace: 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(backtrace_append+0x3b) 
[0x7fee4c46331b] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(backtrace_get+0x1e) 
[0x7fee4c46346e] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(+0xfc90b) 
[0x7fee4c46f90b] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(+0xfc9c1) 
[0x7fee4c46f9c1] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(i_fatal+0) 
[0x7fee4c3b470a] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(+0xdea53) 
[0x7fee4c451a53] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(+0xdcd98) 
[0x7fee4c80bd98] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(+0xdd1a5) 
[0x7fee4c80c1a5] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(index_mail_get_special+0x2c1)
 [0x7fee4c80c591] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(dbox_mail_get_special+0x48)
 [0x7fee4c7adeb8] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(+0x78f2b) 
[0x7fee4c7a7f2b] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot-storage.so.0(mail_get_special+0x10)
 [0x7fee4c76f3e0] -> dovecot-backend-server/imap [us...@example.com 10.16.2.10 
UID FETCH](+0x2645b) [0x55ffc6c5845b] -> dovecot-backend-server/imap 
[us...@example.com 10.16.2.10 UID FETCH](+0x239df) [0x55ffc6c559df] -> 
dovecot-backend-server/imap [us...@example.com 10.16.2.10 UID 
FETCH](imap_fetch_more+0x35) [0x55ffc6c578b5] -> dovecot-backend-server/imap 
[us...@example.com 10.16.2.10 UID FETCH](cmd_fetch+0x35f) [0x55ffc6c44aaf] -> 
dovecot-backend-server/imap [us...@example.com 10.16.2.10 UID 
FETCH](command_exec+0xb9) [0x55ffc6c535b9] -> dovecot-backend-server/imap 
[us...@example.com 10.16.2.10 UID FETCH](+0x1eacf) [0x55ffc6c50acf] -> 
dovecot-backend-server/imap [us...@example.com 10.16.2.10 UID FETCH](+0x1eb87) 
[0x55ffc6c50b87] -> dovecot-backend-server/imap [us...@example.com 10.16.2.10 
UID FETCH](client_handle_input+0x215) [0x55ffc6c51885] -> 
dovecot-backend-server/imap [us...@example.com 10.16.2.10 UID 
FETCH](client_input+0x7e) [0x55ffc6c5206e] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x7b) 
[0x7fee4c48bcdb] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x105)
 [0x7fee4c48dd55] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x59)
 [0x7fee4c48bde9] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7fee4c48c098] -> 
/usr/local/dovecot-2.3.9.2/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7fee4c3e9623] -> dovecot-backend-server/imap [us...@example.com 10.16.2.10 
UID FETCH](main+0x367) [0x55ffc6c40d37] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fee4bfc7545] -> 
dovecot-backend-server/imap [us...@example.com 10.16.2.10 UID FETCH](+0xefb4) 
[0x55ffc6c40fb4]
Feb 10 08:50:09 imap(us...@example.com)<38440>: Fatal: 
master: service(imap): child 38440 killed with signal 6 (core dumps disabled - 
https://dovecot.org/bugreport.html#coredumps)

It was occurred this by a mail had ISO-2022-JP content (Single part mail).
I saw that the mail was not strange.
When I appended the mail with IMAP APPEND command, that no problem happened.
I think the problem comes by LMTP only.

Any idea?

Regards,

--
Tachibana, Masashi  QUALITIA CO., LTD.
mailto:tachib...@qualitia.co.jp
https://www.qualitia.co.jp/


Very slow mail download/notification with dovecot 2.2.33 and Thunderbird

2020-02-11 Thread ml_dovecot
Hi!

I know that there are many results if I search for "dovecot thunderbird
very slow" on Google but none of them helped me with my problem. :(

I am running Ubuntu 18.04 (4GB RAM, 40GB HDD with EXT4) with the
following software:

- Dovecot 2.2.33
 All accounts are using Maildir
 Sieve filters

- Postfix 3.3.0
 with opendkim, spamassassin, razor, pyzor, 

And as IMAP client I am using Thunderbird 68.4 on Windows10.
Sieve is used to sort incoming mails into my 224 folders (56 INBOX.
folders and its subfolders (output of "find .INBOX.* -maxdepth 4 -type d
-print |wc -l")).

My problem is that it takes very very long to synchonize the INBOX and
its subfolders. Even if there are only a few new messages to be downloaded.
Sometimes Thunderbird outputs something like "downloading message 1 of
19" and it takes at least 60 seconds to download all of them. None of
these 19 mails is larger than 5kB. And sometimes it seems that the
transfer is suspended for a long time and it takes >5 Minutes to
synchronize only a few mails. :(

Every helpful advice is welcome.
I just don't know where to look for the cause right now, but I can
provide configurations (like output of |doveadm config) |and some logfiles.

Thank you very much!

Thorsten



Re: Folders disappears and all mail lost

2020-02-11 Thread Aki Tuomi


 
 
  
   
  
  
   
On 11/02/2020 18:10 Gabriele Fain <
gaf...@fineware.it> wrote:
   
   

   
   

   
   
Hello,
   
   

   
   
I have a Dovecot 2.2.22 configured with mdbox storage.
   
   

   
   
THe server have about 50 mailboxes configured.
   
   

   
   
Only in one mailbox I have a strange problem, sometime (in the last 2
   
   
month happens 3 times).
   
   

   
   
All the mail (Except INBOX) and all folders disappear.
   
   

   
   
THe space on disk remain allocated.
   
   

   
   
To this mailbox are connected 3 computers (2 PC Windows 10, and 1 Mac OS).
   
   

   
   
I cannot determine who and why this happens to this mailbox.
   
   

   
   
Can someone tellme how I can find the PC that delete all mail.
   
  
  
   
  
  
   mail_log plugin is your friend. See https://doc.dovecot.org/plugin-settings/maillog/
  
  
   ---
Aki Tuomi
   
 



Folders disappears and all mail lost

2020-02-11 Thread Gabriele Fain

Hello,

I have a Dovecot 2.2.22 configured with mdbox storage.

THe server have about 50 mailboxes configured.

Only in one mailbox I have a strange problem, sometime (in the last 2 
month happens 3 times).


All the mail (Except INBOX) and all folders disappear.

THe space on disk remain allocated.

To this mailbox are connected 3 computers (2 PC Windows 10, and 1 Mac OS).

I cannot determine who and why this happens to this mailbox.

Can someone tellme how I can find the PC that delete all mail.





Re: [v 2.3.4.1][quota] recalculation

2020-02-11 Thread Thomas Criscione
Yes you are right !

Thanks

On 11/02/2020 11:34, Plutocrat wrote:
> On 11/02/2020 17.23, Sami Ketola wrote:
>> Does thunderbird even delete the mail from storage if you delete it from UI?
> 
> You have to right click on Trash and select Empty Trash to force it. 
> 
> In the Trash Folder Properties, you can also select a Retention Policy (eg 30 
> days, 2000 messages). 
> 
> P.
> 

-- 
Thomas Criscione
https://thomascriscione.fr
GPG: E521 FFF0 13C4 52FB 55EB  8C49 EBDD 0DC6 1ED9 2A4F


Re: [v 2.3.4.1][quota] recalculation

2020-02-11 Thread Plutocrat
On 11/02/2020 17.23, Sami Ketola wrote:
> Does thunderbird even delete the mail from storage if you delete it from UI?

You have to right click on Trash and select Empty Trash to force it. 

In the Trash Folder Properties, you can also select a Retention Policy (eg 30 
days, 2000 messages). 

P.


Re: [v 2.3.4.1][quota] recalculation

2020-02-11 Thread Thomas Criscione
Hi Sami,

You are right ! Event if emails are deleted from trash (and so: they do
not appears in thunderbird anywere), they are not expunged !

Right clic on trash > empty trash will send expunge signal to server !

Thanks a lot !

Thomas

On 11/02/2020 10:23, Sami Ketola wrote:
> Hi,
> 
> Does thunderbird even delete the mail from storage if you delete it from UI?
> 
> Most imap clients with default configuration just flag the mail \Deleted but 
> do not actually expunge if from server.
> In Apple Mail.App that I use there is "Erase Deleted Items" to actually 
> expunge mails previously flagged \Deleted.
> 
> Sami
> 
> 
>> On 11 Feb 2020, at 11.18, Thomas Criscione  wrote:
>>
>> Hello,
>>
>> I can't find the information on the wiki :(
>>
>> When is the quota recalculated after a mail deletion ?
>>
>> For instance, I am running low of storage and I use Thunderbird to
>> delete large mail. I only notice a recalculation when I quit
>> Thunderbirdb and I relaunch it.
>>
>> Even, with doveadm CLI, as long as Thunderbird is not disconnected on
>> the client side, the server didn't recalculate the storage available.
>>
>> Thanks for the help !
>>
>> Thomas
>>
>> -- 
>> Thomas Criscione
>> https://thomascriscione.fr
>> GPG: E521 FFF0 13C4 52FB 55EB  8C49 EBDD 0DC6 1ED9 2A4F
> 

-- 
Thomas Criscione
https://thomascriscione.fr
GPG: E521 FFF0 13C4 52FB 55EB  8C49 EBDD 0DC6 1ED9 2A4F


Re: [v 2.3.4.1][quota] recalculation

2020-02-11 Thread Sami Ketola
Hi,

Does thunderbird even delete the mail from storage if you delete it from UI?

Most imap clients with default configuration just flag the mail \Deleted but do 
not actually expunge if from server.
In Apple Mail.App that I use there is "Erase Deleted Items" to actually expunge 
mails previously flagged \Deleted.

Sami


> On 11 Feb 2020, at 11.18, Thomas Criscione  wrote:
> 
> Hello,
> 
> I can't find the information on the wiki :(
> 
> When is the quota recalculated after a mail deletion ?
> 
> For instance, I am running low of storage and I use Thunderbird to
> delete large mail. I only notice a recalculation when I quit
> Thunderbirdb and I relaunch it.
> 
> Even, with doveadm CLI, as long as Thunderbird is not disconnected on
> the client side, the server didn't recalculate the storage available.
> 
> Thanks for the help !
> 
> Thomas
> 
> -- 
> Thomas Criscione
> https://thomascriscione.fr
> GPG: E521 FFF0 13C4 52FB 55EB  8C49 EBDD 0DC6 1ED9 2A4F



[v 2.3.4.1][quota] recalculation

2020-02-11 Thread Thomas Criscione
Hello,

I can't find the information on the wiki :(

When is the quota recalculated after a mail deletion ?

For instance, I am running low of storage and I use Thunderbird to
delete large mail. I only notice a recalculation when I quit
Thunderbirdb and I relaunch it.

Even, with doveadm CLI, as long as Thunderbird is not disconnected on
the client side, the server didn't recalculate the storage available.

Thanks for the help !

Thomas

-- 
Thomas Criscione
https://thomascriscione.fr
GPG: E521 FFF0 13C4 52FB 55EB  8C49 EBDD 0DC6 1ED9 2A4F