Not able to connect to smtp server of gmail. Why?
Asked Answered
A

2

5

I am trying to connect to a smtp server of gmail using

telnet gmail.smtp.com 587

It gets connnected when I try it from home. But, it shows an error when I try it from my office. What can be the problem?

Here is the error I get connecting to smtp.gmail.com:

Could not open connection to the host, on port 587: Connect Failed
Appellate answered 28/2, 2014 at 4:18 Comment(3)
How should I configure my firewall so that it allows me to do so ?Appellate
That depends on the protocol but I would start with enabling pot 587...Earthwork
@VikasMangal Can you please have a look at this question? #52386937Tilford
M
6

Since you are able to connect at home, your office is probably blocking the port using a firewall. To be sure though, you could try on another network.

Mastoid answered 28/2, 2014 at 4:29 Comment(5)
I have tried connecting to many servers- yahoo's, hotmail etc. But nothing is getting connected.Appellate
Is the error exactly the same (including port)? If so, then I'd say it's a firewall.Mastoid
yes the error is exactly the same. How should I configure my firewall so that it allows me to do so ?Appellate
You can try to allow the port through your computer's firewall by going to Control Panel > System and Security > Advanced Settings then creating a new inbound and outbound rule for port 587. Set the rule type to port, and the port type as TCP. Once you do this for both inbound and outbound it should work. If it doesn't then your office is blocking it somewhere upstream, so there's nothing you can do about that.Mastoid
@Mastoid Can you please have a look at this question? #52386937Tilford
O
2

Your hostname should be - smtp.gmail.com You wrote - gmail.smtp.com

Please change the name

Organo answered 5/9, 2019 at 6:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.