Eliminating Email Loops in Odoo With Smarter Address Handling for Automated Replies

Email automation is essential for modern business workflows—but not all systems behave as expected. In real-world scenarios, many third-party services (such as AP automation platforms) process emails and send responses from a different address than the one originally contacted. While this may seem harmless, it can create serious issues inside Odoo. Steersman has developed a new enhancement to intelligently handle these scenarios—preventing email loops, reducing noise, and improving communication accuracy.
The Problem: When Email Automation Breaks the Chain
Consider a common workflow:
- An invoice is sent from Odoo to ap@company.com
- That email is automatically forwarded to a processing service (e.g., service@automation.com)
- The service processes the invoice and replies back from its own address
At this point, Odoo correctly routes the reply using email headers and attaches it to the appropriate record. However, a hidden issue begins to emerge.
Because the reply now comes from a different email address, Odoo treats it as a new participant and adds it to the list of followers. The notification about the original response & future notifications then includes both:
- The original recipient (ap@company.com)
- The automated service (service@automation.com)
This can trigger a loop:
- Odoo sends an update to all followers
- The original recipient forwards it again to the automation service
- The service replies again
- Odoo logs the reply and notifies followers again
…And the cycle continues.
These loops can quickly lead to:
- A disproportionate amount of processing power being used for sending and receiving emails
- Odoo’s chatter panel could become very slow, and whatever record it’s attached to (invoice, SO, etc.) may become very slow to open.
- Risk of hitting sending limits from the ESP and being unable to send and receive legitimate emails.
- Some remote ESP may see this loop as spamming or bounce source and block the sender (Odoo), which will affect the deliverability of real emails
- Confusion around who is actually sending the email
- Inbox clutter for both users and customers, increasing the chances of missing meaningful communication.
The Solution: Intelligent Email Address Mapping
Steersman’s new enhancement introduces a flexible system to normalize and control email addresses during processing. This feature allows Odoo to automatically replace specific email addresses with a defined alternative—before the system processes or sends messages.
How It Works
When an incoming email is received:
- The system evaluates the sender’s address
- If it matches a defined rule, it is automatically replaced
- The message is then processed using the corrected address
In the earlier example:
- service@automation.com is automatically replaced with ap@company.com
- Odoo treats the reply as coming from the original recipient
- The automation service is no longer added as a follower
- The loop is prevented entirely
This happens seamlessly and early in the email processing flow, ensuring consistent behavior across the system.
To learn how to configure your own Email Mappings, Click Here
Related posts

Odoo Dashboard for Unrouted Received Reply Emails
Odoo email routing for reply emails caused by human error, non-standard-compliant email software, or misconfigured spam / security filters.

Email Monitoring Profiles: Smarter Email Notifications in Odoo
With this enhancement, users can now receive push notifications (via email or inbox) whenever an incoming email is received on a record that has chatter enabled — even if they’re not a follower of that record. Our "Email Monitoring Profiles" feature also includes model-based routing, allowing each user to choose which Odoo models they want to monitor.

B2B Email Marketing in Odoo: Best Practices for Design, Delivery, and List Hygiene
Essential best practices for running effective B2B email campaigns in Odoo—focusing on deliverability, mobile-friendly design, and proper list hygiene. Whether you're sending promotions, product updates, or abandoned cart reminders, you'll learn how to avoid spam filters, protect your sender reputation, and get better results from every send.

Odoo email carbon copy to multiple contacts per document or model
Configure your contact's email carbon copy recipients - CC destinations configurable per data model that you are working with