Followed the instructions for setting up outgoing SMTP server. Test is sucessful and there is only one SMTP server setup and the priority is 1. When I try to send an invitation email I get this error:
Mail delivery failed via SMTP server 'None'.
SMTPDataError: 550
5.7.60 SMTP; Client does not have permissions to send as this sender [CY1PR1101MB1228.namprd11.prod.outlook.com]
My SMTP server is named "Outgoing" not "None".
Here is what I am seeing in the log:
2017-12-14 13:55:07,191 816 INFO sanders odoo.addons.base.ir.ir_mail_server: Mail delivery failed via SMTP server 'None'.
SMTPDataError: 550
5.7.60 SMTP; Client does not have permissions to send as this sender [BN3PR1101MB1218.namprd11.prod.outlook.com]
2017-12-14 13:55:07,191 816 ERROR sanders odoo.addons.mail.models.mail_mail: failed sending mail (id: 18) due to Mail Delivery Failed
Mail delivery failed via SMTP server 'None'.
SMTPDataError: 550
5.7.60 SMTP; Client does not have permissions to send as this sender [BN3PR1101MB1218.namprd11.prod.outlook.com]
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_mail_server.py", line 457, in send_email
smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
File "C:\Program Files (x86)\Odoo 11.0\python\lib\smtplib.py", line 888, in sendmail
raise SMTPDataError(code, resp)
smtplib.SMTPDataError: (550, b'5.7.60 SMTP; Client does not have permissions to send as this sender [BN3PR1101MB1218.namprd11.prod.outlook.com]')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\mail\models\mail_mail.py", line 326, in _send
msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_mail_server.py", line 466, in send_email
raise MailDeliveryException(_("Mail Delivery Failed"), msg)
odoo.addons.base.ir.ir_mail_server.MailDeliveryException: ('Mail Delivery Failed', "Mail delivery failed via SMTP server 'None'.\nSMTPDataError: 550\n5.7.60 SMTP; Client does not have permissions to send as this sender [BN3PR1101MB1218.namprd11.prod.outlook.com]")
Ermin, Since I can't reply to your post I'm replying here. Thanks for the link. I checked and the situation described in that post is different from mine. We use hosted Exchange server and I have already configured connectors and allowed IP addresses and am able to IMAP for mail clients and other CRM apps. The error I am getting shows that odoo is trying to send through a server that doesn't exist "None" instead of using the outgoing SMTP server that I have already setup and tested which is named "Outgoing". I tried to paste a screenshot of my setup but couldn't.