Skip to Content

Company-Specific Mail Server Configuration

This enhancement allows Odoo to automatically select the correct outgoing mail server based on the company of the user or the company of the related business document.
January 4, 2026 by
Company-Specific Mail Server Configuration
Silverdale Technology, Somroo Hassaan
| No comments yet

In standard Odoo behavior, outgoing emails may not always respect company boundaries in multi-company environments. This can lead to emails being sent from the wrong mail server, causing confusion, branding inconsistencies, deliverability issues, or even compliance concerns—especially when multiple companies operate within the same Odoo database.

The Company-Specific Mail Server Configuration SME resolves this issue by introducing company-awareness into Odoo’s email-sending logic.

With this feature enabled, each outgoing mail server can be explicitly linked to a specific company. A new Company field is added to the mail server configuration, allowing administrators to define which server belongs to which company. Additionally, company context is tracked at the message level to ensure accurate routing.

When an email is sent, the system determines the correct mail server using the following logic:

  • If the email is triggered from a business document (such as a Sales Order, Invoice, Purchase Order, or Helpdesk Ticket), the company of that document is used.
  • If no document is linked, the system falls back to the current user’s active company.
  • The outgoing email is then routed through the mail server assigned to that company.

This approach guarantees that:

  • Each company’s emails are sent using its own SMTP credentials.
  • Sender domains, signatures, and branding remain consistent.
  • Cross-company email leakage is prevented.

The feature integrates seamlessly with Odoo’s existing mail framework and requires no manual server selection by users, keeping the process fully automated and reliable.

Key Benefits

  • True Multi-Company Separation: Ensures each company uses its own outgoing mail server.
  • Improved Email Deliverability: Messages are sent using correct SMTP credentials and domains.
  • Branding Consistency: Prevents emails from being sent from the wrong company identity.
  • Automated Routing: No manual intervention required by end users.
  • Reduced Risk: Eliminates cross-company communication errors and compliance issues.

Example Use Case

A business operates three companies within a single Odoo database, each with its own email domain and SMTP provider. Without this feature, emails from Company A’s invoices may occasionally be sent using Company B’s mail server.

With Company-Specific Mail Server Configuration enabled:

  • Invoices from Company A are always sent via Company A’s SMTP server.
  • Support emails from Company B are routed through Company B’s email domain.
  • Users switching between companies do not need to adjust any settings manually.

Conclusion

The Company-Specific Mail Server Configuration SME is essential for organizations running multi-company Odoo environments. By enforcing company-aware email routing, it eliminates misrouted emails, strengthens branding integrity, and ensures professional, compliant communication across all companies—without adding complexity for users.

Share this post
Sign in to leave a comment