General discussion on installation and configuration of SOGo

Text archives Help


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


Chronological Thread 
  • From: "Peter Schiffer" ( ) < >
  • To: devteam < >
  • Subject: Re: [SOGo] email are deleted from trash after ~7days
  • Date: Thu, 31 May 2018 19:21:31 +0200
  • Arc-authentication-results: i=1; mail11.infra-brno.websignal.eu; auth=pass smtp.auth= smtp.mailfrom=
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pschiffer.eu; s=dkim; t=1527787293; 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: in-reply-to:in-reply-to:references:references; bh=DTrBLT2E5S7sxTxrlIXzOCm9WMoRMgz+mObqiRbSLCk=; b=QMpc8fDTZ5DG1PRKlDxl3xVYkqcRrIicWWBbUGskApq+kXYBO0e5mfwB/SAThbxlCw+T3d PoAx4wO7xVxnafDjrmIxcLQxjqcjMGNq2m2ws0SgsPu6+u61Y1fvA4KxmLeoqsCkuUIC6i i2jjPhdPpTxbv1Hf+u4WXnELgQbRsqNVs/JZjbBYQUq7DVc6n0DtElFYRFUDWbgvgKvjrH sPAmisjNxnkG2UVHpD1RwREX6e7dacjHu1q2lT9Q/aKO2xgFYTVkXnKqq2H3alXuvB+rR8 gyBEC3/+K6RiavsTER3jFzgY9SxMnmiXQb8/4sVZ9Kod3dpDVuXTCsSt0qerug==
  • Arc-seal: i=1; s=dkim; d=pschiffer.eu; t=1527787293; a=rsa-sha256; cv=none; b=oXMSMIwLcMienLlkTAV5xkX8e7CAAkPZLd8DCnw9o7nNhSqisZCxKx1vDNlE7LBo+dzaIzoq6MwgDSuoWmcEQejrNTeK7M1sOGAEh0U58KuXxBait30A7jV6D5Ito6kebICFNrg0giOhsHleM5lRHRY83AQmdLyJFgjBrgc9c8mN+ujZ81nasCKeefXf0NTEyaNM7pgQ3UBJdDt1xZgyWfpJx0ngBpTCk1sRaVmN+fjkmyAL/vEiWXHhC1AMm7Rzw6qARyVKa7xk/TMPhLx0EmgUgoemgtiJeIYA56D9cTXWTTeWBrbCTcbfULBtU5eQkbvxmF9ZWsQOrnR0yGtEmw==
  • Dmarc-filter: OpenDMARC Filter v1.2.0 mail.inverse.ca 7D0E610CBB1B

Hi,

thank you for your reply, but I don't have expire plugin enabled in
dovecot. See attachment for output of doveconf -n.

What else could be a reason here?

Thanks,

peter

On Thu, 2018-05-31 at 17:36 +0300, devteam wrote:
> Hi,
>
> /etc/dovecot/dovecot.conf
>
> plugin: expire
>
> expire = Trash 7 Trash/*7 Junk 30
>
>
>
> On 05/31/2018 04:41 PM, Peter Schiffer
> ( )
> wrote:
> > 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-4.0.0.20180528-1 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+J
> > T0CE
> > 8>: Debug: imapsieve: mailbox Trash: FLAG event (changed flags:
> > \Deleted)
> > ...
> > 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
> > body_bytes=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
> > documentation.
> >
> > 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,
> > etc).
> >
> > Sogo configuration can be found here:
> > https://github.com/pschiffe/mailcow-dockerized/tree/master/data/con
> > f/sogo
> >
> > Thanks in advance,
> >
> > peter
>
> # doveconf -n
# 2.3.1 (8e2f634): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.1 (d9bc6dfe)
doveconf: Warning: service auth { client_limit=1000 } is lower than required
under max. load (2000)
doveconf: Warning: service anvil { client_limit=1000 } is lower than required
under max. load (1603)
# OS: Linux 3.10.0-862.3.2.el7.x86_64 x86_64 Debian 9.4
auth_debug = yes
auth_master_user_separator = *
auth_mechanisms = plain login
default_process_limit = 400
dict {
sieve_after =
mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-sieve_after.conf
sieve_before =
mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-sieve_before.conf
sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf
}
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k
mail_attribute_dict = file:%h/dovecot-attributes
mail_debug = yes
mail_home = /var/vmail/%d/%n
mail_location = maildir:~/
mail_max_userip_connections = 500
mail_plugins = quota acl zlib listescape old_stats
mail_prefetch_count = 30
mail_shared_explicit_inbox = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date index ihave
duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve
namespace {
list = children
location = maildir:%%h/:INDEX=~/Shared/%%u:INDEXPVT=~/Shared/%%u
prefix = Shared/%%u/
separator = /
subscriptions = no
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Archief {
special_use = \Archive
}
mailbox Archiv {
special_use = \Archive
}
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Archives {
special_use = \Archive
}
mailbox Arquivo {
special_use = \Archive
}
mailbox Arquivos {
special_use = \Archive
}
mailbox Concepten {
special_use = \Drafts
}
mailbox "Deleted Items" {
special_use = \Trash
}
mailbox "Deleted Messages" {
special_use = \Trash
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Entwürfe {
special_use = \Drafts
}
mailbox Enviados {
special_use = \Sent
}
mailbox "Gelöschte Objekte" {
special_use = \Trash
}
mailbox Gesendet {
special_use = \Sent
}
mailbox "Gesendete Objekte" {
special_use = \Sent
}
mailbox "Itens Enviados" {
special_use = \Sent
}
mailbox "Itens Excluídos" {
special_use = \Trash
}
mailbox "Itens Excluidos" {
special_use = \Trash
}
mailbox Junk-E-Mail {
special_use = \Junk
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox "Junk E-Mail" {
special_use = \Junk
}
mailbox Lixeira {
special_use = \Trash
}
mailbox "Lixo Eletrônico" {
special_use = \Junk
}
mailbox "Ongewenste e-mail" {
special_use = \Junk
}
mailbox Papierkorb {
special_use = \Trash
}
mailbox Prullenbak {
special_use = \Trash
}
mailbox Rascunhos {
special_use = \Drafts
}
mailbox Rubbish {
special_use = \Trash
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Items" {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Spam {
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox "Verwijderde items" {
special_use = \Trash
}
mailbox Verzonden {
special_use = \Sent
}
mailbox "Verzonden items" {
special_use = \Sent
}
prefix =
separator = /
}
passdb {
args = /usr/local/etc/dovecot/dovecot-master.passwd
driver = passwd-file
master = yes
pass = yes
}
passdb {
args = /usr/local/etc/dovecot/sql/dovecot-dict-sql-passdb.conf
driver = sql
}
plugin {
acl = vfile
acl_anyone = allow
acl_shared_dict = file:/var/vmail/shared-mailboxes.db
imapsieve_mailbox1_before =
file:/usr/local/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before =
file:/usr/local/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *
listescape_char = \
old_stats_refresh = 30 secs
old_stats_track_cmds = yes
quota = dict:Userquota::proxy::sqlquota
quota_rule2 = Trash:storage=+100%%
sieve = /var/vmail/sieve/%u.sieve
sieve_after =
dict:proxy::sieve_after;name=active;bindir=/var/vmail/sieve_after_bindir
sieve_after2 = /var/vmail/sieve/global.sieve
sieve_before =
dict:proxy::sieve_before;name=active;bindir=/var/vmail/sieve_before_bindir
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.execute
sieve_max_redirects = 30
sieve_max_script_size = 1M
sieve_pipe_bin_dir = /usr/local/lib/dovecot/sieve
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_quota_max_scripts = 0
sieve_quota_max_storage = 0
zlib_save = lz4
}
protocols = imap sieve lmtp pop3
service auth {
inet_listener auth-inet {
port = 10001
}
unix_listener auth-master {
mode = 0600
user = vmail
}
unix_listener auth-userdb {
mode = 0600
user = vmail
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service doveadm {
inet_listener {
port = 12345
}
}
service imap-login {
service_count = 1
user = dovenull
vsz_limit = 256 M
}
service imap-postlogin {
executable = script-login /usr/local/bin/postlogin.sh
}
service imap {
executable = imap imap-postlogin
user = dovenull
vsz_limit = 256 M
}
service lmtp {
inet_listener lmtp-inet {
port = 24
}
user = vmail
}
service log {
user = dovenull
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 2
service_count = 1
vsz_limit = 256 M
}
service managesieve {
process_limit = 256
}
service old-stats {
fifo_listener old-stats-mail {
mode = 0600
user = vmail
}
inet_listener {
address = 0.0.0.0
port = 24242
}
}
service pop3-login {
service_count = 1
vsz_limit = 256 M
}
ssl_cert = </etc/ssl/mail/cert.pem
ssl_cipher_list =
EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_options = no_compression
ssl_prefer_server_ciphers = yes
submission_host = postfix:588
userdb {
args = /usr/local/etc/dovecot/sql/dovecot-dict-sql-passdb.conf
driver = sql
}
protocol imap {
imap_metadata = yes
mail_plugins = quota imap_quota imap_acl acl zlib imap_zlib imap_sieve
listescape old_stats imap_old_stats
}
protocol lmtp {
auth_socket_path = /usr/local/var/run/dovecot/auth-master
mail_plugins = quota sieve acl zlib listescape
}
protocol sieve {
managesieve_logout_format = bytes=%i/%o
}
remote 127.0.0.1 {
disable_plaintext_auth = no
}



Archive powered by MHonArc 2.6.18.

Top of page