Logging to remote server
My Google searches must be off, I couldn’t see how to do this. Is there a way to log to a local file, but also send to a remote server? Eg: Log_path = /var/log/dovecot.log, @mylogserver.example.com:514 Thanks, James
Re: [OT] Re: What kind of search response time are you setting with solr full text search?
> On 25/08/2021 23:05 Steve Dondley wrote: > > > > The search time was no better with it on than off. > > > > So I'm thinking I got something misconfigured somewhere. It seems IMAP > > may not be using solr to fetch results. But this would be odd since I > > definitely do see a big improvements in times with fts plugins turned > > on when using roundcube. > > OK, I'm finally getting somewhere. Found this lead here: > https://dovecot.org/pipermail/dovecot/2012-February/081514.html > > "doveadm fts optimize" throws an error: > > doveadm(root): Error: Couldn't drop privileges: User is missing UID (see > mail_uid setting) > > > Checking /var/log/mail.err, I see a ton of these entries: > > 83353 Aug 25 14:53:22 email dovecot: imap(s)<26536>: > Error: fts_solr: received invalid uid ' > 83354 Aug 25 14:53:22 email dovecot: imap: Error: ' > 83355 Aug 25 14:58:05 email dovecot: imap(s)<26637>: > Error: fts_solr: received invalid uid ' > 83356 Aug 25 14:58:05 email dovecot: imap: Error: ' > 83357 Aug 25 15:26:58 email dovecot: imap(s)<27217>: > Error: fts_solr: received invalid uid ' > 83358 Aug 25 15:26:58 email dovecot: imap: Error: ' > 83359 Aug 25 15:27:11 email dovecot: imap(s)<27217>: > Error: fts_solr: received invalid uid ' > 83360 Aug 25 15:27:11 email dovecot: imap: Error: ' > 83361 Aug 25 15:27:36 email dovecot: imap(s)<27217>: > Error: fts_solr: received invalid uid ' > 83362 Aug 25 15:27:36 email dovecot: imap: Error: ' > > I think this will be nailed once I figure out this issue. doveadm fts optimize -u TARGETUSER Otherwise, as any other doveadm mail command, it assumes -u $USER Aki
Re: Logging to remote server
On 26.08.21 09:58, James Brown wrote: My Google searches must be off, I couldn’t see how to do this. Is there a way to log to a local file, but also send to a remote server? Eg: Log_path = /var/log/dovecot.log, @mylogserver.example.com:514 You need to configure your local syslog server to send the logs to the remote server. Dovecot itself has no facility to do this on its own. Grüße, Sven.
Re: Logging to remote server
On 8/26/21 10:58 AM, James Brown wrote: My Google searches must be off, I couldn’t see how to do this. Is there a way to log to a local file, but also send to a remote server? Eg: Log_path = /var/log/dovecot.log, @mylogserver.example.com:514 Thanks, James This is not a dovecot feature but a syslog one. The answer is yes but see rsyslog ( or whatever you have) manual
Re: What kind of search response time are you setting with solr full text search?
Citát Steve Dondley : On 2021-08-24 08:53 PM, Steve Dondley wrote: MY SETUP: I have apache solr full text search enabled with dovecot. I have an inbox with about 40 subfolders. I'm using the roundcube web-based mail client. The find command is showing 15823 email files and apache solr reports the same number. I'm running a dedicated mail server with a 1 GB of ram. The solr machine is running on a separate machine with 4 GB ram. THE PROBLEM: When I do a full text search through all my inbox and all subfolders on a single word, search results are returned in about 10 to 15 seconds. This is better than the 40 seconds or so I'm getting when I turn off the fts and fts_solr plugins but still a little disappointing. WHAT I'D LIKE: Now, I don't expect instant search results like gmail, but getting the search results to display in less than 5 seconds would be a lot less painful that 10 to 15 seconds. WHAT I'VE TRIED: I have reindexed the emails on solr to try to speed things upit up. ANY ADVICE? Curious to know what response times others are seeing and if there is anything else I might try to speed things up. Maybe the number of subfolders is slowing things down? OK, I figured it out. It was a bug in Debian's version of dovecot: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970692 Upgrading to "Bulleyse" fixed things up nicely and I now have super fast search. Now I have to go tackle the plugin errors that are crashing the roundcube install. :) Look also here: https://repo.dovecot.org/