Re: Help with IMAP IDLE

2019-07-28 Thread Sami Ketola via dovecot



> On 27 Jul 2019, at 13.15, Jorge Bastos via dovecot  
> wrote:
> 
> Guys,
> 
> I just discovered the reason!
> 
> When i migrated the account from the old imap server to the new (dovecot), i
> didn't removed and created the account in msoutlook, as i didn't saw any
> reason to do it.
> Creating the account again, IDLE works ok!

May I ask you how did you do the migration in the first place? As if the 
account was correctly migrated then there was no reason for recreating the 
account.

Sami

Re: Help with IMAP IDLE

2019-07-27 Thread @lbutlr via dovecot
On 27 Jul 2019, at 04:15, Jorge Bastos  wrote:
> When i migrated the account from the old imap server to the new (dovecot), i
> didn't removed and created the account in msoutlook, as i didn't saw any
> reason to do it.
> Creating the account again, IDLE works ok!

Glad you got that figured out. Seems like a weird one.



-- 
CURSIVE WRITING DOES NOT MEAN WHAT I THINK IT DOES Bart chalkboard Ep.
2F11



RE: Help with IMAP IDLE

2019-07-27 Thread Jorge Bastos via dovecot
Guys,

I just discovered the reason!

When i migrated the account from the old imap server to the new (dovecot), i
didn't removed and created the account in msoutlook, as i didn't saw any
reason to do it.
Creating the account again, IDLE works ok!

Stupid outlook!
Sorry for the noise, and thank you for the help,

-Original Message-
From: dovecot  On Behalf Of Jorge Bastos via
dovecot
Sent: Tuesday, July 23, 2019 23:32
To: 'Dovecot Mailing List' 
Subject: RE: Help with IMAP IDLE

Well,

I've been doing some research, and it seems that msoutlook  2016 and 2019
doesn't quite have imap idle support.
The odd part, is that when i had DBMail, it was IDLE'ing (i swear), Would
dbmail send something different that make it work? It was an old version of
dbmail, 2.3.7 i believe, from about 2012 or so.

And no, it wasn't the outlook options "send/receive", i had and have that
disabled,

Don't have explanation, thunderbird IDLE's perfectly

-Original Message-
From: dovecot  On Behalf Of Jorge Bastos via
dovecot
Sent: Tuesday, July 23, 2019 22:47
To: 'Dovecot Mailing List' 
Subject: RE: Help with IMAP IDLE

Yes,

Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+
AUTH=PLAIN AUTH=LOGIN]

> Yes, it works with other IMAP servers, why should not work with dovecot?
> It was working with DBMail, and it's working with an account from my 
> Telco
that used cirus-imap.

Have you verified (with rawlogs or tcpdump) that outlook even attempts IDLE?
Is your dovecot advertising IDLE support in CAPABILITY? 

Sami





RE: Help with IMAP IDLE

2019-07-23 Thread Jorge Bastos via dovecot
Well,

I've been doing some research, and it seems that msoutlook  2016 and 2019
doesn't quite have imap idle support.
The odd part, is that when i had DBMail, it was IDLE'ing (i swear),
Would dbmail send something different that make it work? It was an old
version of dbmail, 2.3.7 i believe, from about 2012 or so.

And no, it wasn't the outlook options "send/receive", i had and have that
disabled,

Don't have explanation, thunderbird IDLE's perfectly

-Original Message-
From: dovecot  On Behalf Of Jorge Bastos via
dovecot
Sent: Tuesday, July 23, 2019 22:47
To: 'Dovecot Mailing List' 
Subject: RE: Help with IMAP IDLE

Yes,

Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+
AUTH=PLAIN AUTH=LOGIN]

> Yes, it works with other IMAP servers, why should not work with dovecot?
> It was working with DBMail, and it's working with an account from my Telco
that used cirus-imap.

Have you verified (with rawlogs or tcpdump) that outlook even attempts IDLE?
Is your dovecot advertising IDLE support in CAPABILITY? 

Sami




RE: Help with IMAP IDLE

2019-07-23 Thread Jorge Bastos via dovecot
Yes,

Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ 
AUTH=PLAIN AUTH=LOGIN]

> Yes, it works with other IMAP servers, why should not work with dovecot?
> It was working with DBMail, and it's working with an account from my Telco 
> that used cirus-imap.

Have you verified (with rawlogs or tcpdump) that outlook even attempts IDLE?
Is your dovecot advertising IDLE support in CAPABILITY? 

Sami



Re: Help with IMAP IDLE

2019-07-22 Thread @lbutlr via dovecot
On 22 Jul 2019, at 03:45, Jorge Bastos via dovecot  wrote:
> On Jul 21, 2019, at 11:50, Jorge Bastos via dovecot  
> wrote:
>>> SSL/TLS is done via Stunnel
> 
>> Dirst, others have asked but I haven’t seen an answer, do you have any 
>> reason to think Outlook supports IMAP idle at all? I mean, I know 
>> outlook.com > doesn’t support it, so maybe it just doesn’t work?

>> Secondly, assuming Outlook does support IMAP idle, if you setup Dovecot to 
>> use SSL and not stunnel do things work?

> Yes, it works with other IMAP servers, why should not work with dovecot?

I’m confused by your answer, how do your dovecot settings and/or use of stunnel 
affect other IMAP servers?

This account with a dovecot server:

Jul 22 04:26:51 mail dovecot: imap(krem...@kreme.com)<15649>: 
Connection closed (IDLE running for 0.001 + waiting input for 465.309 secs, 2 B 
in + 10 B out, state=wait-input) in=1549 out=5488 deleted=0 expunged=0 
trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0



Re: Help with IMAP IDLE

2019-07-22 Thread Sami Ketola via dovecot



> On 22 Jul 2019, at 12.45, Jorge Bastos via dovecot  
> wrote:
> 
> On Jul 21, 2019, at 11:50, Jorge Bastos via dovecot  
> wrote:
>> SSL/TLS is done via Stunnel
> 
>> Dirst, others have asked but I haven’t seen an answer, do you have any 
>> reason to think Outlook supports IMAP idle at all? I mean, I know 
>> outlook.com > doesn’t support it, so maybe it just doesn’t work?
> 
>> Secondly, assuming Outlook does support IMAP idle, if you setup Dovecot to 
>> use SSL and not stunnel do things work?
> 
> Yes, it works with other IMAP servers, why should not work with dovecot?
> It was working with DBMail, and it's working with an account from my Telco 
> that used cirus-imap.

Have you verified (with rawlogs or tcpdump) that outlook even attempts IDLE?
Is your dovecot advertising IDLE support in CAPABILITY? 

Sami

RE: Help with IMAP IDLE

2019-07-22 Thread Jorge Bastos via dovecot
On Jul 21, 2019, at 11:50, Jorge Bastos via dovecot  wrote:
> SSL/TLS is done via Stunnel

> Dirst, others have asked but I haven’t seen an answer, do you have any reason 
> to think Outlook supports IMAP idle at all? I mean, I know outlook.com > 
> doesn’t support it, so maybe it just doesn’t work?

> Secondly, assuming Outlook does support IMAP idle, if you setup Dovecot to 
> use SSL and not stunnel do things work?

Yes, it works with other IMAP servers, why should not work with dovecot?
It was working with DBMail, and it's working with an account from my Telco that 
used cirus-imap.




Re: Help with IMAP IDLE

2019-07-21 Thread LuKreme via dovecot
On Jul 21, 2019, at 11:50, Jorge Bastos via dovecot  wrote:
> SSL/TLS is done via Stunnel

Dirst, others have asked but I haven’t seen an answer, do you have any reason 
to think Outlook supports IMAP idle at all? I mean, I know outlook.com doesn’t 
support it, so maybe it just doesn’t work?

Secondly, assuming Outlook does support IMAP idle, if you setup Dovecot to use 
SSL and not stunnel do things work?





RE: Help with IMAP IDLE

2019-07-21 Thread Jorge Bastos via dovecot
> I configured hibernation as suggested by Aki, and still nothing.
> What may i be missing?
> 

> I just read again the mails you sent and realized it had nothing to do with 
> hibernation. Sorry about that..
>
> imapc_max_idle_time = 1 days
>
> this is related to imap client, not imap connections. it won't really matter 
> for your issue.
>
> also I note that you have disabled SSL and enabled plaintext authentication 
> over insecure channels, is this intentional? For debug purposes you can use 
> rawlogs feature, which is better for this. 
SSL/TLS is done via Stunnel

>
> https://doc.dovecot.org/admin_manual/debugging/debugging_rawlog/
>
> In fact, you could use this feature to find out whether outlook even tries to 
> use IMAP IDLE in the first place.

Let me check, it must be a reason to not be working with dovecot, when it was 
with DBMail,
Will check and reply soon,

>
> Aki



RE: Help with IMAP IDLE

2019-07-21 Thread Aki Tuomi via dovecot


> On 21/07/2019 18:45 Jorge Bastos via dovecot  wrote:
> 
>  
> Hi again,
> 
> I configured hibernation as suggested by Aki, and still nothing.
> What may i be missing?
> 

I just read again the mails you sent and realized it had nothing to do with 
hibernation. Sorry about that..

imapc_max_idle_time = 1 days

this is related to imap client, not imap connections. it won't really matter 
for your issue.

also I note that you have disabled SSL and enabled plaintext authentication 
over insecure channels, is this intentional? For debug purposes you can use 
rawlogs feature, which is better for this. 

https://doc.dovecot.org/admin_manual/debugging/debugging_rawlog/

In fact, you could use this feature to find out whether outlook even tries to 
use IMAP IDLE in the first place.

Aki


RE: Help with IMAP IDLE

2019-07-21 Thread Jorge Bastos via dovecot
Hi again,

I configured hibernation as suggested by Aki, and still nothing.
What may i be missing?

https://doc.dovecot.org/configuration_manual/hibernation/ 

-Original Message-
From: dovecot  On Behalf Of Jorge Bastos via
dovecot
Sent: Sunday, July 21, 2019 14:14
To: 'Dovecot Mailing List' 
Subject: RE: Help with IMAP IDLE

Sorry...
I meant to past dovecot and not postfix, doing simultaneously stuff ends up
in this!
Yes, i migrated from DBMail and it was working OK.

Here it is:

root@fastmail:/etc/dovecot# doveconf -n|grep -i idle
imap_idle_notify_interval = 1 mins imapc_max_idle_time = 1 days
root@fastmail:/etc/dovecot#


-Original Message-
From: dovecot  On Behalf Of Alexander Dalloz
via dovecot
Sent: Sunday, July 21, 2019 13:31
To: dovecot@dovecot.org
Subject: Re: Help with IMAP IDLE

Am 21.07.19 um 14:24 schrieb Jorge Bastos via dovecot:
> Hi,

[ ... ]

> How can i make IDLE work for real with MSOutlook, so that i can 
> receive emails when they arrive, instead of changing folder/get out 
> and in my account?

Microsoft's Outlook is primarily meant as the client for Exchange. IMAP is
been poorly implemented, across many generations of Outlook. So are you sure
your Outlook even supports IMAP IDLE? And if it does, not only on the single
folder you have a running connection to but for all folders?

> Here's my conf, should it be reflected in postconf -n (is it the 
> running
> conf?):

Postfix has nothing to do with that, so "postconf -n" is not required.

> ==
> 
>   
> 
> root@fastmail:/etc/dovecot# grep -ir idle *
> 
> conf.d/20-imap.conf.ucf-dist:# If nothing happens for this long while 
> client is IDLEing, move the connection
> 
> conf.d/20-imap.conf.ucf-dist:# IDLEing.
> 
> conf.d/20-imap.conf.ucf-dist:#imap_idle_notify_interval = 2 mins
> 
> conf.d/20-imap.conf:imapc_max_idle_time = 1440 mins
> 
> conf.d/20-imap.conf:# IDLEing.
> 
> conf.d/20-imap.conf:#imap_idle_notify_interval = 2 mins
> 
> conf.d/20-imap.conf:imap_idle_notify_interval = 1 min
> 
> conf.d/20-imap.conf:#imap_client_workarounds = outlook-idle
> 
> conf.d/10-mail.conf.ucf-dist:# When IDLE command is running, mailbox 
> is checked once in a while to see if
> 
> conf.d/10-mail.conf.ucf-dist:#mailbox_idle_check_interval = 30 secs
> 
> conf.d/10-mail.conf:# When IDLE command is running, mailbox is checked 
> once in a while to see if
> 
> conf.d/10-mail.conf:#mailbox_idle_check_interval = 30 secs
> 
> root@fastmail:/etc/dovecot# postconf -n|grep -i idle

"doveconf -n" would tell you which settings are effectively set.

> root@fastmail:/etc/dovecot#

Alexander





RE: Help with IMAP IDLE

2019-07-21 Thread Jorge Bastos via dovecot
Sorry...
I meant to past dovecot and not postfix, doing simultaneously stuff ends up
in this!
Yes, i migrated from DBMail and it was working OK.

Here it is:

root@fastmail:/etc/dovecot# doveconf -n|grep -i idle
imap_idle_notify_interval = 1 mins
imapc_max_idle_time = 1 days
root@fastmail:/etc/dovecot#


-Original Message-
From: dovecot  On Behalf Of Alexander Dalloz
via dovecot
Sent: Sunday, July 21, 2019 13:31
To: dovecot@dovecot.org
Subject: Re: Help with IMAP IDLE

Am 21.07.19 um 14:24 schrieb Jorge Bastos via dovecot:
> Hi,

[ ... ]

> How can i make IDLE work for real with MSOutlook, so that i can 
> receive emails when they arrive, instead of changing folder/get out 
> and in my account?

Microsoft's Outlook is primarily meant as the client for Exchange. IMAP is
been poorly implemented, across many generations of Outlook. So are you sure
your Outlook even supports IMAP IDLE? And if it does, not only on the single
folder you have a running connection to but for all folders?

> Here's my conf, should it be reflected in postconf -n (is it the 
> running
> conf?):

Postfix has nothing to do with that, so "postconf -n" is not required.

> ==
> 
>   
> 
> root@fastmail:/etc/dovecot# grep -ir idle *
> 
> conf.d/20-imap.conf.ucf-dist:# If nothing happens for this long while 
> client is IDLEing, move the connection
> 
> conf.d/20-imap.conf.ucf-dist:# IDLEing.
> 
> conf.d/20-imap.conf.ucf-dist:#imap_idle_notify_interval = 2 mins
> 
> conf.d/20-imap.conf:imapc_max_idle_time = 1440 mins
> 
> conf.d/20-imap.conf:# IDLEing.
> 
> conf.d/20-imap.conf:#imap_idle_notify_interval = 2 mins
> 
> conf.d/20-imap.conf:imap_idle_notify_interval = 1 min
> 
> conf.d/20-imap.conf:#imap_client_workarounds = outlook-idle
> 
> conf.d/10-mail.conf.ucf-dist:# When IDLE command is running, mailbox 
> is checked once in a while to see if
> 
> conf.d/10-mail.conf.ucf-dist:#mailbox_idle_check_interval = 30 secs
> 
> conf.d/10-mail.conf:# When IDLE command is running, mailbox is checked 
> once in a while to see if
> 
> conf.d/10-mail.conf:#mailbox_idle_check_interval = 30 secs
> 
> root@fastmail:/etc/dovecot# postconf -n|grep -i idle

"doveconf -n" would tell you which settings are effectively set.

> root@fastmail:/etc/dovecot#

Alexander




RE: Help with IMAP IDLE

2019-07-21 Thread Jorge Bastos via dovecot
Here's the full dovecot -n for you both:

 

https://pastebin.com/C5JEJr0D 

 

 

From: Aki Tuomi  
Sent: Sunday, July 21, 2019 13:29
To: Jorge Bastos ; Jorge Bastos via dovecot

Subject: Re: Help with IMAP IDLE

 

 

On 21/07/2019 15:24 Jorge Bastos via dovecot mailto:dovecot@dovecot.org> > wrote: 

 

 

Hi,

 

I'm becaming crazy about this!

I've asked before, not no matter what i do or conf, never works.

 

How can i make IDLE work for real with MSOutlook, so that i can receive
emails when they arrive, instead of changing folder/get out and in my
account?

Here's my conf, should it be reflected in postconf -n (is it the running
conf?):

 

==

 

root@fastmail:/etc/dovecot# grep -ir idle *

conf.d/20-imap.conf.ucf-dist:# If nothing happens for this long while client
is IDLEing, move the connection

conf.d/20-imap.conf.ucf-dist:# IDLEing.

conf.d/20-imap.conf.ucf-dist:#imap_idle_notify_interval = 2 mins

conf.d/20-imap.conf:imapc_max_idle_time = 1440 mins

conf.d/20-imap.conf:# IDLEing.

conf.d/20-imap.conf:#imap_idle_notify_interval = 2 mins

conf.d/20-imap.conf:imap_idle_notify_interval = 1 min

conf.d/20-imap.conf:#imap_client_workarounds = outlook-idle

conf.d/10-mail.conf.ucf-dist:# When IDLE command is running, mailbox is
checked once in a while to see if

conf.d/10-mail.conf.ucf-dist:#mailbox_idle_check_interval = 30 secs

conf.d/10-mail.conf:# When IDLE command is running, mailbox is checked once
in a while to see if

conf.d/10-mail.conf:#mailbox_idle_check_interval = 30 secs

root@fastmail:/etc/dovecot# postconf -n|grep -i idle

root@fastmail:/etc/dovecot#

 

Can you provide doveconf -n? Have you followed this
https://doc.dovecot.org/configuration_manual/hibernation/ 

---
Aki Tuomi


Re: Help with IMAP IDLE

2019-07-21 Thread Alexander Dalloz via dovecot

Am 21.07.19 um 14:24 schrieb Jorge Bastos via dovecot:

Hi,


[ ... ]


How can i make IDLE work for real with MSOutlook, so that i can receive
emails when they arrive, instead of changing folder/get out and in my
account?


Microsoft's Outlook is primarily meant as the client for Exchange. IMAP 
is been poorly implemented, across many generations of Outlook. So are 
you sure your Outlook even supports IMAP IDLE? And if it does, not only 
on the single folder you have a running connection to but for all folders?



Here's my conf, should it be reflected in postconf -n (is it the running
conf?):


Postfix has nothing to do with that, so "postconf -n" is not required.


==

  


root@fastmail:/etc/dovecot# grep -ir idle *

conf.d/20-imap.conf.ucf-dist:# If nothing happens for this long while client
is IDLEing, move the connection

conf.d/20-imap.conf.ucf-dist:# IDLEing.

conf.d/20-imap.conf.ucf-dist:#imap_idle_notify_interval = 2 mins

conf.d/20-imap.conf:imapc_max_idle_time = 1440 mins

conf.d/20-imap.conf:# IDLEing.

conf.d/20-imap.conf:#imap_idle_notify_interval = 2 mins

conf.d/20-imap.conf:imap_idle_notify_interval = 1 min

conf.d/20-imap.conf:#imap_client_workarounds = outlook-idle

conf.d/10-mail.conf.ucf-dist:# When IDLE command is running, mailbox is
checked once in a while to see if

conf.d/10-mail.conf.ucf-dist:#mailbox_idle_check_interval = 30 secs

conf.d/10-mail.conf:# When IDLE command is running, mailbox is checked once
in a while to see if

conf.d/10-mail.conf:#mailbox_idle_check_interval = 30 secs

root@fastmail:/etc/dovecot# postconf -n|grep -i idle


"doveconf -n" would tell you which settings are effectively set.


root@fastmail:/etc/dovecot#


Alexander



Re: Help with IMAP IDLE

2019-07-21 Thread Aki Tuomi via dovecot


 
 
  
   
  
  
   
On 21/07/2019 15:24 Jorge Bastos via dovecot  wrote:
   
   

   
   

   
   
Hi,

I’m becaming crazy about this!
I’ve asked before, not no matter what i do or conf, never works.

How can i make IDLE work for real with MSOutlook, so that i can receive emails when they arrive, instead of changing folder/get out and in my account?
Here’s my conf, should it be reflected in postconf -n (is it the running conf?):

==

root@fastmail:/etc/dovecot# grep -ir idle *
conf.d/20-imap.conf.ucf-dist:# If nothing happens for this long while client is IDLEing, move the connection
conf.d/20-imap.conf.ucf-dist:# IDLEing.
conf.d/20-imap.conf.ucf-dist:#imap_idle_notify_interval = 2 mins
conf.d/20-imap.conf:imapc_max_idle_time = 1440 mins
conf.d/20-imap.conf:# IDLEing.
conf.d/20-imap.conf:#imap_idle_notify_interval = 2 mins
conf.d/20-imap.conf:imap_idle_notify_interval = 1 min
conf.d/20-imap.conf:#imap_client_workarounds = outlook-idle
conf.d/10-mail.conf.ucf-dist:# When IDLE command is running, mailbox is checked once in a while to see if
conf.d/10-mail.conf.ucf-dist:#mailbox_idle_check_interval = 30 secs
conf.d/10-mail.conf:# When IDLE command is running, mailbox is checked once in a while to see if
conf.d/10-mail.conf:#mailbox_idle_check_interval = 30 secs
root@fastmail:/etc/dovecot# postconf -n|grep -i idle
root@fastmail:/etc/dovecot#
   
  
  
   
  
  
   Can you provide doveconf -n? Have you followed this https://doc.dovecot.org/configuration_manual/hibernation/
  
  
   ---
Aki Tuomi