Exim in google cloud engine

909 views
Skip to first unread message

Marcos Toribio

unread,
Mar 4, 2016, 8:21:43 AM3/4/16
to gce-discussion
I have a problem while I trying to send a email with exim.


/var/log/exim4/mainlog
2016-03-04 13:09:33 1abn95-0002jy-Mw == pep...@example.com R=dnslookup_relay_to_domains T=remote_smtp defer (-53): retry time not reached for any host

I wonder if it is possible to mount a server smtp in GCE.

Faizan (Google Cloud Support)

unread,
Mar 4, 2016, 3:08:03 PM3/4/16
to gce-discussion
Hello Marcos,

Google Compute Engine does not allow outbound connections on ports 25, 465 and 587. As such, if Exim is trying to connect on any of these ports to send emails it will not work. With that being said, you can use third-party partners (SendGrid and Mailgun ) to send emails from GCE instance. For more information you can go through this link. To setup Exim with sendgrid relay this link might be useful.

I hope that helps.

Faizan

Marcos Toribio

unread,
Mar 4, 2016, 6:59:21 PM3/4/16
to gce-discussion
I had already read the documentation, but this means that you can not mount a smtp server in GCE? or if you set exim, for example, port 2525 exim work.
Because it receive emails but when I try to send one jumps that mistake.

Faizan (Google Cloud Support)

unread,
Mar 7, 2016, 2:21:59 PM3/7/16
to gce-discussion
Hello Marcos,

You can set up your own email server on any of the ports not blocked by Compute Engine e.g 2525. The traffic on ports 25, 465 and 587 is blocked for the outbound requests and not inbound which is why you are able to receive emails and not send on these ports.

Muhammad Yousuf Khan

unread,
Mar 9, 2016, 2:45:42 AM3/9/16
to gce-discussion
i know this is very unfortunate default ports are block however i believe You can change SMTP relay ports in your client and Server as well.

Muhammad Yousuf Khan

unread,
Mar 9, 2016, 2:50:13 AM3/9/16
to gce-discussion
Marcos,

Sorry i get your question wrong. please ignore my last comment. you are write it should be a problem in GCE.

Thanks,
Yousuf
Reply all
Reply to author
Forward
0 new messages