| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 255 |
| Technical Name |
ezmod_microsoft_graph |
| License | LGPL-3 |
Microsoft Graph Email Fetcher for Odoo
Overview
This module enables seamless email retrieval in Odoo using the Microsoft Graph API, bypassing traditional POP3/IMAP setups. Many enterprises block POP3/IMAP for security reasons — this solution uses modern OAuth authentication via Tenant ID to securely access corporate emails directly from Microsoft 365/Office 365.
No server-side email server configuration is required in Odoo. It supports fetching emails from specific folders, processing them, and moving processed emails to another folder for organization and audit trails.
Key Features
- Secure email access via Microsoft Graph API (no POP3/IMAP needed).
- OAuth authentication using Tenant ID, Client ID, and Client Secret.
- Configure source folder to monitor for incoming emails.
- Automatically move processed emails to a designated "Processed" or archive folder.
- Supports corporate/enterprise Microsoft 365 accounts with high security standards.
- Compatible with Odoo 17 — integrates with mail module or custom workflows.
- Reduces security risks and avoids firewall/port issues common with traditional email fetching.
How It Works
1. Register an app in Azure AD and grant Microsoft Graph permissions for Mail.
2. Enter Tenant ID, Client ID, Secret, and folder paths in Odoo configuration.
3. Odoo fetches emails from specified folder using Graph API.
4. Process emails (attachments, create records, etc.) via Odoo's email system.
5. Move processed emails to another folder to mark as done.
Benefits
- Avoids blocked ports and legacy protocols in enterprise environments.
- More reliable and secure than IMAP/POP3.
- Flexible folder-based email routing and archiving.
- Ideal for incoming email automation (leads, support tickets, invoices, etc.) without compromising security.
Installation & Configuration
Standard Odoo module installation. After install, go to Settings → Technical → Email → Microsoft Graph Mail to set up credentials and folders.
Need help? Contact the developer for support or customizations.
Please log in to comment on this module