Re: Only INBOX is searched when using gmail with dovecot FTS and solr

2021-04-16 Thread Sami Ketola
Hi,


IMAP SEARCH is only applied to SELECTed folder. If you want to do searches 
across all folders you need to implement Virtual/All folder like in this 
example for App Suite:

https://documentation.open-xchange.com/7.10.5/ui/features/all-messages-folder.html
 


Sami


> On 12. Apr 2021, at 23.01, Marcel  wrote:
> 
> Any ideas on this? I am sure that I can't be the only one having issues with 
> the search function while using Gmail.
> 
>> Hi,
>> 
>> I am using https://github.com/docker-mailserver/docker-mailserver to setup 
>> my mailserver and added solr for full-text search. Nearly everything is 
>> working as expected. But I have a problem with the full-text search, as I 
>> have a lot of folders in my mailbox and I just can't find any mail in any of 
>> these folders except INBOX when I search with the Gmail android app.
>> 
>> After analyzing the logs, I assume, that the bug is in the Gmail app, as it 
>> is only searching in the INBOX folder. I searched a bit and found some 
>> reports of other users confirming that. As this "design decision" (or bug) 
>> is quite old, I assume that Google won't fix it. But as many people are 
>> using Gmail, I assume that there must be a way to search all folders with 
>> Gmail. Sadly, I haven't found any possibility yet.
>> 
>> As a workaround one may put a proxy in between and simply remove the 
>> "+box:123" filter from the path (e.g. with a small regex). With that, solr 
>> will return all found mails from that user, regardless of the folder. This 
>> may be a quite simple, but very dirty hack.
>> 
>> Hence, I hope that you guys know a better way, a good way to overcome this 
>> issue and enable all Gmail users to search for email in all folders.
>> 
>> Best regards,
>> 
>> Marcel
>> 



RE: mail_max_userip_connections per remote IP not working

2021-04-16 Thread Koga Hayashi
Alessio,

> remote 1.2.3.4 {
> }

This isn't supported.
You can only set the same max connection for all userips.

protocol imap {
  mail_max_userip_connections = 100
}

The conf above will act :
 - 1.2.3.4's max connections will be set to 100 when using imap connection.
 - 1.2.3.5's max connections will be set to 100 when using imap connection.
 - and so on. Every connection to imap will have max connection limit, 100.

If you want to limit max connections only for a specific ip, you might want to 
do that on your firewall.


-Original Message-
From: dovecot  On Behalf Of Alessio Cecchi
Sent: Wednesday, April 14, 2021 5:39 AM
To: Dovecot Mailing List 
Subject: mail_max_userip_connections per remote IP not working

Hi,

I'm tryng to set a specific mail_max_userip_connections for a remote IP 
(webmail IMAP software), but it seems not working:

remote 1.2.3.4 {
   protocol imap {
     mail_max_userip_connections = 100
   }
}

and also this isn't working

remote 1.2.3.4 {
     mail_max_userip_connections = 100
}

I insert it at the end of 20-imap.conf file.

Is something wrong or is not supported?

I'm running dovecot 2.3.14.

Thanks

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