How to use Office365 as an outgoing mail/smtp server with odoo?

If you are getting an error like “SMTPDataError:… SMTP; Client does not have permissions to send as this sender

It seems a normal scenario to use office 365 as a email server with Odoo but there are some known issues while you configure it.

  1. It will not directly allow you to use multiple FROM address or different FROM address then the sender address which is being used in authentication. E.g. you have configured and you would like to set as a FROM address. This will be needed when you want all your Odoo users to send emails using same FROM address.

As a solution, you have a couple of options,

  1. You can relay your outbound emails from an another MTA like Sendgrid and use the multiple sender addresses.
  2. You may create a security group and follow the steps below,
    1. Create a security group e.g.
    2. Add all email accounts to that group and give send as permission.
    3. Try sending an email and it should work!
  3. Check out reverse DNS settings of your domain name and make sure that its mapped to the return path properly.


One Reply to “How to use Office365 as an outgoing mail/smtp server with odoo?”

  1. Many thanks for sharing these kinds of wonderful articles. In addition, the optimal travel and also medical insurance strategy can often eradicate those problems that come with travelling abroad. A new medical emergency can shortly become extremely expensive and that’s sure to quickly decide to put a financial impediment on the family’s finances. Putting in place the great travel insurance program prior to leaving is definitely worth the time and effort. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *