We used cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. What For?

« Back to Blogs

Office 365 mail server configuration in Odoo

When we set up a new web site or an application, it is most likely that we also want an email server configured that can handle incoming and outgoing email to run your business smoothly and effectively. In this tutorial we will cover how to configure the Microsoft Office 365 email account for outgoing, incoming mail servers and also alias email configuration in Odoo. So, Let’s start to configure it.

1. Outgoing Mail Server Configuration in Odoo

  1. Activate the ‘Developer Mode’.

  2. Go to Settings > Technical > Email > Outgoing Mail Servers.

  3. Open any existing record or Create a new one. After that do following configurations:


  • Description: Office 365 Outgoing mail server

  • SMTP Server: smtp.office365.com

  • Connection Security: TLS (STARTTLS)

  • Username: [email protected]

  • Password: Office 365 mail server password

  • SMTP Port: 587


Configure Outgoing Mail Server in Odoo


  1. Click on “Test Connection” button to verify that your account is set up properly.

  1. Go to user preferences by clicking on user name on the upper-right corner and click on Preferences from the dropdown. Then write the same email address which you configured for an outgoing mail address as below screenshot:


Add Outgoing Mail Address


  • We have configured the outgoing mail server successfully. Try to send a Quotation to verify it.


2. Incoming Mail Server Configuration in Odoo:

  1. Activate the ‘Developer Mode’.

  2. Go to Settings > Technical > Email > Incoming Mail Servers.

  3. Open any existing record or Create a new one. After that do following configurations:


  • Description: Office 365 incoming mail server

  • Server Type: IMAP Server

  • Server Name: outlook.office365.com

  • Port: 993

  • SSL/TLS: True

  • Username: [email protected]

  • Password: Office 365 mail server password


Incoming Mail Server Configuration in Office 365

 

  1. Click on “Test & Confirm” button to verify configuration.

  2. Reply to the Quotation email which was sent through Odoo from Mail application.

  3. Go to Incoming Mail Servers from step 2 and click on “Fetch Now” button. It will fetch the mail. You can verify by opening that Quotation.


3. Alias Configuration in Office 365 and Odoo


  • An alias is a way to disguise the original email address, through which communication is going on. It enables sender to send an email using the alias of the email rather than original email address to the recipient. We will have to configure an alias both in Office 365 and in Odoo.

Alias configuration in Office 365:

  1. Log in to Microsoft account.

  2. Select the App launcher icon in the upper-left and select “Admin” icon as per below screenshot:

 

Click on Admin in App Launcher Screen

 

  1. Now Open the “Users” menu:


Open Users Manu in Office 365


  1. Select the user for which you have configured outgoing mail server in Odoo.

  2. Provide the alias of the email through which you want to send mail.


Office 365 mail server configuration in Odoo

 

Set alias email address in Preferences of Odoo:

  1. Configure the outgoing mail server as mentioned the above steps.

  2. Go to user preferences by clicking on user name on the upper-right corner and click on Preferences from the dropdown. Update the email address with the alias email address.

  3. Now, If you send an email from Odoo then, it will display an alias of email instead of the original email address of the outgoing server which we have configured.

contact-us Request a callback WhatsApp