BizTalk360 Content Size Monitoring

Preventing Mailbox Failures in BizTalk Integrations with BizTalk360’s Monitoring and Auto-Recovery

Published on : Jul 3, 2025

Category : BizTalk360 Update

Saranya

Author

Email remains a crucial channel for exchanging business data especially in industries like retail, logistics, and finance. BizTalk Server empowers organizations to build email-driven integration workflows using built-in adapters such as POP3 and Office 365 Mailbox Adapter. These adapters allow seamless email retrieval, parsing, and routing for further processing in enterprise systems

To ensure these critical workflows run smoothly, BizTalk360 offers advanced monitoring capabilities for mailboxes. By checking the availability and other key metrics, BizTalk360 keeps your email integration processes healthy.

Business Use Case: Automated Order Processing via Email

Let’s consider a retail company that receives customer orders through email. The orders arrive as an attachment in emails sent by various suppliers. BizTalk Server is configured to automatically process these emails, extract the order information, and update the Order Management System.

  • The Office 365 Mailbox Adapter or POP3 Adapter retrieves emails from the inbox.
  • The adapter extracts: Email metadata (Sender, Subject, Timestamp), Email body, Attachments.
  • BizTalk parses the email content using a custom pipeline to extract order details.
  • The ordered details are sent to the Order Management System via any of the following adapter, WCF-SQL Adapter, REST API ,SAP Adapter (for ERP systems like SAP).
Problem Scenario: Mailbox Unavailable

If the mailbox becomes unavailable or password got changed, BizTalk cannot retrieve new emails, resulting in:

  • Order Processing Delays
  • Unread Message Accumulation
  • Lost Messages due to Mailbox size limits

This could severely impact supplier SLAs, order fulfilment, and downstream inventory planning.

Monitoring mailbox availability ensures that BizTalk continuously retrieves and processes emails without disruption.

Mailbox Availability Monitoring in BizTalk360

BizTalk360 provides an out-of-the-box Mailbox Monitoring feature to detect and mitigate such failures before they affect business operations.

The system requires details such as Mail server, Port, Mailbox address, password and SSL to check the connectivity. Upon successful configuration, the system periodically checks the availability. If its reachable, monitoring status will be set as healthy, if there is any connectivity issue or server is unavailable then monitoring status will be set as critical

The system will send notification to the team, if the email server is down or authentication fails.

Metric Monitoring

You can define threshold-based monitoring rules to watch critical metrics ,which enhances system reliability and efficiency.

  • Mail Count: Monitors incoming message volume and detects unexpected spikes or drops.
    Example: If file count > 2 → Trigger warning
  • Mailbox Size: Prevents storage overflow, ensuring new emails are received.
  • Unread Mail Count: Identifies potential processing failures if messages remain unread for extended periods.

If the actual mailbox size or file count surpasses the set threshold, the monitoring status updates accordingly.

Mailbox-Metrics-Configuration

These metrics are only tracked when the mailbox is reachable. If it’s not, the monitoring status is marked as Critical.

Mailbox-configuration

Auto-Recovery with BizTalk360 Automated Tasks

BizTalk360’s Automated Tasks feature allows you to automatically take recovery actions when monitoring violations occur. These tasks can be triggered in response to conditions like high unread email count, mailbox unavailability, or file count spikes, helping to maintain uninterrupted business operations.

Use case 1: Restart Host Instance

Let’s consider in a retail company, The mailbox typically receives 10–15 emails (orders) per day. Due to a temporary network issue or a crash in the host instance handling the receive location, messages processing gets stopped.

Which results in following issues,

  • Emails pile up unread in the mailbox.
  • Order processing stalls, impacting supplier SLAs and downstream inventory management.

To avoid manual recovery and minimize downtime, you can configure an Automated Recovery Task.

You can configure a Threshold Rule in BizTalk360, as below:

  • Condition: Unread Mail Count > 20
  • Trigger Action: Restart the specific BizTalk Host Instance responsible for processing the mailbox through Automated Task.

So, in this case the system keeps on watching the Unread mail volume, if it reaches the threshold, they system will automatically restart the respective host instance. And send a notification about the restart action.

Mailbox-Auto-recovery Use Case 2: Trigger Logic Apps when Mailbox become Unreachable

Consider a situation where Mailbox itself becomes unreachable. In such a case, instead of waiting for manual troubleshooting, BizTalk360 can trigger an Azure Logic App to take immediate action,

  • Notify stakeholders via Teams/Slack about outage
  • Move critical unread emails to a backup mailbox or archive location
  • Log an incident automatically into an ITSM system for proper tracking and escalation

This ensures prompt awareness and preserves important data.

Other Auto Recovery Actions You Can Configure are,
  1. Start/Stop Application – Restart applications when they become unresponsive.
  2. Enable/Disable the Application Artifacts (SendPorts , Receive Location, )-Re-enable disabled artifacts to resume message flow.
  3. Start/Stop NT Services-Restart supporting services like SQL Agent, SSO, or custom services
  4. Start/Stop IIS AppPool-Recover web-based endpoints hosted in IIS
  5. Enable/Disable Tracking Events-Dynamically manage tracking to reduce overhead or fix monitoring mismatches
  6. Trigger PowerShell Scripts – Execute custom scripts — e.g., purge old files, notify admin team, check system resource usage.

Conclusion

With BizTalk360’s proactive mailbox monitoring and auto-recovery, email-based integrations in BizTalk Server remain seamless and reliable. It helps prevent disruptions and ensures consistent business operations.

To know more about the BizTalk360 features, try out the free trial or book a demo.