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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.