<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div>
   You need to load it either globally or for doveadm protocol as well.
  </div>
  <div>
   <br>
  </div>
  <div>
   Loading it globally should be safe.
  </div>
  <div>
   <br>
  </div>
  <div>
   Aki
  </div>
  <blockquote type="cite">
   <div>
    On 14 April 2019 23:36 TG Servers via dovecot <dovecot@dovecot.org> wrote:
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <br>
   <div class="moz-forward-container">
    <span style="font-family: Lato;">I have this in my dovecot.conf already, yes :<br><br>protocol imap {<br>    mail_plugins = $mail_plugins quota imap_quota imap_sieve fts fts_solr<br>    mail_max_userip_connections = 20<br>    imap_idle_notify_interval = 24 mins<br>}<br><br>protocol lmtp {<br>    postmaster_address = <a href="mailto:postmaster@xxx.com" class="moz-txt-link-abbreviated">postmaster@xxx.com</a><br>    mail_plugins = $mail_plugins sieve fts fts_solr<br>}<br>-------------------------------------------------------------------------------------------------------------------<br><br><br></span>
    <br>
    <div class="moz-cite-prefix">
     On 14/04/2019 22:30, Aki Tuomi via dovecot wrote:
     <br>
    </div>
    <blockquote type="cite">
     <div>
      <br>
     </div>
     <blockquote type="cite">
      <div>
       On 14 April 2019 23:22 TG Servers via dovecot 
       <a href="mailto:dovecot@dovecot.org" class="moz-txt-link-rfc2396E"><dovecot@dovecot.org></a> wrote:
      </div>
      <div>
       <br>
      </div>
      <div>
       <br>
      </div>
      <span style="font-family: Lato;">Hi,<br><br>I have setup dovecot 2.3.5.1 with solr 7.7.1<br>Everything seems to be working so far except that solr doesn't index a single message.<br>Solr is running, the web api can be accessed, I see the dovecot core there, but with zero docs.<br><br>If I trigger a "body" search from Thunderbird solr is responding and searching, but hitting 0 of course. <br><br>Looks like that : 2019-04-14 19:57:42.789 INFO  (qtp898557489-40) [   x:dovecot] o.a.s.c.S.Request [dovecot]  webapp=/solr path=/select params={q={!lucene+q.op%3DAND}body:foobar&fl=uid,<a class="moz-txt-link-abbreviated" href="mailto:score&sort=uid+asc&fq=%2Bbox:925efe067ac8a35ce1430000828c97da+%2Buser:xxx@xxx.net&rows=2&wt=xml">score&sort=uid+asc&fq=%2Bbox:925efe067ac8a35ce1430000828c97da+%2Buser:xxx@xxx.net&rows=2&wt=xml</a>} hits=0 status=0 QTime=2<br><br>Everytime a new message comes in indexer-worker is working but indexing 0.<br><br>Looks like that : 2019-04-14T19:39:36.887817+02:00 riot dovecot: indexer-worker(<a class="moz-txt-link-abbreviated" href="mailto:xxx@xxx.net">xxx@xxx.net</a>)<31697><3pDsLlhws1zMewAAgoyX2g:vb2mNFhws1zRewAAgoyX2g>: Indexed 0 messages in INBOX<br><br>A "doveadm fts rescan" just brings up this message : "Fatal: Unknown command 'fts', but plugin fts exists. Try to set mail_plugins=fts"<br></span>
     </blockquote>
     <div>
      <br>
     </div>
     <div>
      Have you tried to add
     </div>
     <div>
      <br>
     </div>
     <div>
      mail_plugins = $mail_plugins fts fts_solr to config
     </div>
     <blockquote type="cite">
      <span style="font-family: Lato;">My dovecot settings are :<br>plugin {<br>    sieve_plugins = sieve_imapsieve sieve_extprograms<br>    sieve_before = /var/vmail/sieve/global/spam-global.sieve<br>    sieve = <a class="moz-txt-link-freetext">file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve</a><br><br>    ###<br>    ### Spam learning<br>    ...<br>    <br>    sieve_pipe_bin_dir = /usr/bin<br>    sieve_global_extensions = +vnd.dovecot.pipe<br><br>    fts = solr<br>    fts_autoindex = yes<br>    fts_solr = url=<a class="moz-txt-link-freetext" href="http://localhost:8988/solr/dovecot/">http://localhost:8988/solr/dovecot/</a> debug<br><br>    ...<br>}<br><br>I don't know what to do or what I am doing wrong because solr is responding as said. Also the data directory of the core is empty.<br>If I should provide more information please tell me which, it's my own server so I have access to everything<br><br>Can anyone please help with that??<br><br>Thanks.<br><br><br><br></span>
     </blockquote>
     <div>
      If the suggested change does not help, send doveconf -n
     </div>
     <div class="io-ox-signature">
      <pre>---
Aki Tuomi</pre>
     </div>
    </blockquote>
    <br>
   </div>
  </blockquote>
  <div>
   <br>
  </div>
  <div class="io-ox-signature">
   <pre>---
Aki Tuomi</pre>
  </div> 
 </body>
</html>