Hi,
I am using my own SMTP server to be able to send email in Odoo. The email ID that is meant to be used is info@magicmindtechnologies.com but during initial setup I had mistyped it as info@magicmindtechnlogies.com I have since changed the email ID and tested the SMTP setup, it shows me all ok but when I try to send any email I get the following error.
The error clearly shows that Odoo is still trying to send email via info@magicmindtechnlogies.com how do I get this sorted?
Error:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/addons/base/models/ir_mail_server.py", line 526, in send_email
smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/smtplib.py", line 888, in sendmail
raise SMTPDataError(code, resp)
smtplib.SMTPDataError: (553, b'Relaying disallowed as info@magicmindtechnlogies.com')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/addons/mail/models/mail_mail.py", line 256, in send
smtp_session=smtp_session)
File "/opt/odoo/odoo13/addons/mail/models/mail_mail.py", line 363, in _send
msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)
File "/opt/odoo/odoo13/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: ('Mail Delivery Failed', "Mail delivery failed via SMTP server 'None'.\nSMTPDataError: 553\nRelaying disallowed as info@magicmindtechnlogies.com")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo13/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo13/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo/odoo13/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo13/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo13/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo13/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo13/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo13/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1327, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1319, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo13/odoo/api.py", line 385, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/opt/odoo/odoo13/odoo/api.py", line 365, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "<decorator-gen-137>", line 2, in create
File "/opt/odoo/odoo13/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/opt/odoo/odoo13/addons/digest/models/res_users.py", line 12, in create
user = super(ResUsers, self).create(vals)
File "<decorator-gen-116>", line 2, in create
File "/opt/odoo/odoo13/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/opt/odoo/odoo13/addons/auth_signup/models/res_users.py", line 239, in create
user.with_context(create_user=True).action_reset_password()
File "/opt/odoo/odoo13/addons/auth_signup/models/res_users.py", line 200, in action_reset_password
template.with_context(lang=user.lang).send_mail(user.id, force_send=force_send, raise_exception=True)
File "/opt/odoo/odoo13/addons/mail/models/mail_template.py", line 523, in send_mail
mail.send(raise_exception=raise_exception)
File "/opt/odoo/odoo13/addons/mail/models/mail_mail.py", line 262, in send
smtp_session.quit()
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/smtplib.py", line 984, in quit
res = self.docmd("quit")
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/smtplib.py", line 420, in docmd
self.putcmd(cmd, args)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/smtplib.py", line 367, in putcmd
self.send(str)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/smtplib.py", line 359, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first