Report this

What is the reason for this report?

mail postfix/smtp: connect to xxx.com[xx.xxx.x.xxx]:25: Connection timed out

Posted on July 22, 2022

even configuring postfix for smtps postfix tries to connect on port 25 of the recipient

I didn’t find a way around it by sending it to another port. MTA always delivers on port 25.

Is there any way to send an email to outlook on another port?

For example mail -s “test” to : xxxx@outlook.com:587 or 645



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!

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.

Hello there,

It’s possible that port 25 is closed for external uses for new accounts. There are a few ways to go about the problem

  • try using ports like 465 or 587 for SMTP
  • use a third-party solution only for your E-mails. Good examples are SendGrid.

To expand more on blocking port 25 for new accounts, this is something DigitalOcean has been doing to reduce spam on its network. It is more that we simply cannot accurately determine who is going to send it.

Stopping spam is a constant fight, so DigitalOcean has implemented some restrictions on newer accounts. Having said that, you can always contact them and ask for the port block to be lifted on:

https://www.digitalocean.com/support/

More information here:

https://docs.digitalocean.com/support/why-is-smtp-blocked/

That said, running your own mail server on a Droplet is generally more trouble than it is worth. Deliverability is hard to maintain, IP reputation takes time to build, and you are one spam complaint away from being blacklisted. Most people are better off using a dedicated SMTP service like https://smtpfa.st/, SendGrid, Mailgun, or Postmark and skipping the port unblock request entirely.

Hope that helps!

Our new disabled-by-default SMTP policy goes into effect today, June 22, 2022, for all new accounts.

Dedicated email deliverability platforms are better at handling deliverability factors like IP reputation. To send mail from DigitalOcean, we recommend using SendGrid:

https://marketplace.digitalocean.com/apps/sendgrid

Regards

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.