{% extends "documentation/base.html" %} {% block doc_content %}
Configure automatic email import from your Microsoft Graph mailbox to run on a schedule.
BackupChecks can automatically import backup report emails from your mailbox at regular intervals. This eliminates the need to manually trigger imports and ensures new backup reports are processed promptly.
Auto-import features:
Automatic import runs continuously in the background and fetches new emails based on a configured interval.
To enable automatic import:
The import interval determines how often BackupChecks checks for new emails:
| Interval | Use Case | Recommendation |
|---|---|---|
| 5 minutes | High-frequency backups, real-time monitoring | May increase server load, use only if necessary |
| 15 minutes | Standard setup (default) | Recommended for most organizations |
| 30 minutes | Low-priority backups, small teams | Good balance between timeliness and load |
| 60 minutes | Batch processing, overnight backups only | Suitable for organizations with scheduled backup windows |
Auto-import fetches a fixed number of emails per run to prevent overwhelming the system:
Here's what happens during each automatic import cycle:
During automatic import, BackupChecks can automatically approve emails that match previously approved jobs. This eliminates the need to manually approve recurring backup reports.
An email is automatically approved if:
When auto-approved:
JobRun is created and linked to the existing jobIf auto-approval fails, the email remains in the inbox and requires manual approval:
You can manually trigger an import at any time without waiting for the automatic import interval.
Manual import allows you to configure how many emails to fetch:
The default batch size can be changed in Settings → Imports → Manual import batch size.
Here's a complete reference of all mail import settings:
| Setting | Location | Default | Description |
|---|---|---|---|
| Enable automatic import | Settings → Imports | Disabled | Turn automatic email import on or off |
| Import interval | Settings → Imports | 15 minutes | How often to check for new emails (automatic import only) |
| Manual import batch size | Settings → Imports | 50 messages | Default number of emails to fetch during manual import |
| EML retention period | Settings → Imports | 7 days | How long to store raw .eml files (0, 7, or 14 days) |
You can monitor import activity through several interfaces:
Every import operation is logged in the audit log:
mail_import_auto - Automatic import completedmail_import_manual - Manual import completedmail_import_auto_error - Automatic import failedfetched=10, new=3, auto_approved=7, errors=0The inbox shows all imported emails:
Auto-approved emails appear as new runs in:
If auto-import is enabled but emails are not being imported:
mail_import_auto_error eventsIf emails are imported but not auto-approved:
If imports fail with errors:
To temporarily stop automatic imports without losing configuration:
Control how long raw .eml files are stored in the database:
Older .eml files are automatically purged based on this retention period.
For organizations with hundreds of backup jobs: