OdooWiki OCA HUB

Fetchmail Notify Error to Sender

fetchmail_notify_error_to_sender folder_open OCA/server-tools open_in_new
Tools License: AGPL-3

If fetchmail is not able to correctly route an email, the email is "silently" lost (you get an error message in server log).

For example, if you configure odoo mail system to route received emails according to recipient address, it may happen users send emails to wrong email address.

This module extends the functionality of fetchmail to allow you to automatically send a notification email to sender, when odoo can't correctly process the received email.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When Odoo cannot route an incoming email fetched from a mail server, this module automatically sends a notification email back to the original sender, instead of losing the message silently.

This module adds a safety net for incoming email. Normally, if Odoo cannot decide where an email should go (for example, the recipient address is wrong), the message is dropped and only a line appears in the server log. With this module, the sender gets an email telling them something went wrong.

Where it appears: - On the incoming mail server configuration form (fetchmail.server), a new field "Error notice template" lets you choose which email template to use for the notice. - A ready-made template named "Fetchmail - error notice" is installed and can be selected there.

What it does automatically: - When an incoming email cannot be routed, the system checks whether the mail server has an error notice template configured. - If yes, it sends the notice to the original sender, using the original subject and including the technical error details. - If no template is set, the error is raised as before, so nothing changes for servers without this setting.

The notice email is sent from the original recipient address and addressed to the original sender, so the sender sees a reply-like message. The template is set to auto-delete after sending. The module touches the incoming mail server settings and the email routing logic used by all models that receive emails.

Depends on

mail

Required by other modules

Models and fields (2)
  • mail.thread · extends an existing model
  • fetchmail.server · extends an existing modelerror_notice_template_id (Error notice template)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/server-tools.

terminal Installation and usage

OCA documentation · Odoo 18.0

To configure this module, you need to:

  • Configure your fetchmail server setting 'Error notice template' = 'Fetchmail - error notice'.
  • You can edit the 'Fetchmail - error notice' email template according to your needs.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.