Reputation: 6496
I'm working with a rails 4 app and am trying to send email via SendGrid. I have the app running from a GCE instance.
After reading this google post about sending email through sendgrid, I noticed that they only use port 2525. I would like to connect via port 465 (or 587) because after reading this sendgrid post I learned that SendGrid only allows SSL connections via this port. It also recommends port 587 to avoid any rate limiting that your server host may apply.
Is there a way to use a port other than 2525 on a GCE instance?
Google Compute Engine does not allow outbound connections on ports 25, 465,
and 587 but you can still set up your instances to send mail through ports 587
and 465 using servers provided through partner services, such as SendGrid.
Thanks.
Upvotes: 0
Views: 366
Reputation: 9834
As far as I know, GCE only supports 2525.
TLS should work on port 2525. TLS is more frequently updated and has (so far) had fewer severe security incidents like POODLE, so TLS should be preferred.
GCE won't rate limit you on port 2525 in any particular way.
Upvotes: 1