Does any body know why my java application is not picking up the changed
SMTPHOST IP address from etc\hosts file.

I have a java application which sends the email alerts out on daily basis. It is
using Javamail APIs. All the configuration info (e.g. SMTP server name, FROM
etc) is stored in seperate emailConf.properties file.
Everything is working fine.

Now I want to point my SMTP server variable to someother IP address. So I
changed it  in etc\hosts file as follows:

#172.16.212.101  swinet01.dtcc.com mailhost   ##This I was using before
172.16.212.10   mailhost                 ## This is new configuration

My emaiConf.properties file looks like:

smtpHost mailhost
from [EMAIL PROTECTED]

When I am running my java email application, it is complaining about SMTP
server. Exact error msg is as follows:

javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        javax.mail.SendFailedException: 551 swinet01.dtcc.com is not a
recognized domain name.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to