服务器中用于接收电子邮件,‎如何使用我的邮件服务器在 Odoo 中发送和接收电子邮件‎...

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:

在一般设置中设置你的域名。

de6fcbacbabe373ea4a1d138caaca825.png

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).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值