Configuring and Integrating MAPI

Similar documents
Migrating Cirrus. Revised 7/19/2007

Configuring and Integrating JMX

Configuring WMI on Windows Vista and Windows Server 2008 for Application Performance Monitor

SolarWinds Technical Reference

Configuring and Integrating Oracle

SolarWinds Technical Reference

SolarWinds Toolset Migrating Guide

DameWare Server. Administrator Guide

SolarWinds Technical Reference

SolarWinds Technical Reference

SolarWinds Technical Reference

SolarWinds Migrating SolarWinds NPM Technical Reference

Using SolarWinds Orion for Cisco Assessments

SOLARWINDS ORION. Patch Manager Evaluation Guide for ConfigMgr 2012

SolarWinds Technical Reference

SolarWinds. Packet Analysis Sensor Deployment Guide

Basic Exchange Setup Guide

Copyright 2015 SolarWinds Worldwide, LLC. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified,

SolarWinds Technical Reference

SolarWinds Orion Integrated Virtual Infrastructure Monitor Supplement

SolarWinds Toolset Quick Start Guide

CA Nimsoft Monitor Snap

SolarWinds Technical Reference

Installation and Configuration Guide

RoomWizard Synchronization Software Manual Installation Instructions

Table of Contents. Contents

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

SOLARWINDS ORION. Patch Manager Evaluation Guide

Spotlight on Messaging. Evaluator s Guide

About Archiving for Microsoft Exchange Server

4.0. Offline Folder Wizard. User Guide

ArcMail Technology Defender Mail Server Configuration Guide for Microsoft Exchange Server 2003 / 2000

SolarWinds Technical Reference

Dell Client Profile Updating Utility 5.5.6

Symantec AntiVirus Corporate Edition Patch Update

Sophos for Microsoft SharePoint startup guide

Basic Exchange Setup Guide

AKIPS Network Monitor User Manual (DRAFT) Version 15.x. AKIPS Pty Ltd

Veeam Task Manager for Hyper-V

CA Nimsoft Monitor. Probe Guide for URL Endpoint Response Monitoring. url_response v4.1 series

Server Installation Guide ZENworks Patch Management 6.4 SP2

Administration Quick Start

MobileStatus Server Installation and Configuration Guide

SolarWinds. Understanding SolarWinds Charts and Graphs Technical Reference

Sage 200 Web Time & Expenses Guide

Dell One Identity Cloud Access Manager How to Configure Microsoft Office 365

Enterprise Vault Installing and Configuring

Omniquad Exchange Archiving

Archiving User Guide Outlook Plugin. Manual version 3.1

CA Performance Center

Contents Notice to Users

2.0. Quick Start Guide

Sample Configuration: Cisco UCS, LDAP and Active Directory

Web Remote Access. User Guide

SolarWinds Technical Reference

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

AKIPS Network Monitor Installation, Configuration & Upgrade Guide Version 15. AKIPS Pty Ltd

Novell ZENworks Asset Management 7.5

NETWRIX EVENT LOG MANAGER

Microsoft Dynamics GP. Workflow Installation Guide Release 10.0

Copyright 2014 SolarWinds Worldwide, LLC. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified,

IBM WebSphere Partner Gateway V6.2.1 Advanced and Enterprise Editions

Erado Archiving & Setup Instruction Microsoft Exchange 2007 Push Journaling

Using SolarWinds Log and Event Manager (LEM) Filters and Alerts

How To Archive A Mail From A Mailbox On A Server On A Password Protected (Smtp) On A Pc Or Mac (Mailbox) On An Ipa (For A Password Saf ) On Your Pc Or Ipa On A Mac

Netwrix Auditor for Windows Server

Installation Steps on Desktop Clients

Symantec Enterprise Vault

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

POLICY PATROL MFT. Manual

Forms Printer User Guide

NETWRIX EVENT LOG MANAGER

How to Secure a Groove Manager Web Site

Symantec Enterprise Vault Technical Note. Troubleshooting the Monitoring database and agents. Windows

NETWRIX FILE SERVER CHANGE REPORTER

Configuring, Customizing, and Troubleshooting Outlook Express

White Paper. Installation and Configuration of Fabasoft Folio IMAP Service. Fabasoft Folio 2015 Update Rollup 3

How To Install Caarcserve Backup Patch Manager (Carcserver) On A Pc Or Mac Or Mac (Or Mac)

8.7. Resource Kit User Guide

TIBCO Spotfire Automation Services 6.5. Installation and Deployment Manual

Sophos Enterprise Console server to server migration guide. Product version: 5.1 Document date: June 2012

Installation Manual UC for Business Unified Messaging for Exchange 2010

HELP DOCUMENTATION SSRPM WEB INTERFACE GUIDE

Manual POLICY PATROL SECURE FILE TRANSFER

Version 1.7. Inbound Integration (POP3 and IMAP) Installation, Configuration and User Guide. Last updated October 2011

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

Application Performance Monitoring for WhatsUp Gold v16.1 Getting Started Guide

Quick Install Guide. Lumension Endpoint Management and Security Suite 7.1

Protected Trust Setup Guide for Brother MFC Devices

Configuration Task 3: (Optional) As part of configuration, you can deploy rules. For more information, see "Deploy Inbox Rules" below.

MadCap Software. Upgrading Guide. Pulse

Migrating Exchange Server to Office 365

M86 Authenticator USER GUIDE. Software Version: Document Version:

Archive Attender Version 3.5

Microsoft Dynamics GP Release

Resonate Central Dispatch

Transcription:

Configuring and Integrating MAPI The Basics of MAPI 3 The MAPI User Experience Monitor in SAM 4 Troubleshooting MAPI 7 This document includes basic information about MAPI and its role with SolarWinds SAM.

2 Configuring and Integrating MAPI Copyright 1995-2012 SolarWinds. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified, decompiled, disassembled, published or distributed, in whole or in part, or translated to any electronic medium or other means without the written consent of SolarWinds. All right, title and interest in and to the software and documentation are and shall remain the exclusive property of SolarWinds and its licensors. SolarWinds Orion, SolarWinds Cirrus, and SolarWinds Toolset are trademarks of SolarWinds and SolarWinds.net and the SolarWinds logo are registered trademarks of SolarWinds All other trademarks contained in this document and in the Software are the property of their respective owners. SOLARWINDS DISCLAIMS ALL WARRANTIES, CONDITIONS OR OTHER TERMS, EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, ON SOFTWARE AND DOCUMENTATION FURNISHED HEREUNDER INCLUDING WITHOUT LIMITATION THE WARRANTIES OF DESIGN, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SOLARWINDS, ITS SUPPLIERS OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES, WHETHER ARISING IN TORT, CONTRACT OR ANY OTHER LEGAL THEORY EVEN IF SOLARWINDS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Microsoft and Windows 2000 are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Graph Layout Toolkit and Graph Editor Toolkit 1992-2001 Tom Sawyer Software, Oakland, California. All Rights Reserved. Portions Copyright ComponentOne, LLC 1991-2002. All Rights Reserved. Document Revised 11/8/2012- DJR

Configuring and Integrating MAPI 3 The Basics of MAPI Messaging Application Programming Interface (MAPI) is a Microsoft Windows program that enables you to send email from within a Windows application. Programs that use MAPI include word processors, spreadsheets, and graphics applications. Programmers who are using Microsoft's Active Server Page (ASP) technology access MAPI by using Microsoft's Collaboration Data Objects (CDO). The CDO library comes with Microsoft's Internet Information Server (IIS). MAPI functions can be accessed by Visual Basic programmers. CDO - http://www.microsoft.com/download/en/details.aspx?id=1004 A "session" is a specific connection between the client and the MAPI program. MAPI defines the following three services: Address book: A database that contains addressing information. Transport: Supports communication between different devices. Message store: Stores messages that consists folders and subfolders. Simple MAPI is a subset of 12 functions which enable developers to add basic messaging functionality. Extended MAPI allows complete control over the email system. Note: With regard to the SAM monitor, this document will concentrate only on the mail function.

4 Configuring and Integrating MAPI The MAPI User Experience Monitor in SAM This component monitor sends an email from your SMTP mail server to your Microsoft Exchange Server Mailbox and measures the time it takes to complete the trip. You can use this component monitor to measure the performance of Outlook. This response time is measured in milliseconds. The Exchange Server computer uses port 135 for client connections to the RPC endpoint mapper service. After a client connects to a socket, the Exchange Server allocates the client two random TCP ports above 1024 used to communicate with the directory and the information store. For a complete list of network ports used by Microsoft Server Products, refer to the following article: http://technet.microsoft.com/en-us/library/bb331973.aspx What credentials should a user use? User credentials must be valid for both the Exchange server mailbox and the SAM server. This means that the SAM server and Exchange server must be in the same domain and the probe must use domain credentials. Why does the profile have to be able to log in to the SAM server? Because the probe uses an external.exe module SolarWinds.APM.MAPI.exe. Meaning, user impersonation on the SAM server is needed to have ability to run external process. Install the MAPI Client on the SolarWinds SAM Server This component monitor requires you to install the Microsoft Exchange Server MAPI Client and Collaboration Data Objects on your SolarWinds SAM server. You can download the MAPI Client from: The Microsoft Download Center. http://www.microsoft.com/downloads/details.aspx?familyid=e17e7f31-079a-43a9- BFF2-0A110307611E This component monitor does not compute a statistic. The response time is the difference between the time SolarWinds SAM sends the email and the time that it is received by the recipient. Following is an illustration of the MAPI monitor. To expose the fields, as illustrated below, click the [+] to the left of the component monitor name. 4 Index

Configuring and Integrating MAPI 5 What the MAPI monitor does: 1. This component monitor waits for the email to arrive based on the default job timeout of 20 minutes. If the email does not arrive within this period, SolarWinds SAM marks the monitor as Down. 2. The monitor goes through the following steps with respect to the mail flow: a. Sends an email to the user mailbox via SMTP. The email has a unique temporary subject name that starts with APM_prefix. b. Connects to the user mailbox through MAPI, then searches the emails by Subject. c. If it does not find the email it is looking for, it waits and then searches again. It will stop when: 1. It finds the email; 2. The timeout is reached; 3. The maximum number of attempts is reached. d. Once it finds the email, the monitor deletes it from the user inbox. e. The monitor collects the total round trip time for the email and compares it with the thresholds set. f. Once it knows the round trip time, status is given according to where it falls with regard to the thresholds set. If the email is not found within the timeout or the maximum number of attempts, or SMTP or MAPI reported an error, SolarWinds SAM will mark the monitor as down. 3. Emails are posted using SMTP. If the MAPI probe works, emails will be deleted successfully, if not, emails will accumulate. 4. It is not currently possible to use the monitor without SMTP and send the email from the same server the monitor is running on via MAPI. Field Descriptions of the MAPI Monitor: Description This field provides a default description of the monitor. You have the ability to override the default description by adding to or replacing the text, which will then be automatically saved. The variable to access this field is ${UserDescription}. Enable Component Determines whether the component is enabled. Credential for Monitoring Select a credential that is both a user who can log on to the SolarWinds SAM server, and that has an Exchange account on the MAPI server. If the credential you need is not already present in the credentials list, use the Quick Credentials section to add a new credential. Send Email From This field allows you to specify the From address of the test email message. Send Email To This field allows you to specify the recipient of the test email message. The recipient should have a mailbox on the MAPI server you are monitoring. MAPI Profile Name Allows you to specify the name of the MAPI profile SMTP Server This field allows you to specify the SMTP server that sends the test email message.

6 Configuring and Integrating MAPI SMTP Port This field is the port number used for SMTP sessions. The default value is 25. Use Credentials for SMTP This checkbox allows you to use the user name and password from Credentials for Monitoring to connect to SMTP servers that support or require authentication. SMTP Encryption This list allows you to select an encryption protocol to connect to SMTP servers that support SSL or TLS encryption. Response Time Warning Threshold This field allows you to set the warning threshold conditions based on the response time. The response time is the time in milliseconds it takes SolarWinds SAM to determine that a component is not Down and to retrieve any statistical data. Response Time Critical Threshold This field allows you to set critical threshold conditions based on the response time. The response time is the time in milliseconds it takes SolarWinds SAM to determine that a component is not Down and to retrieve any statistical data. User Notes This field allows you to add notes for easy reference. You can access this field by using the variable, ${UserNotes}. 6 Index

Configuring and Integrating MAPI 7 Troubleshooting MAPI The following procedures will help you troubleshoot MAPI issues relating to SAM Note: Do not use the same mailbox for multiple MAPI UX monitors. Doing so can cause the MAPI monitor to intermittently fail. MAPI Probe Diagnostic Checklist Install CDO or Outlook CDO can be found here: http://www.microsoft.com/download/en/details.aspx?id=1004. If you would like to install CDO, uninstall your entire MS Office installation. Uninstalling Outlook only is not sufficient. The MAPI probe may be unstable when running with Outlook installed. If this is the case, uninstall Office then download and install CDO. Check the MAPI profile The MAPI profile does not need to exist. The probe should create it and also update the existing profile with the required settings. However, there may be issues with an existing or created profile. The default Outlook profile is called Outlook. If this profile does not work, create a profile with the MFCMapi free tool, availabe at: http://mfcmapi.codeplex.com/. 1. In the MFCMapi tool, navigate to Profile > Advanced Profile > Launch Profile Wizard, keeping the defaults on the first dialog. 2. Set the profile as default. 3. Update the profile name of the newly created profile in the MAPI probe. Use MFCMapi to find the profile name: Navigate to Profile > Show Profiles for verification. Check probe settings Check that Send Email To: is correctly filled out in the component settings. The Mapi Profile Name must match the actual profile name. Use the MFCMapi tool if you are not sure about the name. Credentials used for the probe must be eligible to open the mailbox. It is required to add the user to the local Administrators group, otherwise the probe can fail with insufficient privileges. Mailbox recommendations Use a clean mailbox created for monitoring purposes. A mailbox full of email is problematic as it takes a lot more time for the probe to search through all of the emails. The MAPI probe deletes obsolete, undeleted messages sent by the probe in the past to keep the mailbox clean.

8 Configuring and Integrating MAPI Advanced Troubleshooting SolarWinds.APM.MAPI.exe Command Line Arguments To analyze issues with the MAPI probe more closely, run the MAPI executable from the command line. The following arguments can be used: Command Explanation -s <subject> The subject text of searched in an email. Use quotes for a subject containing spaces. -server <server_name> Server hostname / IP address. -t <timeout> Timeout in ms for watchdog. -p <profile_name> Exchange profile name. -u <user_name> Exchange user name -attempts <count> Maximum number of search attempts. -debug Turns on debug logging. -removeall Remove all historical messages from the MAPI probe. Messages from the MAPI probe get stuck in the mailbox if the probe fails to delete them. -w Wait time between search attempts. New in SAM 5.0: -subjectmatchsubstring: This enables a substring subject match. The target mail subject is expected to match the substring of the subject setting. An exact match is expected by default. This is useful for matching emails returned by bouncers, which can add Re: to the mail subject. Note: This command is not listed in configuration file. For example: SolarWinds.APM.MAPI.exe -debug -s "test subject" -u domain\user.name -server exchange -p Outlook -t 10000 Important: Run the executable as the user owning the mailbox. To do this, start a new cmd.exe and run the following command. runas /user:domain\user.name cmd.exe This will ask for a password and start a new cmd.exe with that user account. Test the MAPI executable from this console. 8 Index

Configuring and Integrating MAPI 9 The MAPI probe is also configurable via the SolarWinds.APM.MAPI.exe.xml file. Settings in this file take precedence over any command line arguments. See the following: <settings> <!-- c:\logs will not be made by this program, it must exist to enable logging --> <logdirectory>c:\logs</logdirectory> <logenable>false</logenable> <logkeepall>true</logkeepall> <enablewatchdog>true</enablewatchdog> <mapimaxwaitlogoff>2500</mapimaxwaitlogoff> <dologoff>true</dologoff> <!-- <debug>false</debug> <removeall>true</removeall> <subjectpattern>^apm_mapitestemail GUID:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9afA-F]{4}-[0-9a-fA-F]{12}$</subjectpattern> <delaybetweenattempts>500</delaybetweenattempts> --> </settings> Command Logdirectory Logenable Logkeepall Enablewatchdog Mapimaxwaitlogoff Dologoff Debug Removeall Subjectpattern Explanation Path to the directory where logs from the MAPI executable will be written. This directory must exist otherwise no logs will be written. Enable log file logging. Set false for deleting the log file after a successful run, (i.e. email was found and deleted; all log files are preserved by default (true).) Enable or disable watchdog which kills the MAPI processing thread if it does not finish in a given time. Prevents processing for a long time. Number of milliseconds to wait for logoff before the MAPI process ends. This setting is used after an error during MAPI processing and between attempts to retrieve probe mail. Set to false to skip logoff and closing the MAPI session. True for debugging information and detailed logging to the log file or console. Remove all obsolete messages from the mailbox matching the subjectpattern regular expression. The SAM probe always tries to enable this setting from the command line. Regular expression pattern for deleting obsolete probe messages. Use together with removeall =true Delaybetweenattempts Delay in milliseconds.

10 Configuring and Integrating MAPI New in SAM 5.0 (not listed in the configuration file): subjectmatchsubstring true/false setting (false by default) to match just the substring of the subject. This is useful for matching emails returned by bouncers, which can add Re: to the mail subject. During initial analysis, it is typically required to update logdirectory (or create C:\logs) and set logenable to true. Other arguments are passed from the command line. 10 Index