Question

Digital Ocean Firewall blocking sending Email

Hi all, I’m running a WordPress site on Ubuntu 16.04 Server. Before using Digital Ocean Firewall feature. My WordPress site was sending outgoing emails without any problem but after enabling I’m getting following error in my mail server log:

server postfix/smtp[10014]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c03::1b]:25: Network is unreachable

Currently I’m using following rules in the firewall:

Inbound Rules: SSH TCP 22 DNS TCP TCP 53 HTTP TCP 80 HTTPS TCP 443 DNS UDP UDP 53

Outbound Rules: DNS TCP TCP 53 HTTP TCP 80 HTTPS TCP 443 DNS UDP UDP 53

Please help me which port rule I’ll need to add in the firewall to fix the issue, Thanks!

Show comments

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.

Accepted Answer

Me too. I send support ticket about it and here DO answer:

*Hello,

Thank you for contacting DigitalOcean.

Stopping spam is a constant fight, so we have implemented some restrictions on newer accounts. To qualify for the ability to send out email, we do require accounts to wait 60 days before we can look into removing the restriction. Once your account has reached 60 days of stable use, please do reach back out to us so we can look into this for you.

We appreciate your understanding on this matter.*

well this is not make sense to me.

I’m working to build ecommerce site. I signup for vps service and buy cpanel license in order to have manage my site without have shared host limitation. Why DO limit their vps user for sending email from the server while all shared host allow their clients from the first time they signup?

hello, all my emails to FEDEX.COM are blocked. Please advise

The Problem has been fixed after creating a ticket. Digital Ocean blocked the SMTP port. They want to stop spam, and when contacted they asked few questions, e.g.: My name, Company Name, Blog name and some other info. And they unlocked the port. So if you’re facing the same, then you’ll need to contact Digital Ocean by submitting a support ticket.

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.