We help IT Professionals succeed at work.
Get Started

port 25 authentication

rauf_pats asked
Last Modified: 2010-05-18

Hi there

i am using a jsp page with a java bean to send email on the linux server on tomcat 5.5 .
when i use the free smtp server on my machine i am able to send mail using localhost
in place of smtp server .when i use my smtpserver i am not abl;e to send email.it gives me the error

javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.MessagingException: Could not connect to SMTP host: mail.moonmotors.co.nz, port: 25; nested exception is: java.net.ConnectException: Connection refused
when i try telnet hostname:25  i get the

could not open connection  to the host on port 23 connection failed .

what do u suggest .i wrote the web server host to keep my port 25 open .do u think that is the problem.

how ever few days back i did use javas smtpmailclient  to send mail and i didnt get any error with the smae
smtp server .

what u suggest i should be doing


Watch Question
Top Expert 2007
This problem has been solved!
Unlock 1 Answer and 28 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE