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

Odoo SH | Using Office 365 relay for outgoing mail

Subscribe

Get notified when there's activity on this post

This question has been flagged
mailingoffice365
4 Replies
7455 Views
Avatar
Stan

Hello everyone!


I have a problem which ive been working on for days.

I am really hoping that someone could help me out.


I use Odoo SH and it is important that I can send e-mails with Office 365 in Odoo 15, but setting it up does not go smoothly.


I have currently created a relay in Exchange Online that contains the ip address of Odoo.
According to the following page, I need to use Microsoft's guide to properly use the relay:

https://www.odoo.com/documentation/saas-15.2/nl/applications/general/email_communication/email_servers.html


which redirects to Microsoft's link to create and use the relay:

https://docs.microsoft.com/nl-nl/Exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using- microsoft-365-or-office-365?redirectSourcePath=%252fen-us%252farticle%252fHow-to-set-up-a-multifunction-device-or-application-to-send-email-using-Office-365-69f58e99 -c550-4274-ad18-c805d654b4c4


The problem is that microsoft instructs to use the following information in my client (in this case Odoo.)


Server/smart host:
yourdomain-com.mail.protection.outlook.com


Port: Port 25
TLS/StartTLS: Enabled

But again in the link from Odoo it is stated that port 25 is blocked which is actually the case.


At this point, Odoo's page is contradicting itself.
It is very important to me that I can use the relay in this way and do not have to provide user credentials.
How can I solve this?

0
Avatar
Discard
Avatar
Edward Yoch | VentorTech
Best Answer

Hi Guys,

We have prepared a guide on how to integrate the Odoo SH with Office 365 mail server ( https://ventor.tech/odoo/how-to-configure-emails ). It has been verified on some customers already, and all screenshots are made for Odoo 14 and 15 and latest version of Office 365.

Main point out configuration is sending of emails is done by the same mailbox like for receiving. Since it is mailbox but not SMTP relay, then we cannot specify anyone other than the owner of the mailbox as the sender (in current case info@your-domain.com), so we made a configuration where the sender is always the same. As a result all email recipients will see “Odoo User or Notification or etc.”<info@your-domain.com> instead “Odoo User or Notification or etc.”.
If it's compromise is right for you so you can see more details by link above. If it's really important to you that the sender looks indistinguishable from an ordinary person and has own email, then because of the aforementioned circumstances to do this you need change place of Odoo deploying or use other mail provider instead Office 365 Exchange.

5
Avatar
Discard
Avatar
Stan
Author Best Answer

Hi Chris,

Thank you for your response.

Can i conclude that it is almost impossible to use Gsuite/Google or Office mail servers without any problems?

Because it seems like that when using Google, mails go to spam in Yahoo and Outlook.

0
Avatar
Discard
Avatar
Chris Mann
Best Answer

Unfortunately this is a hard restriction and you are correct that port 25 is deliberately blocked in Odoo.SH (as it is in some cloud providers also).
It's a shame Microsoft do not offer an SMTP relay on any port other than 25.
I would recommend moving to MailGun or SMTP2Go, both offer SMTP relay on a variety of ports and I have successfully used it on many Odoo installations.

0
Avatar
Discard
Avatar
Best Answer

Hi Stan, regardless of the mail server choice, you'll still need to configure DNS entries to avoid going to SPAM.

This document may help you on how to do it: https://www.odoo.com/documentation/15.0/applications/general/email_communication/email_servers.html

All mail servers have entries in the DNS which receiving mail servers will look to see if the message comes from one of the authorized sender servers (mx entries), besides that, there are other entries that must exist in order to avoid most spam services.

Regards,

0
Avatar
Discard
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
Bug odoo v18 sending abandoned cart x2
mailing
Avatar
0
Jul 25
1711
Invalid link on Task invitation
mailing
Avatar
0
May 22
2819
How-To Add Salesperson field from Contact to Mailings to be used as Dynamic Placeholder
mailing
Avatar
0
May 21
2259
Unable to send email after clicked retry on Mass Mailings
mailing
Avatar
Avatar
Avatar
2
Jul 16
5827
Massing explanation
mailing
Avatar
0
Mar 15
3820
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