Testing connectivity between the application server and mail server

Testing connectivity between the application server and mail server allows you to check if the information you have entered in the E-mail Listener application is correct. You use the TestEmail.bat file to test connectivity.

Before you begin

If you use WebLogic Server, download the mail.jar file and the activation.jar file from a site for downloading open source Java code.

Procedure

  1. Navigate to the \IBM\SMP\maximo\tools\maximo\internal folder and download the TestEmail.bat file.
  2. Prepare to run the command.
    Application server Procedure
    WebSphere® Application Server
    1. Open the TestEmail.bat file in a text editor.
    2. Add the mail-impl.jar variable into the class path of the WebSphere Application Server folder by setting CLASSPATH=C:\IBM\WebSphere\AppServer\lib\mail-impl.jar; ..\applications\maximo\lib\j2ee.jar; ..\classes.
    WebLogic Server

    Copy the mail.jar file and activation.jar file to the\IBM\SMP\maximo\tools\java\jre\lib\text folder.

  3. Open a command prompt, navigate to the IBM\SMP\Maximo\tools\maximo\internal folder, and run the testemail hostname port email_account password protocol debug command.
  4. Check that the output contains the phrase connected to e-mail account.
  5. If the output does not contain the phrase, check the Java exception that is created. For example, the connection can fail if an invalid user name or invalid host name was entered.

Results

The TestEmail.bat file has the following output:
**Email text: 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*


Feedback