Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Hello Bathory,
How will we know that 587 is closed or open?
If you can't connect to a remote server on port 587, while you know that this port is publicly open, that means the port in question is closed.
Try "telnet smtp.gmail.com 587" to verify with another server also known to accept connections on that port.
FYI I can connect to both servers on port 587 from here...
Hello Bathory,
How will we know that 587 is closed or open?
That's what telnet command is telling you.
Try this; capture output of telnet command from the hosted server where it times out. Then capture output of same telnet command from your personal machine or another machine that is not on same hosted providers network, then contact the provider with both captured output.
Additionally, do you have to use the office365 to send emails?
From your CentOS machine, you can use mail command:
Code:
echo "test email from centos machine" | mail -s Subject -r replytoemail@yourdomain.com your_valid_email@yourdomain.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.