LV
Back to writing

// Google · Microsoft

[Solved] Error: (state SENT_SECOND_EHLO) code(0) or [Server response: read error code(0)] in GMail

If you're setting up Gmail to read messages from M$ Office 365's Outlook via SMTP and POP3 but you get the following errors:

Error: (state SENT_SECOND_EHLO) code(0)

Or

Error: [Server response: read error code(0) ]

The solution is simple: change the SMTP server address from outlook.office365.com to the server specific to your geographic location.

  1. Open the command prompt and type: ping outlook.office365.com

  2. Note the returned address, for example: outlook-namsouth.office365.com

    PING outlook-namsouth.office365.com (132.245.16.242): 56 data bytes
    64 bytes from 132.245.16.242: icmp_seq=0 ttl=241 time=172.730 ms
    64 bytes from 132.245.16.242: icmp_seq=1 ttl=241 time=189.141 ms
    64 bytes from 132.245.16.242: icmp_seq=2 ttl=241 time=169.283 ms
    64 bytes from 132.245.16.242: icmp_seq=3 ttl=241 time=168.586 ms
    64 bytes from 132.245.16.242: icmp_seq=4 ttl=241 time=164.661 ms
    ^C
    --- outlook-namsouth.office365.com ping statistics ---
    5 packets transmitted, 5 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 164.661/172.880/189.141/8.525 ms
    MacBookAir:~ leonardo$
  3. Use outlook-namsouth.office365.com in place of outlook.office365.com

  4. Use your full email as the username.

  5. Port 587 and TLS encryption.

Done!

Comments 0

No comments yet.