Google Compute Engine (GCE) email delivery solution?

寵の児 提交于 2019-12-21 07:36:13

问题


I've just setup several instances on Google Compute Engine and getting trouble with email delivery system since GCE blocks outbound connections on ports 25, 465, and 587.

GCE provides details solution at: https://developers.google.com/compute/docs/networking#mailserver to using postfix to send email via smtp.gmail.com using Google Account.

The problem is Gmail has its own sending limits and it will be a big problem for high traffic website which need to send email notifications heavily.

Is there anyone has a solution to send more higher sending limits for GCE instances?

Thanks in advance. Best Regards, T


回答1:


From the same page:

Blocked Traffic

Traffic on these ports to and from the Internet are blocked or restricted for all Google Compute Engine instances. If you think you have a compelling reason to allow this traffic, please contact the Google Compute Engine team at gc-team@google.com.

  • All outgoing traffic to port 25 (SMTP) is blocked
  • Most outgoing traffic to port 465 or 587 (SMTP over SSL) is blocked except for known Google IP addresses

https://developers.google.com/compute/docs/networking#blockedtraffic

It looks like you'll need to have a compelling reason to allow the traffic for your application; I'm presuming that hitting GMail delivery limits might be a reason. Note that companies like SendGrid also offer email delivery and management (bulk email as a service) with an HTTP interface that you could call from GCE.




回答2:


We've updated our documentation to include SendGrid as an additional option. You probably want to take another look.

https://developers.google.com/compute/docs/sending-mail?hl=en




回答3:


Your best option is to sign up for Amazon SES and get the API credentials and endpoint to send mail from google cloud without any google limitations.

You can use any similar API as well.



来源:https://stackoverflow.com/questions/18245204/google-compute-engine-gce-email-delivery-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!