JavaMail authentication with Microsoft Exchange Server fails when hosts are located in different domains
 Technote (troubleshooting)
 
Problem(Abstract)
WebSphere® Application Server JavaMail™ will interface properly with Microsoft® Exchange Server when they are in the same domain. However, when the Exchange Server is moved to another domain and proper steps are followed to secure Exchange against malicious mail servers from other domains, WebSphere Application Server fails to connect with the Exchange server with a generic relay exception such as:
DEBUG SMTP RCVD: 550 5.7.1 Unable to relay for <Your Email Address>
 
Cause
Microsoft Exchange Server requires extra authentication when connecting from JavaMail in a remote domain.
 
Resolving the problem
There is a defect fix that went into WebSphere Application Server v5.1.1.1 that allowed Custom Properties for JavaMail in the WebSphere Administrative Console to work properly. The Custom Properties can be found in the console at the bottom of the Resources->Mail Providers-><Your Mail Provider> screen.

Microsoft Exchange Server requires adding the property mail.smtp.auth and setting the value to true in the Custom Properties window.

Save the configuration and JavaMail will be able to send these credentials to an Exchange Server in another domain.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server
Operating system(s): Windows
Software version: 5.0.2.9
Software edition:
Reference #: 1192296
IBM Group: Software Group
Modified date: Dec 6, 2004