【问题标题】:Custom SMTP server on Google App Engine (Python 3.7)Google App Engine (Python 3.7) 上的自定义 SMTP 服务器
【发布时间】:2020-09-14 12:01:51
【问题描述】:

是否可以使用 Python smtpd 模块在 Google App Engine 上构建自定义 SMTP 服务器来监听传入的电子邮件?

【问题讨论】:

    标签: python-3.x google-app-engine google-cloud-platform smtpd


    【解决方案1】:

    App Engine 的托管和自定义运行时适用于 HTTP 流量(端口 80 和 443)。您将无法在运行 SMTP 服务器所需的端口上接收流量。

    事实上,端口 25、465 和 587 被阻止用于跨所有 Google Cloud 的出站连接。相反,您可以使用外部服务,例如 SendGrid、Mailgun 或 Mailjet:https://cloud.google.com/compute/docs/tutorials/sending-mail#choosing_an_email_service_to_use

    (本文是关于发送电子邮件的,但这些服务也允许您接收电子邮件。)

    【讨论】:

    猜你喜欢
    • 2023-03-10
    • 2019-08-29
    • 2023-03-21
    • 1970-01-01
    • 2012-06-10
    • 1970-01-01
    • 1970-01-01
    • 2020-02-15
    • 1970-01-01
    相关资源
    最近更新 更多