Question

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

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


Submit an answer
Answer a question...

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
July 23, 2022

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/

Hope that helps!