Your configuration will look for the hostname "mailhost" in the dns
domain of the same machine that the server runs on...  If this is a unix
box with a /etc/hosts of:
        127.0.0.1 localhost mailhost
it would explain this behavor.

Try changing the "mailhost" in the config file to "smtpabcd" and see if
the error remains the same.  If so, the config is not coming from where
you think it is :)

Propes, Barry L wrote:
> could it be your provider or network is blocking port 25 connections through 
> apps other than the standard email app used? i.e. your company might block 
> port 25 if not being accessed by LotusMail or Outlook.
> 
> -----Original Message-----
> From: Mike Peremsky [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 04, 2007 11:28 AM
> To: users@tomcat.apache.org
> Subject: Help required setting up smtp server
> 
> 
> I followed the example in the Tomcat JNDI docs on setting up and sending an 
> email (C:\apache-tomcat-5.5.23\webapps\tomcat-docs\jndi-resources-howto.html) 
> but am still receiving a javax.mail.MessagingException: Could not connect to 
> SMTPhost: localhost, port: 25
>    
>    
>   The strange thing is that I set the mail.smtp.host=mailhost in the 
> <resource> definition.
> 
>  
> ---------------------------------
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to