From 030b37d41c68b197bd2ce72f52dafdb906364448 Mon Sep 17 00:00:00 2001 From: bve Date: Tue, 29 Apr 2025 12:35:16 +0000 Subject: [PATCH] [ADD] mail: from filter ICP missing part Functionals support noted that the from filter part without mail server was missing. But was present on ancient documentation: https://www.odoo.com/documentation/16.0/applications/general/email_communication/email_servers.html#use-a-default-from-email-address Let's re-add it to clarify. And adding the anchoring opw-4568395 closes odoo/documentation#13193 X-original-commit: d2b2a10d15818515b70b316fe4a7c9499e3ec8e0 Signed-off-by: Samuel Lieber (sali) --- .../email_servers_outbound.rst | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/content/applications/general/email_communication/email_servers_outbound.rst b/content/applications/general/email_communication/email_servers_outbound.rst index c7dbfd040..d0a9e0750 100644 --- a/content/applications/general/email_communication/email_servers_outbound.rst +++ b/content/applications/general/email_communication/email_servers_outbound.rst @@ -17,9 +17,15 @@ emails. The deliverability is optimized for this subdomain as it uses Odoo’s D If the database subdomain is `company-name.odoo.com` and all mailing configurations are the default ones, all emails will be sent from `notifications@company-name.odoo.com`. -.. important:: - Only **one** subdomain can be used as a mailing server in Odoo. Subdomains for additional - companies require an external email server with a custom domain. +.. _email-outbound-default-from-filtering: + +This configuration is handled by the system parameter `mail.default.from_filter`. +In case where the sender's domain do not match the value of this parameter, the notification address +is used instead. Multiple values can be defined in this system parameter: comma-separated, domains +or full email addresses are all allowed. Once an :ref:`outgoing mail server is configured +`, the system parameter is no longer considered +and the value used is the :ref:`FROM filtering +` of the mail server. .. image:: email_servers_outbound/diagram-inbound-mailing-method.png :alt: Odoo’s default outbound messages configuration. @@ -213,6 +219,9 @@ When an email is sent from Odoo, the following sequence is used to choose the ou higher the priority is). Failing to do so, the first server is determined by the servers' names, using alphabetical order. +- If there is no mail server, Odoo relies on the :ref:`system parameter + ` value. + It is also possible to use Odoo's mail server for transactional emails in addition to mass mailings. .. _email-outbound-different-servers-external-odoo: @@ -333,7 +342,7 @@ Using a unique email address for all outgoing emails To force the email address from which emails are sent, activate the :ref:`developer-mode`, and go to :menuselection:`Settings --> Technical --> Email: Alias Domains`. On the :guilabel:`Default From -Alias`, use the the local-part or a complete email address as the value. +Alias`, use the local-part or a complete email address as the value. .. warning:: If a **complete address** is used as the :guilabel:`Default From Alias` value, **all** outgoing