Unable to connect to smtp.zoho.com port 465/587

I recently registered with Linode.

I have my domain's emails configured with zoho mail. I am trying to send the emails using java code through zoho.com but it gives me error connection timeout connecting to smtp.zoho.com. I have tried both ports 465 and 587 for zoho smtp but error is same. What could be the problem?

2 Replies

Tried it through Gmail as well but error is same

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1247)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:340)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at Gmail.main(Gmail.java:38)

@pakfans If you've recently registered, you'll need to reach out to Linode via a Support ticket because new accounts have SMTP port restrictions in place. the below Community Question explains the reasons in a bit more detail.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct