Yet another imap.gmail.com error post
I've been bitten by the dreaded "the mail server imap.gmail.com is not responding" error on my iPhone for the last few months. At first it would pop up every couple weeks and after confirming that all my account settings were entered correctly, the easiest solution was to delete and recreate my gmail account. Slowly but surely, it has become more frequent and is now a daily issue.
I've tried a few things on the Google account side including hitting the "accounts.google.com/DisplayUnlockCaptcha" site; clearing out old (pre-iOS 8.2) app-specific passwords; revoking account rights to the iPhone and re-confirming. The one thing I have not tried is changing my password because the gmail account works without issue on my iPad and OS X Mail. I'm not convinced the issue is on Google's side, unless there's a hiccup in security/authorization between my iPhone and gmail on some level. Third party apps on the iPhone like Spark or Google's InBox connect without issue even when Mail is unable to.
The one thing I've found that fixes the issue temporarily is to reboot my iPhone. First thing in the morning I'll see that the last connection to gmail was made around 3 or 4am. Opening the gmail account in Mail will display the "the mail server imap.gmail.com is not responding" error. If I reboot my iPhone, log back in and open Mail, the "mail server imap.gmail.com is not responding" error does not appear and the gmail account connects without issue. At least until the next day.
While I have a workaround, it's annoying to reboot my iPhone each morning, especially in light of the fact that the account connects without issue in third party apps like Spark and InBox as well as on other devices. I know this issue has left a trail on the internet going back several years with various fix suggestions, but if someone has something other that what I have already tried, I'm all ears... Thanks!