IBM Support

Configuring Email Listener for MS Exchange 2007 Using IMAP Protocol

Troubleshooting


Problem

Unable to test connectivity before attempting to configure email listener in the email listener application.

Symptom

Email listener configuration 

Resolving The Problem

Go to Exchange 2007 and configure MS Exchange to allow login "plain text":
  1. Exchange Management Console
  2. Go to the Server Configuration
  3. select Client Access
  4. 4. Right click on IMAP 4 protocol, Select Properties
  5. Go to Authentication tab
  6. Select "Plain Text logon (Basic authentication). No TLS connection is required for the client to authenticate to the server"
  7. click Apply, click OK


Test the connectivity between app server and mail server using TestEmail.bat under \\IBM\SMP\maximo\tools\maximo\internal

For Websphere, modify the TestMail.bat with wordpad. Add mail-impl.jar into the CLASSPATH of the WebSphere's application server folder (assume that websphere has been installed under C:\IBM\WebSphere)

set CLASSPATH=C:\IBM\WebSphere\AppServer\lib\mail-impl.jar;..\..\..\applications\maximo\lib\j2ee.jar;.;..\classes



For Weblogic, download "mail.jar" and "activation.jar“ from http://www.java2s.com/Code/Jar/CatalogJar.htm and copy the files to \\IBM\SMP\maximo\tools\java\jre\lib\ext


Open command prompt, navigate to ibm\SMP\Maximo\tools\maximo\internal and run the command below:

testemail hostname port email_account password imap true

where
host name can be a fully qualified host name
port = 143
email account is the email account to be specified in the email listener application
(do not include @companyname.com in the email account)
account password = password
protocol = imap
debug = true

Output for testmail.bat:

** Email test: Connected to e-mail account email_account
DEBUG: setDebug: JavaMail version 1.3.2
DEBUG: getProvider() returning javax.mail.Provider[STORE.imap.com.sun.mail.imap.IMAPStore.Sun Microsystems. Inc]
The Microsoft Exchange IMAP4 service is ready
*CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAME SPACE LITERAL*

If it says "connected to e-mail account" in the output then that means the connection is ok and the info entered in the email listener app is correct.

You can now proceed to configure a listener through the E-mail Listener application"

If the testemail.bat is successful, then create the email listener in Maximo

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSWK4A","label":"Maximo Asset Management Essentials"},"ARM Category":[{"code":"","label":""}],"Platform":[{"code":"","label":"All"}],"Version":"All Version(s)","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
12 August 2020

UID

swg21389154