Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Problem configuring Inbound/Outbound email servers with Outlook/Azure

Subscribe

Get notified when there's activity on this post

This question has been flagged
emailoutlookazureodoo16features
2 Replies
3624 Views
Avatar
Ghislain Gadbois

Hi,


I have an on-premise installation of Odoo 16.0 (Community Edition).  I want to configure Inbound/Outbound email servers with Outlook service hosted in Azure.


I followed all the steps detailed here:  https://www\.odoo\.com/documentation/16\.0/administration/maintain/azure_oauth\.html


When\ I\ configure\ the\ outgoing\ email\ server,\ I\ click\ on\ Connect\ your\ Outlook\ account\ and\ authenticate\ in\ Azure\. \ After\ authentication,\ all\ I\ get\ is\ an\ error\ message\ in\ the\ Azure\ authentication\ page\ saying AADSTS900971:\ No\ reply\ address\ provided\.


When\ I\ configure\ the\ incoming\ email\ server,\ I\ get\ the\ exact\ same\ result\.


I\ tried\ to\ find\ what\ is\ causing\ this\ error\ and\ it\ seems\ to\ be\ caused\ by\ a\ missing\ Redirect\ URL\ \(see

https://answers.microsoft.com/en-us/msteams/forum/all/aadsts900971-no-reply-address-provided/1967cfa2-fde1-4359-b66d-bc5b0d7dacfe).  I triple-checked the settings in Azure and everything looks fine...


Here's the config I have in Azure...


Here's the global config I have in Odoo:


Here's the config I have for the Outgoing email server:



What else can I check to resolve this error?


Thanks in advance!



0
Avatar
Discard
Avatar
Jainesh Shah(Aktiv Software)
Best Answer

Hello Ghislain Gadbois,


The "Redirect URI" for the Outlook/Azure services should be as follows.

Please refer this documentation for the same: https://www.odoo.com/documentation/16.0/applications/productivity/calendar/outlook.html?highlight=microsoft_account%20authentication

Redirect URI: https://{DOMAIN}/microsoft_account/authentication

Thanks & Regards,
Email:  odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

0
Avatar
Discard
Avatar
Ghislain Gadbois
Author Best Answer

Hi all,

I found something that could lead me in the right direction, but need some help to figure out how Odoo can be configured to "behave" properly...

In the documentation referenced in my original post (https://www\.odoo\.com/documentation/16\.0/administration/maintain/azure_oauth\.html\),\ it\ says\ to\ add\ the\ redirect\ URL\ to\ the\ Azure\ configuration\ using\ that\ format: \ https://\.\.\./microsoft_outlook/confirm\.

I\ used\ Fiddler\ to\ intercept\ the\ authentication\ request\ sent\ by\ Odoo\ to\ Outlook\ and\ here's\ what\ I\ got:


Odoo\ clearly\ sent\ a\ redirect_uri\ starting\ with\ http://,\ which\ is\ not\ supported\ by\ Azure\ \(as\ stated\ here: https://learn\.microsoft\.com/en\-us/azure/active\-directory/develop/reply\-url\)\.

Odoo\ is\ behind\ a\ reverse\ proxy\ that\ forwards\ all\ http\ traffic\ to\ https\ as\ mentionned\ in\ the\ Odoo\ documentation\ \(https://www.odoo.com/documentation/15.0/administration/install/deploy.html?highlight=proxy_mode).

Here is my odoo.conf file...

[options]

admin_passwd = *****

db_host = False

db_port = False

db_user = *****

db_password = False

xmlrpc_port = 8069

logfile = /var/log/odoo/odoo.log

addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons

proxy_mode = True


Is there a way to tell Odoo to use https in the redirect_uri?


Thanks in advance!


Best regards!




0
Avatar
Discard
Ghislain Gadbois
Author

Hi all,

I managed to go a little further with this issue...

I found another question with a similar problem here: https://www.odoo.com/fr_FR/forum/aide-1/uri-mismatch-on-outlook-calandar-option-and-ms365-209247

So I followed the steps mentionned:
1. Activate Developer mode
2. Go to Settings / Tecnical / System parameters
3. Changed web.base.url to https://odoo.mydomain.com

Then, I managed to complete the Outook authentication.

Now, I'm waiting my system administrator to approve the connection...

Hope this helps someone some day!

Best regards!

Ghislain Gadbois
Author

I also noticed that web.base.url sometimes reverts back to the http://... value...

Adding a new parameter web.base.url.freeze = true seems to have solved this problem (see https://www.odoo.com/fr_FR/forum/aide-1/web-base-url-automatic-reset-31937).

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Integrating Outlook Email w/ Open ERP
email outlook
Avatar
1
Jul 24
3110
Send the email via Outlook and not OpenERP - Python code
email outlook
Avatar
Avatar
2
Jul 24
5864
Outlook plug-in only showing headers
email outlook
Avatar
0
Mar 15
4633
Forwarding emails to a specific Opportunity
email opportunity odoo16features
Avatar
Avatar
1
Mar 25
3391
Send email by outlook if it is installed Solved
email outlook win32
Avatar
Avatar
2
Jul 24
6502
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now