Hi Raymond... going to have a wild guess...
I dont think its tomcat... but for some reason the mail server is telling
tomcat to get lost.
Is it a microsoft mail server?..... ha ha... no just kidding.
Heres my theory.... check the DNS on "your" mail address.... I have a
feeling that if the mail server cannot resolve your mail address "domain"...
it will refuse the connection on a send.
... so if the DNS server is giving problems... your email goes to the
dogs... maybe.
----- Original Message -----
From: "Raymond Holguin" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Friday, May 04, 2007 9:37 PM
Subject: Tomcat randomly cannot connect to SMTP host
Hello,
I have tomcat 5.0.28 running on my Linux machine, and all my
applications running under this tomcat experience the same problem at the
same time which is why I believe it to be a tomcat issue.
When my applications attempt to send out an email I get this error message
(Mail server connection failed; nested exception is
javax.mail.MessagingException: Could not connect to SMTP host: xxxxxx,
port: 25; nested exception is: java.net.ConnectException: Connection
refused)
The SMTP server is fine, because I can use it from other applications not
on that tomcat server. I can also telnet into the SMTP server just fine
from that same machine, so i don't believe its a server/port blocking
issue on the OS or hardware level. The only way I am able to resolve the
problem is to restart Tomcat. Once Tomcat is restarted, then all
operation with emailing works fine again. I cannot seem to force the
issue to happen so i don't know how reproduce it on demand, even though I
know that would help in solving the issue. This problem just seems to
come up randomly and wont go away until I restart tomcat.
If anyone can please help me solve this issue that would be greatly
appreciated. I have important applications running on this machine and
its a great inconvenience to those using the applications when this
problem comes up.
Thank you
-Ray
--
------------------------------------------------------------------------
Raymond Holguin
Programmer Analyst
College of Humanities, Arts, and Social Sciences
Tel: (951) 827-6212
Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]