server not connect to aspmx.l.google.com 25

5,858 views
Skip to first unread message

rlo...@developing-tech.com

unread,
Apr 29, 2017, 9:43:30 PM4/29/17
to Google App Engine
Hi I have a application in php-laravel running in a instance from google cloud but when I want to send a mail it does not work give a error as connect to alt2.aspmx.l.google.com[173.194.211.26]:25: Connection timed out ; when I try to connect with telnet aspmx.l.google.com 25 gime the this error 

"Trying 173.194.197.26...
telnet: connect to address 173.194.197.26: Connection timed out
Trying 2607:f8b0:4001:c06::1a...
telnet: connect to address 2607:f8b0:4001:c06::1a: Network is unreachable"

From my mac I run this telnet aspmx.l.google.com 25 it works well

So? I do not know what happen , I need your help because my users can not reset their password because the mail does not sent

Thanks...

Adam (Cloud Platform Support)

unread,
Apr 30, 2017, 12:24:11 PM4/30/17
to Google App Engine
Socket connections to most Google IPs are blocked from App Engine, which includes aspmx.l.google.com. However you can connect to smtp.gmail.com on port 465 or 587, which is the recommended way to send GSuite domain email from an app.

If you need to send more mail that the GSuite quota allows, you should use an external mail relay service like Mailjet or Sendgrid.

Adam (Cloud Platform Support)

unread,
Apr 30, 2017, 12:27:42 PM4/30/17
to Google App Engine
Further to the above,  aspmx.l.google.com is an inbound mail relay for GSuite / Google Apps, so can only route mail to GSuite domain users or Gmail users.
Reply all
Reply to author
Forward
0 new messages