Server with CentOS send mail timeout

Issues related to configuring your network
Post Reply
asher
Posts: 1
Joined: 2018/11/16 04:20:58

Server with CentOS send mail timeout

Post by asher » 2018/11/19 06:37:31

We have purchased a shared hosting with CentOS installed. we are trying to send mail in centos server, It gives error connection time out.
we are trying to send mail using phpmailer library and using this smptp "smtp.office365.com" with port 587 but every time it is returning the same error.
We have tried different smtp yahoo and gmail but its not working.

When we have run this command "telnet smtp.office365.com 587" it is returning connection timeout.

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Server with CentOS send mail timeout

Post by tunk » 2018/11/19 14:59:30

Have you opened the port in the firewall?

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Server with CentOS send mail timeout

Post by TrevorH » 2018/11/19 16:23:05

I suspect your provider has the port blocked or that microsoft have your ip address in a blacklist and have banned it. If you cannot connect to it using telnet then the problem is most likely external to you though if you have OUTPUT chain rules in iptables then they might be blocking it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply