tag:gpgtools.tenderapp.com,2011-11-04:/discussions/beta/1181-cant-connect-to-imap-serverGPGTools: Discussion 2016-08-13T11:55:28Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:10:54Z2016-05-13T09:10:54ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Hi dieter,</p>
<p>that's hard to tell. There are a few things you could check to
get closer to the root cause of this issue.</p>
<ol>
<li>
<p>Compare your mail account setup between your devices. Are they
all using identical settings? Are the ports used identical (Mail
> Accounts > Select account > Advanced)?</p>
</li>
<li>
<p>When this issue happens again, temporarily disable GPGMail (as
you already did), then re-add it and switch forth and back. Does
your observation remain the same?</p>
</li>
</ol>
<p>Kindly,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:26:39Z2016-05-13T09:26:39ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Hi Steve,</p>
<p>1.: Yes, they are identical</p>
<p>2.: I did that yesterday after filing the issue here. Adding it
back didn't result in the same problem again.</p></div>dietertag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:28:03Z2016-05-13T09:28:28ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Great, well or not. It shows how hard this stuff is to debug.
When this happens again, make sure to take exact note of the date
and time and maybe also get in touch with posteo.</p>
<p>Let's keep this one open, you observe this further and keep us
posted how this evolves.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:34:57Z2016-05-13T09:34:57ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>I really don't think it was posteo's issue. As I already said, I
was able to connect via IMAP from other devices. I also was able to
log into the webmail interface from my Mac while Mail.app couldn't
connect.</p>
<p>As I had an open radar with Apple about the problem (when I
didn't make the connection to GPGMail), they gave me instructions
to gather a sysdiagnose targeting Mail with <code>sudo sysdiagnose
-f ~/Desktop/ Mail</code>.</p>
<p>I generated the sysdiagnose while having the issue yesterday.
Would the sysdiagnose be of any help to you too? If so, I'm happy
to provide it to you privately.</p></div>dietertag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:40:03Z2016-05-13T09:40:03ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Currently I don't see how GPGMail would even be able to tampler
or influence the IMAP connection. So let's just wait, what apple
has to say. It's not as if mail.app was a bug free software. But
happy to stay posted on this.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-05-13T09:42:34Z2016-05-13T09:42:34ZCan't connect to IMAP server (Apple Mail.app bug)<div><blockquote>
<p>Currently I don't see how GPGMail would even be able to tampler
or influence the IMAP connection.</p>
</blockquote>
<p>Yeah, same here. That's why I was really surprised when removing
GPGMail made the issue go away.</p>
<p>I'll keep you posted on what they say.</p></div>dietertag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-04T22:23:36Z2016-06-04T22:23:37ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>I've had the same behaviour happen and have not managed to
narrow down the cause. When it happens it, it affects only IMAP.
Using Connection Doctor, all the IMAP connections fail while the
SMTP ones (even to the same mail server) and Exchange ones are
fine. Also as for the OP IMAP works from other devices on the same
network to the same mailboxes.</p>
<p>When it happens, it usually goes away after several minutes
without any intervention. It hasn't happened for me for several
days now, but it comes and go.</p>
<p>I looked at all the mail logs I could find and didn't not notice
anything that alerted me to the issue. Searching for this issue
brings many conversations about issues with SMTP and El Capitan,
but apart from a couple of other mentions nothing about this IMAP
specific issue and no solution.<br>
It seems to be related to some connection attempt taking too long.
At the time it was frequent (a month ago) I got in touch with my
ISP and here's what they noted in their log at the time it happened
(anonymised):</p>
<p>May 4 19:13:02 mail1.xxx.xxx.com dovecot: imap-login:
Disconnected (no<br>
auth attempts in 60 secs): user=<>, rip=xxx.xxx.xxx.xxx,
lip=xxx.xxx.xxx.xxx, TLS<br>
handshaking: Disconnected, session=</p>
<p>And their comment: 'When the 'user=' field is left blank it
means a connection attempt was made with no username. Are any of
your devices attempting to connect without a username?' The account
configuration was correct, with a username.</p>
<p>Also it happens on several IMAP ports.</p>
<p>I didn't think of trying uninstalling GPG Mail when it happened
so do not know if it would have helped and hence points it as
likely cause. Rebooting the machine usually fixed it for a
while.</p>
<p>Hopefully if it is related to GPG Mail, these additional
unfortunately rather vague details may help someone narrow down the
issue and identify it.</p></div>David Merytag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T11:11:36Z2016-06-05T11:11:36ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Hey David,</p>
<p>for my personal accounts lately I have seen IMAP timeouts with
one email service I use as well. They seem to come and go. I could
not determine any pattern. The email service provider checked their
backend and said everything was fine. I still don't believe this is
related to GPGMail. It would be great if you could keep observing
this. When you run into the problem, temporarily disable mail by
removing the mailbundle file from the bundles folder and see if
that changes anything (close mail first, remove bundle, restart
mail).</p>
<p>I tried that here as well without any specific findings. Removed
the bundle, issues were gone. Re-added bundle, IMAP issues were
still gone. Removed bundle again, issues re-appeared. Another
indicator that it's not GPGMail that's the bad boy in this case.
Maybe a bug in Mail.app? Maybe the providers are at fault?</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T11:59:18Z2016-06-05T11:59:19ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Steve,</p>
<blockquote>
<p>I have seen IMAP timeouts with one email service I use as
well</p>
</blockquote>
<p>When it happens, none of my IMAP accounts work on my Mac. It's
only IMAP, but all of the IMAP accounts.</p>
<blockquote>
<p>Maybe the providers are at fault?</p>
</blockquote>
<p>That is unlikely as the same IMAP accounts on the same network
at the same time work fine from another device, so the issue does
seem to be localised to the Mac, whether in GPGMail, Mail.app, or
somewhere else in El Capitan (Wifi connectivity?).</p>
<p>I'll try to observe Mail.app and if I see this issue happening,
follow your request and report back.</p></div>David Merytag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T12:23:56Z2016-06-05T12:23:58ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>It just happened! Confirmed it with Connection Doctor.</p>
<p>Quit Mail.app.</p>
<p>Moved the GPGMail bundle out.</p>
<p>Relaunched Mail.app.</p>
<p>Check with Connection Doctor and IMAP accounts are still
'Connecting to the server...'</p>
<p>So that would seem to confirm the problem is not with
GPGMail.</p></div>David Merytag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T12:30:06Z2016-06-05T12:30:06ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Yup. This is pretty annoying to debug. Do you happen to have an
apple developer account? If so raising this as a bug in their radar
system could be helpful. If no developer account exists for you,
please raise this a) on their <a href="https://discussions.apple.com/community/mac_os/os_x_el_capitan">discussions
page</a> and b) on their <a href="http://www.apple.com/feedback/mail.html">feedback page</a>.</p>
<p>They do read the feedback. They are not directly involved in the
discussions.</p>
<p>Either way, we'd be happy to hear where this goes. So feel free
to report any new findings to this discussion.</p>
<p>Kindly,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T14:28:26Z2016-06-05T14:28:27ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Done. Filed as bug 26641634 in Apple's Bug Reporter.</p></div>David Merytag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-05T20:56:46Z2016-06-05T20:56:46ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>For reference, my Apple bug id is 23611829.</p></div>dietertag:gpgtools.tenderapp.com,2011-11-04:Comment/398715012016-06-09T12:14:33Z2016-06-09T12:14:33ZCan't connect to IMAP server (Apple Mail.app bug)<div><p>Great, please keep us posted as to what they respond.</p>
<p>An option to make apple bugs visible to others is the OpenRadar
system:<br>
<a href="https://openradar.appspot.com/">https://openradar.appspot.com/</a></p>
<p>I've not personally used that, but I think the idea is to
duplicate your report there so it can be found publicly.</p></div>Steve