Tuesday 10 November 2015

Paessler: Email Round Trip Monitoring


Two new "Email Round Trip Monitoring" sensors ensure the end-to-end delivery of emails and make it possible to monitor availability and performance of a complete email delivery process.

<< How does it work? >>
There are two new sensor types for this task:
1. SMTP & IMAP Round Trip Sensor
2. SMTP & POP3 Round Trip Sensor
Both initially deliver an email to a mail server using SMTP. Afterwards a mailbox is scanned using POP3 or IMAP until the email arrives. The graph shows a sample configuration:
Step 1: PRTG delivers an email via the SMTP protocol to a mail server (just like an email client).
Step 2: The SMTP server delivers the email to a POP3 server (which can be located at a remote site, in your local LAN or on the same server as well).
Step 3: Every few seconds PRTG retrieves emails from the POP3 server until the test email arrives.
The test email contains a unique code in the topic which is used to identify the email (e.g. "PRTG7 Roundtrip Mail: {6D136420-5A3E-46CF-871A-1DAF0C4F3D5D}").

<< Recommended Configuration >>
Here is a simple concept to check delivery of email out of and into your organization:
1. Create a dedicated email account for this test in your mail system.
2. Set up an external email account (hosted mail server, freemailer, etc.) that delivers all emails back to an email account in your organization.
3. Set up PRTG's round trip sensor to send an email to the external email account using your LAN's mail server and then check for the mailbox on your mail system for arrival of the email.
With this technique you are testing multiple aspects of your email server setup as long as the sensor shows a green light:
1. Your email server accepts emails via SMTP.
2. Emails are being sent to the outside world (which means that your internet connection works, MX lookups for email delivery work, etc.).
3. Emails from external mail server can be delivered into your mail system (this includes that the MX records for your domain are correct, that your mail server can be reached from the outside world, that your email filtering is working, etc.).
4. Emails can be retrieved using POP3 (or IMAP).

<< Conclusion >>
These two new sensor types are a great tool to ensure delivery of email from and to your mail servers. Compared to the standard SMTP, POP3 and IMAP sensors - which only check the availability of these services - the two new sensor types actually monitor the complete transaction from accepting the mail on the first email server to delivery of the mail on the final POP3/IMAP server.

<< Sample Configuration >>
I have configured a SMTP & IMAP Round Trip Sensor between Microsoft Exchange and Google Mail. Here are the steps:
1. Setup the Receive Connector with Exchange Management Console


2. Create an Exchange account
3. Create an Gmail account
4. Change account access for less secure apps by going to My Account. In the "Less secure apps" section, next to "Access for less secure apps," select Turn on.
5. Required settings for the sensor:
-- Email Settings --
From: < Exchange email address >
To: < Gmail email address >
HELO Ident: < Exchange server >

-- Step 1: Send Email to Parent Device Using SMTP --
Port: 25
Timeout for SMTP Connection (Sec.): 300
SMTP Authentication Type: None
Additional Text for Email Subject: IMAP Roundtrip

-- Transport-Level Security --
SMTP Specific: Use Transport-Level Security if available using StartTLS (default)

-- Step 2: Check An IMAP Mailbox Until Email Arrives --
IP Address/DNS Name: imap.gmail.com
Mailbox: Ibox
Port: 993
Connection Interval (Sec.): 10
Maximum Trip Time (Sec.): 300
Username: < Gmail email address >
Password: < Gmail password >
Search Method: Search email directly (default)

-- Transport-Level Security --
SMTP Specific: Use Transport-Level Security if available

No comments:

Post a Comment