OdooWiki OCA HUB

Email Server By User

mail_server_by_user folder_open OCA/social open_in_new
Social Network License: LGPL-3

Change SMTP server with smtp_user equal email of user perform mail actions, like message_post, mail.mail send, and base email sending

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Automatically picks the outgoing email server whose login matches the sender address, so each user's mail is sent through their own SMTP account.

This module makes Odoo choose the outgoing mail server based on who the email is from. When an email is about to be sent, Odoo looks for an outgoing mail server whose login (the SMTP user) is the same as the sender's email address. If one is found, that server is used instead of the default one.

This happens in three common situations: - When Odoo sends an email directly through the mail server engine (ir.mail_server). - When an email record (mail.mail) is sent. - When a message posted on a document (for example, a sales order or a project task) notifies followers by email (mail.thread).

In each case, the sender's email address is normalised and compared with the login of existing outgoing mail servers. If a match is found and it is not already the server set on the email, the email is switched to that server.

There are no new menus, screens, or settings. The module only changes the automatic selection of the outgoing server. To use it, you must already have outgoing mail servers configured with the correct SMTP login for each sender address. If no server matches, Odoo keeps the server that was already selected, so nothing breaks.

Depends on

basemail
Models and fields (1)
  • ir.mail_server · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 17.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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation 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.

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.