LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2009, 09:06 AM   #1
Raakh
Member
 
Registered: May 2007
Posts: 128

Rep: Reputation: 15
Could not connect to SMTP host:


Hello,

I bought a dedicated server:
Red Hat
Apache with mod_jk connector to Tomcat
Qmail
==============

Normal mails are fine when the server sends or receives but when am trying to send one message to our 20,000 website users with the help of JavaMail Program then getting following errors in tomcat/logs:

1) javax.mail.MessagingException: Could not connect to SMTP host: mail.domain.com, port: 25, response: -1

2) javax.mail.MessagingException: Could not connect to SMTP host: mail.domain.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused

I checked my code from different 2 Java Forums and they said that its not having any problem but the server needs to be configured properly

any help will be highly appreciated

Thanks & best regards

Last edited by Raakh; 07-02-2009 at 07:04 AM.
 
Old 07-03-2009, 02:26 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you try to send out 20k msgs at once, your ISP probably thinks you are spamming.
Try spreading them out time-wise.
Do you really need to do that anyway? How about putting the msg up on the web instead?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant Connect To SMTP On RH8 ombill Linux - Software 2 12-21-2003 02:26 AM
Can't connect to RedHat 9 SMTP server from XP bper Linux - Networking 1 10-22-2003 10:07 AM
Cannot connect to any SMTP Servers? DiZASTiX Linux - General 13 06-16-2003 02:07 AM
cannot connect to smtp.myhost.com aredshaw Linux - Networking 2 07-19-2002 04:52 PM
SMTP access via Smart host saravanan1979 Linux - Networking 17 05-30-2002 04:19 AM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration