Question

SMTP handshake not working, blocked on port 25?

I’m trying to run a basic script that verifies an email address. It uses an SMTP handshake like so:

server = smtplib.SMTP(timeout=10)
server.set_debuglevel(1)
server.connect(mx, port=25)
server.helo('example.com')
server.mail('you@example.com')
code, message = server.rcpt(email)
server.quit()

I know that Digital Ocean blocks on port 25 to prevent spam, but it would be great to be unblocked so I can do email verification. I do all email sending through Amazon SES so I only need port 25 unblocked for email verification.

I open a support ticket (#09070834) two days ago but haven’t heard back so figured I’d ask here. Thanks in advance


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
June 14, 2024

Hey @kitzj,

In our public community, we aim to answer open questions about anything SysAdmin, DigitalOcean and beyond. However, we make every attempt to keep personal information safe and so don’t ever access personal account information here. This means we can’t provide help with any account or billing-related issues.

I have asked our amazing support team to check-in on your ticket. They will be able to help you further where we cannot! :)

Hope that helps! - KFSys.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel