General discussion on installation and configuration of SOGo

Text archives Help

[SOGo] email are deleted from trash after ~7days

Chronological Thread 
  • From: "Peter Schiffer" ( ) < >
  • To:
  • Subject: [SOGo] email are deleted from trash after ~7days
  • Date: Thu, 31 May 2018 15:41:09 +0200
  • Arc-authentication-results: i=1;; auth=pass smtp.auth= smtp.mailfrom=
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=dkim; t=1527774070; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=qVVdjfN7aTA+FYZCWGmmuE9OM6gtRV6x7i3cZgKqDqU=; b=kDpwRbsUhgDAq4R4261kklPjVSW5hpPuP6HX3eJOzXB0psQqkSr/8SN2hclQJwL45sJG2Q WimNIHpwZF6jgj0nG9o/uNJGd5k4Mc9g3kboxFyAegN8EQWD0qesQvMgVKVglULkFbxLk7 Q6v18XWBS+jxeBJy8sXZ3iov93NWeQYb+Rc8HKye06SNrwGMPHBwlH+b2B0IyoM3Tve2kf sUJxEwxuyg7xbGU/RInwnqGiGOKAnZo3CczwbozZNistfPux3GL6UTxlKSKy3X2wJ0h/Ag 7KVA02URbgnVFhgpASqZJhlQs9MTOAFU9gkK4a2MG401+GnGEwu8BrUw0E6rhA==
  • Arc-seal: i=1; s=dkim;; t=1527774070; a=rsa-sha256; cv=none; b=2ccejBqOTZuiQRbD4NmVNlNkOPSugg96N6A70GDHPYG9c9kqddFJVblBWipVLR12nPiysK6n4SY9GmSftMLC0eILf7nxRIDuqF+4n4wVTjt2SqCkACKymJav+87MLC5b+nwvkxex5aQ0DnNlP+JXWDCY3RTIJQ/gd5Phsg20CiX80UBlQLmlApPl5SRovLdxmI/4J6e+H6CVfAVZ7/64XLrxegzr4IcipQHtm5OMmopb4r/E9zyyWLqQphmo/HM46cm3jO4pwEgjZUQdSVu53lRYSEhaOZ7CXNFXc1PMIigPCIb/inIDx6heVcHvi2BL7o6wNCDk24oMbD1Ht3BOnQ==
  • Dmarc-filter: OpenDMARC Filter v1.2.0 185CE10C57D2

Hi all,

I've noticed recently, that when using sogo web ui, emails from trash
folder are automatically deleted after ~7 days. This wasn't happening
before. I'm running sogo- from SOGo/nightly/4/debian
repo. Version from before was 2 - 3 months older 4.0

In the nginx and sogo logs I see:

nginx-mailcow_1 | someip - - [23/May/2018:12:46:11 +0200] "POST
/SOGo/so/some@mailbox/Mail/0/folderINBOX/expunge HTTP/2.0" 200 58 "http
s://hostname/SOGo/so/some@mailbox/Mail/view" "Mozilla/5.0 (X11; Fedora;
Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
sogo-mailcow_1 | May 23 12:46:11 ccec35332334 sogod [43]: someip
"POST /SOGo/so/some@mailbox/Mail/0/folderINBOX/expunge HTTP/1.0" 200
58/0 0.291 - - 0

And then in the dovecot logs:

May 29 08:02:17 hostname dovecot: imap(some@mail)<7725><xxb6+VFtL+JT0CE
8>: Debug: imapsieve: mailbox Trash: FLAG event (changed flags:
dovecot-mailcow_1 | May 23 12:46:39 hostname dovecot: imap(some@mail
box)<11088><AyDpP91sbKGsFgH4>: Logged out in=221 out=30927 deleted=473
expunged=473 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0

I need to turn this off :-) I don't want to delete anything
automatically, but I wasn't able to find anything related in

Also I suspect, that clients connected via active-sync are also doing
this, without specific email client configured to do so. I've verified
that the final email clients (Thunderbird, Evolution, Email on Android)
don't have such options enabled (auto empty trash, expunge on logout,

Sogo configuration can be found here:

Thanks in advance,


Archive powered by MHonArc 2.6.18.

Top of page