What Mail Guard does
Replies from Microsoft 365 land in the right chatter again, the sender hears about every email that failed or bounced, and emails nobody could route wait in a triage queue instead of bouncing back.
Keep Outlook and Microsoft 365 replies in the right chatter thread, alert the sender when an email fails or bounces, keep lost messages (emails that match no alias or thread) in a queue and route them to the right record in one click, per-company SMTP, strip signature images, deliverability check.
- Microsoft 365
- Outlook
- Failed emails
- Bounces
- Catch-all
- Deliverability
Features
Microsoft 365 reply threading
Exchange Online gives every email sent through it a new Message-ID, so replies no longer find their quotation, invoice or ticket. Mail Guard reads the new id from the server's answer and links the reply back.
Outlook conversation headers
Emails that start a conversation get a signed Thread-Index and Thread-Topic. Outlook replies carry them back, even when the References header is lost.
Strict subject fallback
A reply from a person who received exactly one document with the very same subject is linked to it. Two candidates, a different number or a sender who never got it: nothing is guessed.
Thread repair log
Every repaired reply is listed with the method used, the document and the original headers. Ambiguous replies are listed too, so you know what was left alone and why.
Failed email alerts
When an email cannot be sent or bounces, the person who sent it gets an activity on the document with the recipient and the server answer. No more quotations lost to a typo.
Failure register with retry
One line per failed recipient: not sent or bounced, failure type, server answer, document, responsible. Fix the address on the contact and retry in one click; delivered retries close themselves.
Exchange bounces attributed
Non-delivery reports from Exchange that only quote the rewritten Message-ID still mark the right recipient as bounced.
Lost messages and catch-all triage
Emails to the catch-all or to an address without an alias are kept in a queue instead of bouncing back to the sender or failing in the mail fetch.
Route in one click
Route an email to a new lead, vendor bill, task, helpdesk ticket or contact, or add it to any existing document. The original email is processed again, so attachments and replies follow.
Inbound clean-up
Small inline images such as signature logos and social icons no longer pile up as chatter attachments. Pictures pasted in the body are kept. Tracking pixels are removed.
Deliverability check
One button on the outgoing mail server: SPF, DKIM, DMARC, MX and reverse DNS of the sending domain, plus the settings Microsoft 365 needs (port, From Filter, authentication).
Outgoing server per company
Emails about documents of a company leave through that company's server, unless a template already chose one.
1. Outgoing
Odoo sends the email. Mail Guard adds Outlook conversation headers and keeps the Message-ID the server gives back.
2. Incoming
Before Odoo routes a reply, Mail Guard adds the missing reference when it is certain which document the reply belongs to.
3. Failures
Send errors and bounces become failure lines with an activity for the sender; a delivered retry closes them.
Before and after
Without the app
- Outlook replies create new leads or bounce from the catch-all instead of reaching the quotation
- An invoice to a mistyped address fails and only a small red icon shows it
- Emails to the catch-all bounce back to customers and vendors
- Signature logos fill every chatter with image001.png
- Nobody knows if SPF, DKIM and DMARC are right
With Mail Guard
- Replies are linked through the rewritten Message-ID, the Outlook Thread-Index or a strict subject match
- The sender gets an activity with the server answer and retries in one click
- Unroutable emails wait in a triage queue and are routed in one click
- Small inline images and tracking pixels are dropped on arrival
- One button checks the sending domain and the Microsoft 365 settings
How it works, step by step
01Settings
Mail Guard, Configuration, Settings. Every part can be switched on or off: Message-ID capture, Outlook headers, the subject fallback and its look-back window, failure activities, triage and the inbound clean-up.

02Check the outgoing server
Check deliverability on the outgoing mail server looks up SPF, DKIM, DMARC, MX and reverse DNS of the sending domain and reviews the Microsoft 365 settings. Here the domain publishes a revoked DKIM key and an SPF record without Microsoft's include.

03A reply finds its document
The quotation went out through an Exchange-style server that replaced the Message-ID. The customer's Outlook reply only quotes the new id; Mail Guard linked it to the bakery's record as a reply to the quotation.

04Thread repairs
Every repaired reply with the method used: rewritten Message-ID, Outlook Thread-Index or subject and sender. "Your order is ready" was sent to two documents, so that reply was left alone.
05Repair details
The incoming Message-ID and the references it carried, and the document it was linked to.
06Failed email overview
Failed and bounced emails by failure type and status: open, retried, resolved or ignored.
07Failed emails
The open failures with document, recipient email, kind, failure type and responsible. Retry or ignore several at once from the list.
08A bounce in detail
The invoice to Lindqvist Bygg bounced: recipient, the server's answer, the document and who is responsible. Correct the contact's email right here and press Retry now.
09The sender is told
The person who sent the email gets an "Email failed" activity on the document with each failed recipient and the reason, so nobody waits for a customer who never got the invoice.
10Fixed and retried
The address of Ana Costa was corrected and the order confirmation was sent again: the failure is resolved and its activity closed.
11Triage queue
Emails to the catch-all and to unknown addresses wait here instead of bouncing back: a vendor invoice, a quote request from a new prospect and a delivery note from a known customer.
12An email to route
The full email with its attachments, who sent it, to which address and why Odoo could not route it.
Questions about Mail Guard
Why do replies from Microsoft 365 customers not reach the right document?
When Odoo sends through Exchange Online, Exchange gives the email a new Message-ID. Outlook replies quote that new id, which Odoo never saw, so Odoo cannot find the thread and the reply ends up as a new record or bounces from the catch-all. Mail Guard records the new id from the SMTP answer and links the reply.
Can a reply be linked to the wrong document?
The rewritten Message-ID and the Outlook Thread-Index are exact: the Thread-Index carries a signature only your database can produce. The subject fallback only links a reply from a person who received exactly one document with exactly that subject in the last 30 days (adjustable); look-alike subjects, other senders and subjects sent on two documents are never linked.
What do I need on the Microsoft 365 side?
Nothing special: use smtp.office365.com on port 587 with STARTTLS (or Odoo's Outlook OAuth) and a From Filter with your mailbox or domain. The deliverability check tells you what is missing.
Does Odoo not already show failed emails?
Odoo shows a red envelope on the message and a counter for its author. Mail Guard adds an activity for the right person (also when OdooBot or a scheduled action sent the email), one register for all failures and bounces, retry after fixing the address, and auto-resolve.
What happens to emails sent to the catch-all?
Odoo normally bounces them back to the sender or fails on unknown addresses. With Mail Guard they are kept in the triage queue for routing. Replies to existing threads and emails to your aliases are not affected.
Which signature images are removed?
Inline images up to 20 KB (adjustable) such as logos and social icons. Larger pictures pasted into the email body are kept, and attachments are never touched.
Does it work with Community and Enterprise?
Yes, it only needs the Discuss (mail) app and works in both, in light and dark mode.
