Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2762 Tampilan

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?



Avatar
Buang

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.

Penulis Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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.


Avatar
Buang
Penulis

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?

Post Terkait Replies Tampilan Aktivitas
0
Mei 24
2257
0
Mar 21
2955
0
Mar 16
3628
2
Agu 15
5682
0
Jul 24
1251