Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Is there a way to force-index Solr for mailboxes?

Is there a way to force-index Solr for mailboxes?

Scheduled Pinned Locked Moved Support
mailsolr
4 Posts 2 Posters 1.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by girish
    #1

    I am testing out Solr now that I have a more powerful server memory-wise as I have a few clients who are frequently needing to search mailboxes that are several GB in size, so wanting to see how much of a different this feature makes for them.

    I see in the Cloudron documentation for Full Text Search that it states:

    "If you enable indexing on an server with existing mails, the first search triggers indexing of that mailbox. If that mailbox has a lot of mail, then the first search can take a long time[...]"

    I'm hoping to avoid that by running the index overnight for them. Is this possible to do? I'd rather them not be stuck unable to search quickly when they need it on their first search on a business day. Any ideas how I could avoid that situation and have all mailboxes indexed by Solr before users use it?

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      A bit of a hack but the best approach is to login as the user and perform a search in the night. See https://docs.cloudron.io/user-management/#impersonate-user on how to login as another user.

      I think the upstream approach is to use "doveadm index", however doveadm does not work on Cloudron because of some issue in the LDAP configuration.

      d19dotcaD 1 Reply Last reply
      1
      • girishG girish

        A bit of a hack but the best approach is to login as the user and perform a search in the night. See https://docs.cloudron.io/user-management/#impersonate-user on how to login as another user.

        I think the upstream approach is to use "doveadm index", however doveadm does not work on Cloudron because of some issue in the LDAP configuration.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #3

        @girish Thank you for that idea, didn't think of that before. I guess I can do that, though it'll still be a fair bit of work (more than I was hoping for haha) given the number of users and mailboxes on my server. Better than nothing though, I appreciate the outside-the-box thinking there. I'll maybe reconsider my use of that feature then for the time being as it's not a pressing issue. Hopefully in the future we'll get a way to automatically trigger that workflow of indexing all of the mailboxes.

        --
        Dustin Dauncey
        www.d19.ca

        girishG 1 Reply Last reply
        0
        • d19dotcaD d19dotca

          @girish Thank you for that idea, didn't think of that before. I guess I can do that, though it'll still be a fair bit of work (more than I was hoping for haha) given the number of users and mailboxes on my server. Better than nothing though, I appreciate the outside-the-box thinking there. I'll maybe reconsider my use of that feature then for the time being as it's not a pressing issue. Hopefully in the future we'll get a way to automatically trigger that workflow of indexing all of the mailboxes.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          If you go down this route, be sure to search via roundcube or SOGo and not rainloop because the latter does not support recursive search.

          A while ago @samir shared a recipe with me to make doveadm work, let me see if that still works when I find the time.

          1 Reply Last reply
          2
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search