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
-
Activate the ‘Developer Mode’.
-
Go to Settings > Technical > Email > Outgoing Mail Servers.
-
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
|

-
Click on “Test Connection” button to verify that your account is set up properly.
-
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:

2. Incoming Mail Server Configuration in Odoo:
-
Activate the ‘Developer Mode’.
-
Go to Settings > Technical > Email > Incoming Mail Servers.
-
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
|

-
Click on “Test & Confirm” button to verify configuration.
-
Reply to the Quotation email which was sent through Odoo from Mail application.
-
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
Alias configuration in Office 365:
-
Log in to Microsoft account.
-
Select the App launcher icon (
) in the upper-left and select “Admin” icon as per below screenshot:

-
Now Open the “Users” menu:

-
Select the user for which you have configured outgoing mail server in Odoo.
-
Provide the alias of the email through which you want to send mail.

Set alias email address in Preferences of Odoo:
-
Configure the outgoing mail server as mentioned the above steps.
-
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.
-
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.
For professional paid support, you may contact us at
[email protected]
.