Skip to Content

Outgoing Mail by Multi Company or User

by

5.65

19.0 0
Live Preview
Required Apps Discuss (mail)
Technical Name outgoing_mail_by_multi_company_or_user
License OPL-1
You bought this module and need support ? Click here!
Technical Name outgoing_mail_by_multi_company_or_user
License OPL-1

Introduction

The Outgoing Mail by Multi-Company / User module for Odoo delivers refined email routing control by letting administrators assign outgoing SMTP server settings per company or per user. In multi-company environments or in setups where different users must send emails from different domains or email servers, this module ensures that the correct “From” address and mail server are used. This improves email deliverability, reinforces company branding, and reduces misrouted or blocked messages.

Key Features

  • Configure an outgoing mail server specific to each company

  • Assign a distinct SMTP / outgoing mail server per user (overriding company default)

  • Automatically choose the appropriate mail server based on current company or user context

  • Support fallback logic when no specific server is assigned (e.g. default global SMTP)

  • Maintain standard email aliasing, templating, and Discuss / chatter integration

  • Manage priority or filtering rules to select among multiple servers if needed

Benefits

  • Ensures emails are sent from correct domain or server aligned with company identity

  • Reduces email bounces by matching “From” domain and SMTP server credentials

  • Improves consistency and professionalism in intercompany or client communications

  • Grants flexibility for users with special email domains or external sending needs

  • Avoids the limitation of a single SMTP instance in multi-company setups

Compatibility & Technical Details

  • Technical Name: likely something like outgoing_mail_by_multi_company_or_user

  • Required Modules:

    • Mail / Discuss (mail)

    • Multi-company support (base)

    • Possibly user (res.users) settings extension

  • License: as declared in module metadata (often proprietary license)

  • Installation Steps:

    1. Install the module into your Odoo environment alongside standard mailing components.

    2. In Settings → Technical → Outgoing Mail Servers, configure and assign SMTP servers to companies or users as needed.

    3. On user records, enable or specify “Use user mail server” or similar override field.

    4. On company records, assign default outgoing server for that company context.

    5. When sending emails (from the user or in a company environment), Odoo selects the SMTP server based on user → company hierarchy and sends via the appropriate server.

    6. Test sending emails under different user and company contexts to validate routing.

Outgoing Mail by Multi Company or User

Outgoing Mail by Multi Company or User module that enhances outgoing emails are sent using the correct mail server configuration, based on either the user or the company context - but never both.
In multi-company environments or setups where multiple users require different email identities, choosing the right outgoing mail server is essential to maintain brand consistency and prevent misrouted emails.

This module automatically routes outgoing emails through the correct mail server configured per company or user, ensuring emails are always sent with the right sender identity and server, without duplicates or conflicts.

https://wa.me/message/VENRAJRHMSWEB1 OR
  • Automatic outgoing mail server selection based on either the user or the company.
  • Ensures that emails are sent from the correct server without duplication, overlap, or routing ambiguity.
  • Supports multi-company environments seamlessly.
  • Avoids duplicate email sends if the same company or user has multiple configurations.
  • Prevents misconfiguration by enforcing a rule that only one of user or company can be selected per mail server configuration.
  • Helps maintain consistent email branding across different companies or users.

1. Outgoing Mail Configure by Companies.

After installing the module
1. Navigate to Settings => General Setting.
2. In the General Setting configuration, select either SMTP by Company or SMTP by User. Only one option can be selected to ensure proper configuration.
Here, As you can see we have selected SMTP By Company.

2. Validation of Outgoing Mail Configuration.

If both SMTP by Company and SMTP by User have been selected. The system will validate this and display a warning, as you can select either SMTP by Company or SMTP by User, but not both.

3. Outgoing Mail.

Here, you can see that we have configure Outgoing Mail with Two different mail id.

4. Outgoing Mail by Ahmedabad Company with R Email I'd.

Here, you can see that the Company has been configured as Ahmedabad Company using R email ID.

5. Send Mail by Ahmedabad Company.

As shown, an email was sent from Ahmedabad Company.

6. Received Mail by Ahmedabad Company on R email I'd.

Here, you can see that an email has been received from Ahmedabad Company on R Email I'd.

7. Outgoing Mail by Hyderabad Company with SH Email I'd.

Here, you can see that the Company has been configured as Hyderabad Company using SH Email ID.

8. Send Mail by Hyderabad Company.

As shown, an email was sent from Hyderabad Company.

9. Received Mail by Hyderabad Company on SH email I'd.

Here, you can see that an email has been received from Hyderabad Company on SH Email I'd.

10. Multi Companies Outgoing Mail by Hyderabad Company & Your Company with SH Email I'd.

Here, you can see that the Company has been configured as Hyderabad Company & Your Company using SH Email ID.

11. Send Mail by Your Company.

As shown, an email was sent from Your Company.

12. Received Mail by Your Company on SH email I'd.

Here, you can see that an email has been received from 'Your Company' on SH Email I'd.

13. Outgoing Mail Configure by Users.

As shown here, 'SMTP by User' has been selected.

14. Outgoing Mail by Marc Demo with SH Email I'd.

Here, you can see that the User has been configured as Marc Demo using SH Email ID.

15. Send Mail by Marc Demo.

As shown, an email was sent from Marc Demo.

16. Received Mail by Marc Demo with SH email I'd.

Here, you can see that an email has been received from Marc Demo on SH Email I'd.

17. Outgoing Mail by Miya with R Email I'd.

Here, you can see that the User has been configured as Miya using R Email ID.

18. Send Mail by Miya.

As shown, an email was sent from Miya.

19. Received Mail by Miya with R email I'd.

Here, you can see that an email has been received from Miya on R Email I'd.

20. Multi Companies Outgoing Mail by Mitchell Admin & Miya with R Email I'd.

Here, you can see that the User has been configured as Mitchell Admin & Miya using R Email ID.

21. Send Mail by Mitchell Admin.

As shown, an email was sent from Mitchell Admin.

22. Received Mail by Mitchell Admin with R email I'd.

Here, you can see that an email has been received from Mitchell Admin on R Email I'd.

  • We are provide 90 days bug free support related to our module.
  • The support team is available from Monday to Friday 10:00 AM to 07:00 PM (IST).
  • To create ticket send email to [email protected].

Does it support both user and company at the same time?

No. You must choose either user or company for configuration. Setting both raises a validation error.

What happens if a company is present in two different mail configurations?

The system will pick the configuration with the highest priority defined by you. No duplicate emails will be sent.

Does this affect incoming mail?

No, this module only manages outgoing mail server selection.

What happens if I accidentally configure both user and company together?

You’ll receive a validation error: Outgoing Mail Configuration must be set by either the user or the company, but not both at the same time. This forces clean configurations.

Is this module compatible with Odoo Community and Enterprise editions?

Yes, it is compatible with both Community and Enterprise editions.

Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.