Port 465, 587, 25 on my droplet is blocked, cannot send email to my custumer, please help me!

August 15, 2017 16.2k views
Security Email Ubuntu 16.04

Hello, I have sent some ticket to DO in 3 days ago but no answer. Why blocked my port 465, 25, 587. I use droplet for more 1 year and send email normal but recently I cannot send email to my custumer. DO donot support for anything. Who know how unblock port to send email, please help me. Thanks!

1 comment
  • I use LAMP and set up email server: smtp.zoho.com, 465, ssl, username, password on joomla 3.6.5 I also look up on question and read many article here but donot find what for me.

17 Answers

Hi iamzum,

I am facing the same problem as port 587 is blocked by DO so my web app cannot send outgoing emails. I opened a ticket [Ticket #578581]. But DO support has not replied for a couple days. Ticket is still open unsolved.

Ports aren’t blocked unless you block them yourself with a firewall. If you’re using zoho as your mail provider I suggest you contact them since they’re most likely the cause of the issue.

Thank Aprexer!
I checked this for 3 days.

  • Firewall donot do this. I know use Firewall
  • I checked by scan port 465, 587, .., at https://mxtoolbox.com and see those port blocked Please help me!

At least could you give me an IP to scan with?

Hello, Aprexer.
can you help me? Please!

  • Port 465 is blocked inbound but it can send outbound, its a problem with zoho not digitalocean. Also its using zoho to send emails so its nothing to do with your server.

    • Thanks, Aprexer.
      1- I try use SendGrid account to other solution and ERROR :“SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting”.
      2- I use account on zoho to send and arrive email then It is Ok. But on my web is “SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
      I check all Question and Tutorial about this, but all tell me “Open a ticket to DO”. But I send to DO 3 days, they donot answer for me. So I ask my question here.
      I am sory, I use english very badly.

      • Can you provide your full PHPMailer config without the password. Also adding $mail->SMTPDebug = 2; can help you allot in these situations.

        • Thanks for your feedback.
          I install joomla so I donot know about PHPmailer file. Previously, I sended email normal, recently I saw this error in joomla. The error message line is from joomla. I have tried other solutions but port 465, 587 can not send Email. So I donot do WHAT now!

Hello iamzum,

I also have problem like you but my droplet open port 465 & 587 and I use SMTP Plugin with SMTP Zoho but it can’t send anyone.

Please help


  • Hello, you use joomla, also. If TRUE then you just add info zoho in admin joomla, you donot need use any plugin.

Same problem here and same support by DO, I still waiting for a response since 4 days ago… terrible support.

I’m suddenly facing this issue too. It’s working fine before it. Waiting for DO support’s response too

I am also experiencing this issue.

I am also having the same problems. Seems like the ports were blocked without any notification. Did anyone here get it resolved yet? Will need to know how fast these issues are resolved before deciding whether to stay with DO or consider alternative hosting.

Also happened to me. I resized my droplet to take advantage of the new upgrade in pricing. Shutdown, resize, boot up again and then all my emails could not go out.

I managed to find a work around if you are using sendgrid.

If you are using sendgrid, you can use port 2525.
That worked for me.

But I hope Digital ocean can give an answer

Hy, for who can’t send emails.



nano /etc/gai.conf

and uncomment

precedence ::ffff:0:0/96 100

Reboot, test, and change NETWORK MX, add GMAIL MX.

Hi there,
Just to comment that in my case, the problem was that digital ocean block my server.
yes without warning or message :-o

But after contact to the support, they askme some questions regarding the business and what kind of email my app send …
they have removed the SMTP block from my account.

why port 25 is block in digital ocean ? i want do send email from squirrelmail to gmail,yahoo, etc ?

Same here. Why do they do this??

Same for me and after 5 hours always no answer.
I resized my droplet to take advantage of the new upgrade in pricing. Shutdown, resize, boot up again and then all my emails could not go in/out.

Have another answer? Share your knowledge.

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