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: 455
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
Forum Moderator
Posts: 24046
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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply