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

Office 365 Mailserver with User Alias

Subscribe

Get notified when there's activity on this post

This question has been flagged
mailmailserverazure
2 Replies
3826 Views
Avatar
Michael Hofer

We would like to use Microsoft O365 as outgoing mailserver. We have followed the manual and it's working in general.

However, our O365 users have an alias and it's actually the alias which should be used within Odoo.

Example: 

Login is user@domain1.com, actual email is user@domain2.com


Odoo does not seem to allow to have a different domain in from_filter and the username in the outgoing mail server configuration.

Is there a way to solve this problem?



0
Avatar
Discard
shubham shiroya

you can try this way:
you can follow these steps:

Login to Odoo: Log in to your Odoo instance with an administrator account.

Open User's Profile: Go to "Settings" > "Users & Companies" > "Users" and select the user for whom you want to set up an alias.

Edit User Profile: Click on the user's name to open their profile.

Email Addresses: In the user's profile, you will see a section for "Email Addresses." Here, you can add additional email addresses, including aliases. Click on "Add an item" to add a new email address.

Add Alias: Enter the desired alias email address in the "Email" field. For example, if the user's primary email is user@domain1.com and you want to use user@domain2.com as an alias, enter user@domain2.com in the "Email" field.

Set Alias as Default: By default, the first email address in the list is considered the primary email address. You can use the "Set as Default" checkbox to make the alias the default email address for outgoing emails.

Save: After adding the alias, make sure to save the changes to the user's profile.

Once you've added the alias, Odoo will use the alias email address for outgoing emails from that user's account. However, please note that Odoo might still use the primary email address in some system-generated emails or notifications.
Once you've added the alias, Odoo will use the alias email address for outgoing emails from that user's account. However, please note that Odoo might still use the primary email address in some system-generated emails or notifications.

Avatar
Michael Hofer
Author Best Answer

I have just noticed that this has been fixed in this commit: https://github.com/odoo/odoo/commit/a4335ab1e55bb2270bb4d39dc68ac1d4a93d35bf

0
Avatar
Discard
Avatar
shubham shiroya
Best Answer

from_filter parameter in the outgoing mail server configuration is used to restrict the allowed sender addresses. It does not necessarily need to match the actual email address that will be used as the sender. This can be used to set up aliases or a subset of domains for the allowed sender addresses.

In your case, if you want to use an alias (e.g., user@domain2.com) as the "From" address in outgoing emails while the actual login is user@domain1.com, you can do the following:

  1. Configure the Outgoing Mail Server:

    Set up the outgoing mail server with the from_filter parameter as domain2.com. This means that any email address from the domain2.com domain will be allowed as the "From" address in outgoing emails.

  2. Configure User Email:

    For each user, set the "From" email address to the alias you want (e.g., user@domain2.com). You can do this by:

    • Going to Settings > Users & Companies > Users.
    • Edit the user you want to configure.
    • In the "Access Rights" tab, scroll down to the "Email Addresses" section.
    • Add the alias email address (user@domain2.com) as an additional email.

    This way, when the user sends an email, the "From" address will be the alias address.

  3. Alias in Actual Email Sending:

    When sending an email through Odoo, ensure that you use the alias email address (user@domain2.com) as the "From" address. You can set the reply_to parameter to the user's actual email (user@domain1.com) if you want replies to go to the correct address.


0
Avatar
Discard
Michael Hofer
Author

Many thanks for the detailed reply, much appreciated. I have just tested this, but in the "Access Rights" tab, I don't have an "Email Addresses" tab in Odoo 16. Does this require an extra module?

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
Hostinger Mail - Odoo
mail mailserver
Avatar
0
May 24
3203
Critical Problem: Odoo 14 auto responder loop to mails from unknown sender
mail mailserver
Avatar
0
Mar 21
3823
Automatic record creation fails on incoming mails
mail mailserver
Avatar
0
Mar 16
4398
where can I find openerp_mailgate.py on v8? Solved
mail mailserver
Avatar
Avatar
Avatar
2
Aug 15
6665
Email Issue
mail mailserver v17
Avatar
0
Jul 24
1959
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