<%NUMBERING1%>.<%NUMBERING2%>.<%NUMBERING3%> PRTG Manual: IMAP Sensor

The IMAP sensor monitors an email server via the Internet Message Access Protocol (IMAP).

i_round_blueThe sensor can check the content of emails for certain keywords. This way, you can use the sensor to monitor backup solutions via emails that are sent by these solutions. For more information, see the Knowledge Base: How can I monitor my backup software to be sure backup succeeded last night?

IMAP Sensor

IMAP Sensor

i_square_cyanFor a detailed list and descriptions of the channels that this sensor can show, see section Channel List.

Sensor in Other Languages

  • Dutch: IMAP
  • French: IMAP
  • German: IMAP
  • Japanese: IMAP
  • Portuguese: IMAP
  • Russian: IMAP
  • Simplified Chinese: IMAP
  • Spanish: IMAP

Remarks

  • This sensor does not support Secure Remote Password (SRP) ciphers.
  • This sensor does not support Microsoft 365 mailboxes. If you want to monitor a Microsoft 365 mailbox, use the Microsoft 365 Mailbox sensor.
  • This sensor only supports IPv4.
  • This sensor has a medium performance impact.

Basic Sensor Settings

Basic Sensor Settings

Basic Sensor Settings

Setting

Description

Sensor Name

Enter a name to identify the sensor. By default, PRTG shows this name in the device tree, as well as in alarms, logs, notifications, reports, maps, libraries, and tickets.

i_round_blueIf the name contains angle brackets (<>), PRTG replaces them with braces ({}) for security reasons. For more information, see the Knowledge Base: What security features does PRTG include?

Parent Tags

The tags that the sensor inherits from its parent device, parent group, and parent probe.

i_round_blueThis setting is for your information only. You cannot change it.

Tags

Enter one or more tags. Confirm each tag with the Spacebar key, a comma, or the Enter key. You can use tags to group objects and use tag-filtered views later on. Tags are not case-sensitive. Tags are automatically inherited.

i_round_blueIt is not possible to enter tags with a leading plus (+) or minus (-) sign, nor tags with parentheses (()) or angle brackets (<>).

i_round_blueFor performance reasons, it can take some minutes until you can filter for new tags that you added.

The sensor has the following default tags that are automatically predefined in the sensor's settings when you add the sensor:

  • imapsensor
  • mailsensor

Priority

Select a priority for the sensor. This setting determines the position of the sensor in lists. The highest priority is at the top of a list. Choose from the lowest priority (i_priority_1) to the highest priority (i_priority_5).

Connectivity

Connectivity

Connectivity

Setting

Description

Timeout (Sec.)

Enter a timeout in seconds for the request. Enter an integer. The maximum timeout value is 900 seconds (15 minutes).

i_round_blueIf the reply takes longer than this value, the sensor cancels the request and shows a corresponding error message.

Port

Specify the port that the sensor uses for the IMAP connection. The default port for unsecure connections is 143 and the default port for secure connections is 993. The actual setting depends on the server you connect to. Enter an integer.

i_round_blueWe recommend that you use the default value.

i_round_blueIf the connection is unsuccessful, try a different port number.

Transport-Level Security

Define how the sensor handles the security of the connection:

  • Use transport-level security if available using StartTLS (default): Try to connect to the server via a Secure Sockets Layer (SSL)/Transport Layer Security (TLS) secured connection and StartTLS. If the server does not support this, the sensor tries to connect without connection security.
  • Use transport-level security if available: Try to connect to the server via an SSL/TLS-secured connection. If the server does not support this, the sensor tries to connect without connection security.
  • Enforce transport-level security using StartTLS: Try to connect to the server via an SSL/TLS-secured connection and StartTLS. If the server does not support this, the sensor shows the Down status.
  • Enforce transport-level security: Try to connect to the server via an SSL/TLS-secured connection. If the server does not support this, the sensor shows the Down status.

i_round_blueIf the sensor connects to a server via StartTLS, the connection is first established without connection security. After the connection has been established, the sensor sends a certain command (StartTLS) over the unsecured connection to negotiate a secure connection via SSL/TLS.

i_round_blueIf the sensor does not use StartTLS, the negotiation of a secure connection happens immediately (implicitly) so that no commands are sent in unencrypted plain text. If no secure connection is possible, no communication takes place.

Sensor Behavior

Sensor Behavior

Sensor Behavior

Setting

Description

Email Processing

Define if the sensor additionally checks the content of all incoming emails:

  • Do not process emails (default): Only check the availability of the IMAP server and check if a login is successful. Do not process any emails in the IMAP email account.
  • Count emails in the mailbox: Count the emails in the mailbox.
  • Process emails in the mailbox: Log in to the IMAP email account and check the emails that it contains. Define further options below.

Result Handling

Define what PRTG does with the sensor result:

  • Discard result (default): Do not store the sensor result.
  • Store result: Store the last sensor result in the \Logs\sensors subfolder of the PRTG data directory on the probe system. The file names are Result of Sensor [ID].txt and Result of Sensor [ID].Data.txt. This setting is for debugging purposes. PRTG overwrites these files with each scanning interval.

i_podThis option is not available when the sensor runs on the hosted probe of a PRTG Hosted Monitor instance.

i_round_blueIn a cluster, PRTG stores the result in the PRTG data directory of the master node.

Authentication

Authentication

Authentication

Setting

Description

User Name

Enter a user name for IMAP authentication. Enter a string.

Password

Enter a password for IMAP authentication. Enter a string.

i_round_redThe password must not contain spaces, percent signs (%), or the character combination !*.

Folder Name

Enter the name of a folder in the mailbox (for example, the IMAP folder) that the sensor checks. The default value is Inbox. Unless you set a last message date check below, the sensor always looks at all emails contained in the mailbox.

i_round_redMake sure that you do not manually edit emails in this mailbox with a different email client because this can result in malfunctions of this sensor's email identification.

Filter Emails in Inbox

i_round_blueThis settings section is only visible if you select Process emails in the mailbox.

Filter Emails in Inbox

Filter Emails in Inbox

Setting

Description

Only Include Emails with Matching "From"

Define if you want to check the "From" field of the emails:

  • Do not check (default): Do not process this field in emails.
  • Check using simple string search: Process this field in emails using a simple string in plain text.
  • Check using regular expression: Process this field in emails using a regular expression (regex).

i_round_blueIn the search, the sensor scans all emails from the newest to the oldest.

i_round_bluePRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions.

i_round_redThe sensor finishes the scan with the first match. This means that after it finds a match in one email, the sensor does not perform any further checks in older emails.

Search for

This setting is only visible if you select Check using simple string search or Check using regular expression above.

Enter the email address or the regular expression that the "From" field of the email must contain or match.

Only Include Emails with Matching "Subject"

Define if you want to check the "Subject" field of the emails:

  • Do not check (default): Do not process this field in emails.
  • Check using simple string search: Process this field in emails using a simple string in plain text.
  • Check using regular expression: Process this field in emails using a regular expression (regex).

i_round_blueIn the search, the sensor scans all emails from the newest to the oldest.

i_round_bluePRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions.

i_round_redThe sensor finishes the scan with the first match. This means that after it finds a match in one email, the sensor does not perform any further checks in older emails.

Search for

This setting is only visible if you select Check using simple string search or Check using regular expression above.

Enter the simple string in plain text or the regex that the "Subject" field of the email must contain or match.

Only Include Emails with Matching Email Body

Define if you want to check the body of the emails:

  • Do not check (default): Do not process the email body.
  • Check using simple string search: Process the email body using a simple string in plain text.
  • Check using regular expression: Process the email body using a regex.

i_round_blueIn the search, the sensor scans all emails from the newest to the oldest.

i_round_bluePRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions.

i_round_redThe sensor finishes the scan with the first match. This means that after it finds a match in one email, the sensor does not perform any further checks in older emails.

Search for

This setting is only visible if you select Check using simple string search or Check using regular expression above.

Enter the simple string in plain text or the regex that the body of the email must contain or match.

Only Include Recent Emails

Define if you want to check all emails in the mailbox or only mails that were received during the last few hours:

  • Do not check message age (default): Check all emails that the mailbox contains.
  • Emails must be younger than: Only check emails that were received during the last few hours. Define below.

Maximum Age (Hours)

This setting is only visible if you select Emails must be younger than above.

Enter the maximum age in hours. The sensor only processes emails that are younger. Enter an integer.

If No Email Matches the Above Filters

Define which status the sensor shows if it does not find any email in the mailbox that matches the above filters:

  • Set sensor to up status (default): Show the Up status if the sensor does not find any email in the mailbox that matches the filters.
  • <%C_Set_sensor_to_warning_status%>: Show the Warning status if the sensor does not find any email in the mailbox that matches the filters.
  • <%C_Set_sensor_to_down_status%>: Show the Down status if the sensor does not find any email in the mailbox that matches the filters.

Message

This setting is only visible if you select <%C_Set_sensor_to_warning_status%> or <%C_Set_sensor_to_down_status%> above.

Define the message that the sensor shows if it does not find any matching emails.

Validate Latest Email

i_round_blueThis settings section is only visible if you select Process emails in the mailbox.

i_round_redThe sensor only validates the latest email that matches the above filters. If the sensor does not find a matching email, it does not perform any email validation.

Validate Latest Email

Validate Latest Email

Setting

Description

Set Sensor to Warning Status

Define in which cases the sensor shows the Warning status:

  • Never (default): Never show the Warning status because of email content.
  • Always: Always show the Warning status if it could identify any emails.
  • If subject contains: Show the Warning status if the subject of the email contains the Search String you define below.
  • If subject does not contain: Show the Warning status if the subject of the email does not contain the Search String you define below.
  • If email body contains: Show the Warning status if the body of the email contains the Search String you define below.
  • If email body does not contain: Show the Warning status if the body of the email does not contain the Search String you define below.

Search Method

This setting is only visible if you select If subject contains, If subject does not contain, If email body contains, or If email body does not contain above.

Define the method with which you want to search for the respective condition:

  • Simple string search (default): Search the email subject or body with a simple string in plain text.

i_round_blueThe characters * and ? work as placeholders. * stands for no number or any number of characters and ? stands for exactly one character. You cannot change this behavior. The literal search for these characters is only possible with a regex.

  • Regular expression: Search the email subject or body with a regex.

i_round_bluePRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions.

Search String

This setting is only visible if you select If subject contains, If subject does not contain, If email body contains, or If email body does not contain above.

Define the string that you want to search the email subject or body for. You can enter a simple string in plain text or a regex.

Warning Message

This setting is only visible if you select a "warning" condition above.

Define the message that the sensor shows for the Warning status.

Set Sensor to Down Status

Define in which cases the sensor shows the Down status.

  • Never (default): Never show the Down status based on email content.
  • Always: Always show the Down status if any emails could be identified.
  • If subject contains: Show the Down status if the subject of the found email contains the Search String you define below.
  • If subject does not contain: Show the Down status if the subject of the found email does not contain the Search String you define below.
  • If email body contains: Show the Down status if the body of the found email contains the Search String you define below.
  • If email body does not contain: Show the Down status if the body of the found email does not contain the Search String you define below.

Search Method

This setting is only visible if you select If subject contains, If subject does not contain, If email body contains, or If email body does not contain above.

Define the method with which you want to search for the respective condition:

  • Simple string search (default): Search the email subject or body with a simple string in plain text.

i_round_blueThe characters * and ? work as placeholders. * stands for no number or any number of characters and ? stands for exactly one character. You cannot change this behavior. The literal search for these characters is only possible with a regex.

  • Regular expression: Search the email subject or body with a regex.

i_round_bluePRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions.

Search String

This setting is only visible if you select If subject contains, If subject does not contain, If email body contains, or If email body does not contain above.

Define the string that you want to search the email subject or body for. You can enter a simple string in plain text or a regex.

Error Message

This setting is only visible if you select Always, If subject contains, If subject does not contain, If email body contains, or If email body does not contain above.

Define the message that the sensor shows for the Down status.

Based on Message Age, Set Sensor to Warning Status

Define if you want to check the age of the latest matching email in the mailbox:

  • Never (default): Do not check the age of the email.
  • If email is older than: Set the sensor to the Warning status if the found email is older than you define below.

Message Age (Hours)

This setting is only visible if you select the message age check above.

Enter the maximum age in hours. If the processed email is older, the sensor shows the Warning status. Enter an integer.

i_round_redMake sure you do not manually edit emails in this mailbox with a different email client because this can result in malfunctions of the message age check.

Sensor Display

Sensor Display

Sensor Display

Setting

Description

Primary Channel

Select a channel from the list to define it as the primary channel. In the device tree, the last value of the primary channel is always displayed below the sensor's name. The available options depend on what channels are available for this sensor.

i_round_blueYou can set a different primary channel later by clicking b_channel_primary below a channel gauge on the sensor's Overview tab.

Graph Type

Define how different channels are shown for this sensor:

  • Show channels independently (default): Show a graph for each channel.
  • Stack channels on top of each other: Stack channels on top of each other to create a multi-channel graph. This generates a graph that visualizes the different components of your total traffic.
    i_round_redYou cannot use this option in combination with manual Vertical Axis Scaling (available in the channel settings).

Stack Unit

This setting is only visible if you select Stack channels on top of each other above.

Select a unit from the list. All channels with this unit are stacked on top of each other. By default, you cannot exclude single channels from stacking if they use the selected unit. However, there is an advanced procedure to do so.

Inherited Settings

By default, all of these settings are inherited from objects that are higher in the hierarchy. We recommend that you change them centrally in the root group settings if necessary. To change a setting for this object only, click b_inherited_enabled under the corresponding setting name to disable the inheritance and to display its options.

i_square_cyanFor more information, see section Inheritance of Settings.

Scanning Interval

Scanning Interval

Scanning Interval

i_square_cyanFor more information, see section Root Group Settings, section Scanning Interval.

Schedules, Dependencies, and Maintenance Window

i_round_blueYou cannot interrupt the inheritance for schedules, dependencies, and maintenance windows. The corresponding settings from the parent objects are always active. However, you can define additional schedules, dependencies, and maintenance windows. They are active at the same time as the parent objects' settings.

Schedules, Dependencies, and Maintenance Window

Schedules, Dependencies, and Maintenance Window

i_square_cyanFor more information, see section Root Group Settings, section Schedules, Dependencies, and Maintenance Window (default).

Access Rights

Access Rights

Access Rights

i_square_cyanFor more information, see section Root Group Settings, section Access Rights.

Channel List

i_round_blueWhich channels the sensor actually shows might depend on the target device, the available components, and the sensor setup.

Channel

Description

Available

The response time

i_round_blueThis channel is the primary channel by default.

Downtime

In the channel table on the Overview tab, this channel never shows any values. PRTG uses this channel in graphs and reports to show the amount of time in which the sensor was in the Down state

Mailbox Size

The number of emails in the defined mailbox

More

i_square_blueKNOWLEDGE BASE

How can I monitor my backup software to be sure backup succeeded last night?

My IMAP sensor does not process HTML emails correctly using regex. What can I do?

Can I analyze multipart emails using the IMAP sensor?

My IMAP sensor does not find emails when I check for message date. What can I do?

What security features does PRTG include?