Previous Topic: HTTPS TestsNext Topic: LDAP Tests


IMAP Tests

The IMAP test monitors the amount of time required to log into a user account and download messages from the IMAP server. The IMAP protocol enables selective filtering and searching through mailboxes by using the SEARCH command.

Options and Arguments

IMAP tests require the following specific options and arguments:

Specify these options and arguments when you create or modify tests.

Example

Use this example to create a test that downloads all messages for the IMAPuser account at imapserver.yourdomain once every 300 seconds and deletes them after downloading them. The test waits up to 10 seconds for a successful response and calculates response time and availability statistics over the last 7200 seconds (2 hours).

To create a new test in a policy

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. From the Test Type list, select IMAP.
  3. In the Description field, specify IMAP_Test.
  4. In the Test Name field, specify Test IMAP Service.
  5. In the Test Interval field, specify 300.
  6. In the Test Timeout field, specify 10.
  7. In the Samples Per Interval field, specify 1.
  8. In the Statistics Window field, specify 7200.
  9. In the IMAP Server field, enter imapserver.yourdomain.
  10. In the IMAP Port field, accept the default of 143.
  11. In the User Name field, specify IMAPuser@server.domain.
  12. In the Password field, specify IMAP123.
  13. In the Download field, select Download All Messages.
  14. Select Delete Downloaded Messages.
  15. Accept defaults for all other fields.
  16. Click Save Test.

When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=60 
type=imap
desc="IMAP_Test." 
dest="imapserver.yourdomain.com:143" 
args="download=Download All Messages&delete=true" 
username="IMAPuser@server.domain" 
encoded=yes 
password="c4nrxzw" 
interval=300 
samples=1 
timeout=10 
window=7200 
tos=0 
limit=0 
status=active 
name="Test IMAP Service"
class=""
context=""
flags="1"
loglevel=1
}

For information about errors you may encounter when running IMAP tests, see IMAP Test Error Codes.