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?
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.