-
odoo13后台已经正确配置了邮件的收发参数,且已经验证正常,然后我在论坛模块注册新用户后点击邮件验证就会出现以下错误
我怀疑是发送账号的问题,于是我用另一个账号的邮箱接收和发送又产生另一个错误
Odoo Server Error
Traceback (most recent call last):
File "/root/odoo-ls/src/odoo/odoo/addons/base/models/ir_mail_server.py", line 526, in send_email
smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
File "/usr/lib/python3.6/smtplib.py", line 867, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (501, b'Mail from address must be same as authorization user.', '[email protected]')During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/odoo-ls/src/odoo/addons/mail/models/mail_mail.py", line 256, in send
smtp_session=smtp_session)
File "/root/odoo-ls/src/odoo/addons/mail/models/mail_mail.py", line 363, in send
msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)
File "/root/odoo-ls/src/odoo/odoo/addons/base/models/ir_mail_server.py", line 536, in send_email
raise MailDeliveryException(("Mail Delivery Failed"), msg)
odoo.addons.base.models.ir_mail_server.MailDeliveryException: ('邮件发送失败', "通过SMTP发送邮件失败 'None'.\nSMTPSenderRefused: 501\nMail from address must be same as authorization user.\[email protected]")During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/odoo-ls/src/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/root/odoo-ls/src/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/root/odoo-ls/src/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/root/odoo-ls/src/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/root/odoo-ls/src/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/root/odoo-ls/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/root/odoo-ls/src/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/root/odoo-ls/src/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/root/odoo-ls/src/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/root/odoo-ls/src/odoo/addons/website_profile/controllers/main.py", line 283, in send_validation_email
request.env.user._send_profile_validation_email(**kwargs)
File "/root/odoo-ls/src/odoo/addons/website_profile/models/res_users.py", line 58, in _send_profile_validation_email
self.id, force_send=True, raise_exception=True)
File "/root/odoo-ls/src/odoo/addons/mail/models/mail_template.py", line 523, in send_mail
mail.send(raise_exception=raise_exception)
File "/root/odoo-ls/src/odoo/addons/mail/models/mail_mail.py", line 262, in send
smtp_session.quit()
File "/usr/lib/python3.6/smtplib.py", line 984, in quit不知道哪里有问题 有没有可以参考的配置?
-
-
@托尼 因为你的邮箱服务器不支持Emai Relay所以不能发送验证用户以外的邮件。
可以安装这个模块来解决你的问题: https://apps.odoo.com/apps/modules/13.0/mail_outbound_static/
-
@托尼 因为你的邮箱服务器不支持Emai Relay所以不能发送验证用户以外的邮件。
可以安装这个模块来解决你的问题: https://apps.odoo.com/apps/modules/13.0/mail_outbound_static/
-
-