Skip to content

Commit 975643a

Browse files
samueljliebertiku-odoo
authored andcommitted
[ADD] discuss: specific email server from
1 parent 655818a commit 975643a

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

content/applications/general/email_communication/email_servers.rst

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ Odoo relies on generic email aliases to fetch incoming messages.
137137
* **Original messages**: Several business objects have their own alias to create new records in
138138
Odoo from incoming emails:
139139

140-
* Sales Channel (to create Leads or Opportunities in `Odoo CRM <https://www.odoo.com/page/crm>`__),
140+
* Sales Channel (to create Leads or Opportunities in `Odoo CRM <https://www.odoo.com/page/
141+
crm>`__),
141142
* Support Channel (to create Tickets in `Odoo Helpdesk <https://www.odoo.com/page/helpdesk>`__),
142143
* Projects (to create new Tasks in `Odoo Project <https://www.odoo.com/page
143144
/project-management>`__),
@@ -151,7 +152,6 @@ recommended method is to manage one email address per Odoo alias in the mail ser
151152
* Create the corresponding email addresses in the mail server (catchall@, bounce@, sales@, etc.).
152153
* Set the :guilabel:`Alias Domain` name in :menuselection:`Settings --> General Settings -->
153154
Discuss`.
154-
155155
* If the database's hosting type is Odoo on-premise, create an :guilabel:`Incoming Mail Server` in
156156
Odoo for each alias. This can be done from the General Settings as well. Fill out the form
157157
according to the email provider's settings. Leave the :guilabel:`Actions to Perform on Incoming
@@ -187,6 +187,46 @@ By default, inbound messages are fetched every 5 minutes in Odoo on-premise.
187187
:menuselection:`Settings --> Technical --> Automation --> Scheduled Actions` and look for
188188
:guilabel:`Mail: Fetchmail Service`.
189189

190+
Utilizing the From Filter on an outgoing email server
191+
=====================================================
192+
193+
The :guilabel:`FROM Filtering` field allows for the use of a specific outgoing email server
194+
depending on the :guilabel:`From` email address or domain that Odoo is sending on behalf of. This
195+
setting can be used to improve the deliverability or sending success rate of emails sent from the
196+
database. Setting the :guilabel:`FROM Filtering` field can also be used to send from different
197+
domains in a multi-company environment. Access this field in Odoo by navigating to
198+
:menuselection:`Settings --> Custom Mail Servers --> Outgoing Mail Servers --> New`.
199+
200+
.. image:: email_servers/from-filter-setting.png
201+
:align: center
202+
:alt: Outgoing email server settings and the FROM filter settings.
203+
204+
When an email is sent from Odoo while the :guilabel:`FROM Filtering` field is set, an
205+
email server is chosen in the following sequence:
206+
207+
#. First, Odoo searches for an email server that has the same :guilabel:`FROM Filtering` value as
208+
the :guilabel:`From` value (email address) defined in the outgoing email. For example, if the
209+
:guilabel:`From` value (email address) is `test\@example.com`, only the email servers that have
210+
the :guilabel:`FROM Filtering` value equal to `test\@example.com` are returned.
211+
#. However, if no email servers are found that use the :guilabel:`From` value, then Odoo searches
212+
for an email server that has the same *domain* as the :guilabel:`From` value (email address)
213+
defined in the outgoing email. For example, if the :guilabel:`From` email address is
214+
`test\@example.com`, only the email servers that have the :guilabel:`FROM Filtering` value equal
215+
to `example.com` are returned.
216+
217+
If no email servers are found after checking for the domain, then Odoo returns all email servers
218+
that do not have any :guilabel:`FROM Filtering` value(s) set.
219+
220+
Should this query return no results, then Odoo performs a search for an email server using the
221+
system parameter: `mail.default.from`. First, the email address listed attempts to match an email
222+
server, and then the domain attempts to find a match. If no email server is found, Odoo returns the
223+
first outgoing email server (sorted by priority).
224+
225+
.. note::
226+
If several email servers are found, then Odoo uses the first one according to its priority. For
227+
example, if there are two email servers, one with a priority of `10` and the other with a
228+
priority of `20`, then the email server with a priority of `10` is used first.
229+
190230
Set up different dedicated servers for transactional and mass mails
191231
===================================================================
192232

89.9 KB
Loading

0 commit comments

Comments
 (0)