Announcement: Upgrade to macOS Mojave

With features like Dark Mode, Stacks, and four new built-in apps, macOS Mojave helps you get more out of every click. 
Find out how to upgrade to macOS Mojave > https://support.apple.com/macos/mojave

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Question:

Question: Mail 7.1(1827) stopped connecting to gmail

So using imap with gmail.

All of a sudden accounts went offline, connection doctor keeps saying that mail cannot connect to SMTP/Imap server.

Tried to redo the accounts, no luck. (yes, using google provided settings)


Alternative mail programs (sparrow/airmail) with imap work ok.

Posted on

Reply

Page content loaded

Jan 30, 2014 10:25 AM in response to Linc Davis In response to Linc Davis

Well no, didnt have that one.

But decided to give that a try aswell, generated application specific password.


Mail still gives me the same error (The server returned the error: The server “imap.gmail.com” cannot be contacted on port 993.)


Which is pretty strange, since airmal works ok + I can connect to that server using telnet ok.

Jan 30, 2014 10:25 AM

Reply Helpful

Jan 30, 2014 10:53 AM in response to kakoni In response to kakoni

Double-click anywhere in the line of text below on this page to select it, then copy it to the Clipboard by pressing the key combination command-C:

imap.gmail.com


Launch the Network Utility application.


Step 1


Select the Lookup tab and paste into the address field (command-V). Press return. Post the output that appears below – the text, please, not a screenshot.


Step 2


Select the Ping tab and do the same. Please enter the same input as you did in Step 1. Don't use the output of Step 1 as input to Step 2.

Important Note


Some web browsers and mail clients will automatically convert a domain name such as "www.example.com" to a clickable URL, such as http://www.example.com. That will interfere with the test. If necessary, edit the input in the Network Utility window to remove any added characters.

Jan 30, 2014 10:53 AM

Reply Helpful

Jan 30, 2014 11:06 AM in response to Linc Davis In response to Linc Davis

Step1 returns

imap.gmail.com -> 173.194.71.109, 173.194.71.108


Step 2

Ping has started…


PING gmail-imap.l.google.com (173.194.71.108): 56 data bytes

64 bytes from 173.194.71.108: icmp_seq=0 ttl=47 time=28.688 ms

64 bytes from 173.194.71.108: icmp_seq=1 ttl=47 time=27.265 ms


Step3

From terminal telnet to imap.gmail.com port 993

telnet imap.gmail.com 993

Trying 173.194.71.109...

Connected to gmail-imap.l.google.com.

Escape character is '^]'.

Jan 30, 2014 11:06 AM

Reply Helpful

Jan 30, 2014 12:45 PM in response to Linc Davis In response to Linc Davis

INITIATING CONNECTION Jan 30 22:43:57.097 [kCFStreamSocketSecurityLevelNone] -- host:smtp.gmail.com -- port:587 -- socket:0x6000002c28b0 -- thread:0x600000a61180


INITIATING CONNECTION Jan 30 22:43:57.097 [kCFStreamSocketSecurityLevelNone] -- host:smtp.gmail.com -- port:587 -- socket:0x6000002c6dd0 -- thread:0x608000264840


INITIATING CONNECTION Jan 30 22:43:57.097 [kCFStreamSocketSecurityLevelNone] -- host:imap.gmail.com -- port:993 -- socket:0x6080002d2c90 -- thread:0x608000264840


INITIATING CONNECTION Jan 30 22:43:57.097 [kCFStreamSocketSecurityLevelNone] -- host:smtp.gmail.com -- port:587 -- socket:0x6000002c50f0 -- thread:0x608000264840

Jan 30, 2014 12:45 PM

Reply Helpful

Jan 30, 2014 10:08 PM in response to kakoni In response to kakoni

Please read this whole message before doing anything.

This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.

Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.

The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?

After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Jan 30, 2014 10:08 PM

Reply Helpful

Jun 11, 2014 4:16 PM in response to Linc Davis In response to Linc Davis

Help: I have the same issue, connection works with others but not with gmail. I can send but not receive; Ihave outgoing mail as smtp, and incoming mail is imap.gmail.com; I followed your suggestion but I cannot see step 3.


for step 1 I got

imap.gmail.com -> 74.125.193.108, 74.125.193.109



for step 2 I got

Ping has started…


PING gmail-imap.l.google.com (74.125.193.108): 56 data bytes

64 bytes from 74.125.193.108: icmp_seq=0 ttl=47 time=40.907 ms

64 bytes from 74.125.193.108: icmp_seq=1 ttl=47 time=42.818 ms

64 bytes from 74.125.193.108: icmp_seq=2 ttl=47 time=41.689 ms

64 bytes from 74.125.193.108: icmp_seq=3 ttl=47 time=41.093 ms

64 bytes from 74.125.193.108: icmp_seq=4 ttl=47 time=38.477 ms

64 bytes from 74.125.193.108: icmp_seq=5 ttl=47 time=38.383 ms

64 bytes from 74.125.193.108: icmp_seq=6 ttl=47 time=38.510 ms

64 bytes from 74.125.193.108: icmp_seq=7 ttl=47 time=38.158 ms

64 bytes from 74.125.193.108: icmp_seq=8 ttl=47 time=41.787 ms

64 bytes from 74.125.193.108: icmp_seq=9 ttl=47 time=41.636 ms


--- gmail-imap.l.google.com ping statistics ---

10 packets transmitted, 10 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 38.158/40.346/42.818/1.674 ms

Jun 11, 2014 4:16 PM

Reply Helpful

Jun 24, 2014 10:37 AM in response to valfromottawa In response to valfromottawa

Was this ever resolved? I've had the same problem for months... sometimes Mail connects, otherwise not, without any change or intervention from me. This happens both on Desktop and Laptop on Mavericks v10.9.3 and Mail v7.3; no problems via iOS 7.1.1. Furthermore, I have multiple gmail accounts setup in Mail... some connect, others don't; again, these change without intervention or settings changes from me. Confirmed all have the same setup of imap.gmail.com on Port 993. Re-setup completed. Getting to GMail via web browser works fine.


Either Mail is unstable with its settings in connecting to the GMail servers; or the GMail servers are unstable in allowing connection with Mail. Other than that, it doesn't make sense to me.


Thanks.

Jun 24, 2014 10:37 AM

Reply Helpful
User profile for user: kakoni

Question: Mail 7.1(1827) stopped connecting to gmail