Hi,

we have some trouble with Solr ad FTS engine. Solr have some spike of load and responding slow when an user expunge or append a message. fts_autoindex is set to "yes".

So I add to 90-plugin.conf these options:

fts_autoindex_exclude = Drafts
fts_autoindex_exclude2 = Spam
fts_autoindex_exclude3 = Trash
fts_autoindex_exclude4 = Sent

or

fts_autoindex_exclude = \Drafts
fts_autoindex_exclude2 = \Junk
fts_autoindex_exclude3 = \Trash
fts_autoindex_exclude4 = \Sent

But the problem is still present.

Here some example of logs when users have timeout in their email client, specially when saving in Drafts automatically:

Mar  7 12:21:37 pop01 dovecot: imap(user1@company1.com) session=<flNVCZ/ZcO5dPnGT>: Warning: Maildir /home/vmail/domains/company1.com/user1/Maildir/.Drafts: Synchronization took 119 seconds (0 new msgs, 0 flag change attempts, 1 expunge attempts)
Mar  7 12:21:37 pop01 dovecot: imap(user1@company1.com) session=<flNVCZ/ZcO5dPnGT>: Disconnected: Connection closed (UID EXPUNGE finished 118.715 secs ago) in=77617 out=679511 deleted=1 expunged=1 autoexpunged=0 trashed=0 appended=2 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

Mar  7 12:21:52 pop02 dovecot: imap(user2@company2.net) session=<B9NNCZ/Z+uC5Ydlv>: Warning: Maildir /home/vmail/domains/company2.net/user2/Maildir/.Trash: Synchronization took 149 seconds (0 new msgs, 0 flag change attempts, 1 expunge attempts)
Mar  7 12:21:52 pop02 dovecot: imap(user2@company2.net) session=<B9NNCZ/Z+uC5Ydlv>: Disconnected: Logged out in=2407 out=7025 deleted=0 expunged=0 autoexpunged=1 trashed=0 appended=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

Is my fts_autoindex_exclude wrong or there are some limits with this option?

Here the relevant part of 15-mailboxes.conf

namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  mailbox virtual/All {
    comment = All my messages
    special_use = \All
  }
  prefix =
  separator = /
}

Thanks

-- 
Alessio Cecchi
Postmaster @ http://www.qboxmail.it
https://www.linkedin.com/in/alessice