Fixes the issue of using a mail client where relaying is disallowed. See: https://www.odoo.com/es_ES/forum/help-1/question/zoho-com-connection-unexpectedly-closed-51162
auto_awesome What this module does
AI-generated from the code · Odoo 13.0Fixes outgoing email delivery when your mail provider does not allow relaying, by sending messages with the authenticated SMTP user as the sender address.
This module changes how Odoo sends outgoing emails through an SMTP server. Some mail providers refuse to relay a message when the sender address in the message does not match the account used to log in to the server. To avoid that, the module rewrites the "From" address of every outgoing email so that it uses the email address of the configured SMTP user, while keeping the original display name.
It also handles the recipient list: it collects the To, Cc and Bcc addresses, removes the Bcc header before sending, and stops with a clear error if no valid recipient address is present. A special "X-Forge-To" header, if present, is used to replace the To header so that only one To header is sent.
The module extends the ir.mail_server model and overrides its send_email method. It does not add menus, screens, buttons or reports. When sending fails, it raises a mail delivery error with the SMTP server name and the underlying error message, and it logs the failure. In test mode, sending is skipped and only logged.
Depends on
Models and fields (1)
- ir.mail_server · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 13.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/server-tools.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.