HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Can't reach Gmail SMTP servers from my server (http://www.howtoforge.com/forums/showthread.php?t=58809)

Ovidiu 21st September 2012 12:32

Can't reach Gmail SMTP servers from my server
 
No idea what is wrong but I tried sendign emails via a PHP script and it only told it network unreachable so I tried this:

Code:

h1870666:~# telnet smtp.gmail.com
Trying 173.194.69.109...
Trying 173.194.69.108...
Trying 2a00:1450:4008:c01::6d...
telnet: Unable to connect to remote host: Network is unreachable

Any idea what could be wrong here?

topdog 21st September 2012 14:07

From that example you are trying to telnet to port 23 which is the default port to test correctly you need to run

Code:

telnet smtp.gmail.com 25

Ovidiu 23rd September 2012 13:53

oops, port 25 works.

here is the original error from the script, although I must say I also posted in that script author's forum, awaiting a reply:

Quote:

2012-09-21 10:22:10 000000 -- MAILPRESS [NOTICE] - Image found : wp-content/plugins/mailpress/mp-content/themes/twentyten/images/mailpress.png
2012-09-21 10:22:10 000000 -- MAILPRESS [NOTICE] - Disconnecting from c1fnc (MP_Mail)
2012-09-21 10:22:10 000000 -- MAILPRESS [NOTICE] - Disconnected (MP_Mail)
2012-09-21 10:22:28 000000 -- SWIFTMAILER [ERROR] - There was a problem sending with SMTP :
Connection could not be established with host smtp.gmail.com [Network is unreachable #101]
2012-09-21 10:22:28 000000 -- MAILPRESS [NOTICE] - Connecting to c1fnc (MP_Mail sending error : SMTP)
2012-09-21 10:22:28 000000 -- MAILPRESS [NOTICE] - Connected (MP_Mail sending error : SMTP)
2012-09-21 10:22:28 000000 --
2012-09-21 10:22:28 000000 -- MAILPRESS [ERROR] - *** Mail could not be sent ***
2012-09-21 10:22:28 000000 --
2012-09-21 10:22:28 000000 -- **** End logging **** mp_mail *** level : 0 **** status : FALSE

calixsierra 27th September 2012 11:02

Got the same problem too.

Have you solved it?

Ovidiu 28th September 2012 00:11

sorry for not updating the thread: I solved it and it was entirely my own fault.

I forgot to add these TCP ports to my egress filtering firewall: 465,587,995


All times are GMT +2. The time now is 17:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.