Reputation: 473
Is it possible to build a custom SMTP server on Google App Engine to listen for incoming email, using the Python smtpd
module?
Upvotes: 1
Views: 367
Reputation: 21520
App Engine's hosted and custom runtimes are meant for HTTP traffic (ports 80 and 443). You will not be able to receive traffic on the ports necessary to operate an SMTP server.
In fact, ports 25, 465 and 587 are blocked for outbound connections across all of Google Cloud. Instead, you can use an external service such as SendGrid, Mailgun, or Mailjet: https://cloud.google.com/compute/docs/tutorials/sending-mail#choosing_an_email_service_to_use
(This article is about sending email but these services allow you to receive email as well.)
Upvotes: 1