Choose allowed “From” email addresses¶
Sometimes, an email’s “From” (outgoing) address can belong to a different
domain, and that can be a problem.
For example, if a customer with address mary@customer.example.com responds to
a message, Odoo will try to redistribute that same email to other subscribers
in the thread. But if the domain customer.example.com forbids that kind of
usage for security (kudos for that), the Odoo’s redistributed email would get
rejected by some recipients’ mail servers.
To avoid those kind of problems, you should make sure all emails use a “From”
address from your authorized domain.
If your MTA supports SRS (Sender Rewriting Scheme), you can enable it
to handle these situations. However, that is more complex and requires more
technical knowledge that is not meant to be covered by this documentation.
Instead, you can also configure Odoo to do something similar by itself:
在一般设置中设置你的域名。
In developer mode, go to Settings ‣ Technical ‣
Parameters ‣ System Parameters.
Add one system parameter from these:
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).
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).