三大发送模式:
1、简单发送(mail.catchall.domain不设置)
直接用发送账号发出,发件人需要与发送账号相同或者是其同一账号下的其他别名,否则会被邮件系统拒绝,如SMTPSenderRefused: 501 mail from address must be same as authorization user [email protected]。接收方也直接回复该真实地址,非常容易理解,属于最原始的模式,最适合做邮件通知这种只集成发送不用集成接收的情况

2、代理发送(mail.catchall.domain设置,mail.bounce.alias不设置)
间接用postmaster-odoo账号代发出,发送账号需要具有该名称授权,否则也会被邮件系统拒绝,如SMTPSenderRefused: 501 mail from address must be same as authorization user [email protected]。接收方默认回复catchall专用地址,由于属于代发,且发件地址、代发地址、回复地址都可以不相同,第一次使用还会有些颠覆邮箱观,甚至某些客户端出于谨慎还会出现欺诈提醒,但这确是目前国内用的最多的务实模式,大部分教程都是以此展开详解

3、反弹发送(mail.catchall.domain设置,mail.bounce.alias设置)
间接用bounce地址代发出,如[email protected]或者[email protected],其中+5为邮件流水号,-2为单据流水号,可见前者还是单据相关邮件,接收方也默认回复catchall专用地址,因为其涉及到邮件接收等相关知识,而且国内免费邮箱服务基本没有完美支持,本文将不深入探讨,待以后ODOO邮件接收集成的时候在讨论如何配合Postfix实现完美收发自如

 

默认使用第一种,把系统参数里面的,mail.catchall.domain删掉,然后设置smtp,以公司名义发送,要把公司邮箱账号和smtp发件账号设置的一样才行

试过很多方法都不行,最终通过Apache 实现

首先安装odoo12 到Ubuntu

使用一键安装

odoo 12 最新一键安装包,亲测可用

然后使用以下代码安装apache2

Apache installation

Check whether Apache is already installed and running on your server. You can do this with the following command:

dpkg -l apache2

If Apache is not installed, you can do this by executing the following commands.

apt-get install apache2

After the installation is complete, you should enable Apache to start automatically upon server boot with:

systemctl enable apache2

You can also check the status of your Apache service with the following command:

systemctl status apache2

Now that we are sure that Apache is installed and running on our server we can continue with the next step and set up an Odoo reverse proxy.

To the next step, we will need to enable some additional proxy modules for Apache. To enable these modules, execute the following commands:

a2enmod proxy
a2enmod proxy_http

Once this is done, open a new configuration file using nano or your favorite text editor  with the following command:

nano /etc/apache2/sites-available/your_domain.conf

Add the following lines:

<VirtualHost *:80>
ServerName your_domain.com
ServerAlias www.your_domain.com

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://your_domain.com:8069/
ProxyPassReverse / http://your_domain.com:8069/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>

Enable “your_domain.conf” configuration in Apache using:

ln -s /etc/apache2/sites-available/your_domain.conf /etc/apache2/sites-enabled/your_domain.conf

Remember to replace your ‘your_domain.com’ with your actual domain name. Save the changes and restart the Apache web server for the changes to take effect:

service apache2 restart

【STEM电子积木】系列

专门为中小学生大学生推出的DIY配件。无需焊接,简单易用,耐久。大幅度降低DIY门槛,小到幼儿园,大到研究生均可使用。我们是工厂集中采购,流水线生产,严苛质检,大大降低生产成本,比您自己焊接成本还低。通过我们的产品,让您在创作过程中减少无谓的时间浪费,把更多精力和时间用在创作中。

产品特点:

  • 优质130马达,可接受电压5-10V

  • 采用国标1007-24#线材焊接,加热熔胶固定

  • 完全兼容本公司的【电子积木】系列其它产品

名称:TT马达带15CM线公头

型号:中文版DM1; 英文版SM1

产品详情:http://www.haibucuo.com/product/_304096_40897.html