smtp.gmail.com:587 -> OSError [Errno 101] Network is unreachable
r
ramitdem
Hello Render Support,
My backend service was previously able to send emails via Gmail SMTP, but it has stopped working recently without any intentional code change to the email transport.
Current behavior:
SMTP host: smtp.gmail.com
SMTP port: 587
Error on connect: OSError: [Errno 101] Network is unreachable
This happens when the app tries to open an SMTP connection from the Render instance. The failure occurs before SMTP authentication, so it appears to be a network/connectivity issue from the Render runtime to smtp.gmail.com:587.
Relevant traceback summary:
Python smtplib.SMTP(SMTP_HOST, SMTP_PORT, timeout=15)
underlying socket.create_connection(...)
error: OSError: [Errno 101] Network is unreachable
This affects:
contact form emails
signup verification emails
forgot password emails
The same email flow was working before, and local environment still works.
Could you please confirm:
Whether outbound SMTP on port 587 is currently blocked or restricted on Render
Whether there was any recent networking/platform change affecting access to smtp.gmail.com:587
Whether this service/region has any egress limitation for SMTP traffic
If needed, I can also share the full logs and service details.
Thanks.
Log In