[FIX] discuss, cmdline: update for static outgoing mail addresses

This changed for Odoo 15.0 in odoo/odoo#61853 and the docs didn't
reflect that change.

MT-52 @moduon

closes odoo/documentation#1469

X-original-commit: 084fb777f9
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Yajo
2021-12-29 13:41:16 +00:00
committed by Jairo Llopis
parent 194f215662
commit 2c72491158
3 changed files with 41 additions and 9 deletions
@@ -136,20 +136,38 @@ Instead, you can also configure Odoo to do something similar by itself:
.. image:: media/alias_domain.png
:align: center
#. Click on *Outgoing Mail Servers*
#. Create a new one.
#. Fill its *From Filter*.
.. image:: media/outgoing_server_from_filter.png
:align: center
* Use a domain (such as ``mycompany.example.com``) to keep the original "From"
address for mails that come from that domain.
* Use an address (such as ``outgoing@mycompany.example.com``) to allow only
that outgoing address.
* Keep it empty to use this server for any email address.
With this configuration in place, if Odoo sends an email that doesn't match any
of the *from filters*, it will alter the email's "From" before sending it to
the MTA.
It will use the default outgoing email address, composed like this:
``{mail.default.from}@{mail.catchall.domain}``.
#. In developer mode, go to :menuselection:`Settings --> Technical -->
Parameters --> System Parameters`.
#. Add one system parameter from these:
#. Add these system parameters:
* If you want *all* your outgoing messages to use the same "From" address,
use the key ``mail.force.smtp.from`` and set that address as value
(such as ``outgoing@mycompany.example.com``).
* ``mail.default.from``: local part of default outgoing email address.
* If you want to keep the original "From" address for emails that use your
same domain, but change it for emails that use a different domain, use
the key ``mail.dynamic.smtp.from`` and set as value the email address
that should be used in those cases (such as
``outgoing@mycompany.example.com``).
* ``mail.catchall.domain``: domain part of default outgoing email address.
.. _discuss/email_servers/inbound_messages:
Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB