Skip to Content
Menu
This question has been flagged

Hello everyone!


I'm currently configuring an Odoo Online (v16) database for mail marketing (say company.odoo.com). I should say I'm quite lost regarding the email configuration to apply to obtain an "ideal" workflow.

What I try to obtain:

  • Send mailings on my personal behalf, using my own email address ; I don't want the "notifications@company.odoo.com"
  • Track bouncing email addresses automatically
  • Track replies automatically
  • Use my own company.com domain instead of company.odoo.com



At the moment, and without any email redirection set, I'm almost sure I understood how to track bounces: the sender address should belong to company.odoo.com , whatever the local target ("whatever@company.odoo.com" would work). Then I'm not sure to understand what "bounce@company.odoo.com" is for...
This also means I can't use my email address me@company.com as a sender because bounces won't be tracked. At least without a domain name configuration.


I also understood that catchall@company.odoo.com is not designed to receive replies from a mass mailing: the server answers it should be used to reply to an existing discussion. The previous address whatever@company.odoo.com doesn't work this time.
That's where I'm confused: how am I supposed to track replies in the Email Marketing app if I can't reply to the original server? Is there a dedicated address? Should I create an alias for that?
The same question arises for the complete workflow: what is the way to create a CRM opportunity from a mailing, while still counting the replies?


Finally I suppose things may get simpler if I manage to map my company domain to my Odoo instance. The big question is how do I do the following:

  • keep using my emails as standard (reading/replying from Gmail)
  • get responses from mass mailings directly in Odoo
  • track mailing statistics (bounces, replies, related opportunities)
  • for a later use: enabling the domain to route emails to Odoo (catchall feature)

Please note that our company.com domain have MX records that redirect to our Google Workspace organization.


Any help would be greatly appreciated!

Justin

Avatar
Discard
Author

Just to be clear, when I set the Reply To field to be my catchall alias and then someone tries to answer the email received, this is what Odoo sends back to him/her:
"The email sent to "Catchall" <catchall@company.odoo.com> cannot be processed. This address is used to collect replies and should not be used to directly contact MyCompany."

Author Best Answer

I think I finally solved my issue and found a global configuration that I consider satisfying.


On the email server side (Google Workspace), I created a catch-all rule to redirect specific messages to Odoo by:

  1. taking all messages sent to unknown recipients
  2. replacing the domain from "company.com" to "company.odoo.com"

Any aliases newly created in Odoo will then work out-of-the-box! (unless the address is already configured into Google Workspace, of course)


This rule, by itself, is enough to get Email Marketing tracking working.

  • Bounces are tracked as soon as the Send From field is something that would be redirected to Odoo. This does not necessary need to be an existing alias in Odoo! no-reply@company.com works for me.
  • Replies are tracked as soon as the Reply To field is an existing alias in Odoo. I tested with sales@company.com which is the alias defined in my CRM app, but I suppose any of them should work.


This led me to the following email (sending) configuration:

mail.catchall.domain = company.com
mail.catchall.alias = response
mail.bounce.alias = bounce
mail.default.from_filter = company.com
mail.default.from = contact

Note that I still don't understand how "bounce@" works, but it does! Without explicitly using the address...


Based on what I initially wanted to achieve, it seems complicated to send emails with my own address since bounce tracking won't work, unless I create a "dual delivery" routing rule. But this would make Odoo receive all my personal emails, which creates many "email error" answers from Odoo.

I also can confirm that "Reply To = catchall@company.com" from Email Marketing won't work.


All the rest is OK for me!

Avatar
Discard

Bonjour from a french user
Thanks for your explanations of how "it" works and the corresponding settings. (highly complementary to odoo own writings).
Not yet used on my own odoo system ( odoo saas) just implemented in a v16 release after several prior releases over the years.
Merci

Author

I'm back to give some additionnal information from a working email campaign I've just sent.

First, I've found a way to get answers to my email while still getting correct "Replied" statistics and without using an email alias attached to the Sales/CRM. Now the incoming responses fall into the mailing's chatter!
For this, I've configured an alias "mailing20" based on the "Mass Mailing" model. The "Record Thread ID" field is set with the value "20", which is of course the ID of my mass mailing. The drawback is that it's impossible to directly answer to the received response; I need to start a new conversation.
I would have preferred to route responses to the corresponding Mailing Contact's chatter but have found no way to set the "Record Thread ID" dynamically based on the sender email address.

Second, the bounce@ address does work well, and now I understand how!
From what I can see in the email headers, Odoo effectively defined a 'Return-Path: bounce@company.com' just because of the System Parameters. This fortunately doesn't prevent the recipient to see the correct sender (From: "Somebody" <non-existing-email-address@company.com>) nor to response to the correct address (Reply-To: Somebody <mailing20@company.com>).
Kind of magic!

-----

As a summary, here is my final configuration:

[Gmail / Google Workspace]
* Domain configured as an SMTP relay
* Route all incoming emails sent to unknown user(s) of our organization (@company.com) to Odoo by rewriting the destination domain to "company.odoo.com"
* Also send a copy of the corresponding emails to the IT admin

[Odoo] System parameters:
mail.catchall.domain = company.com
mail.catchall.alias = response
mail.bounce.alias = bounce
mail.default.from_filter = company.com
mail.default.from = contact

[Odoo] Email alias, manually created in developer mode:
mailing20 @ company.com
* Model: Mass Mailing
* Record Thread ID: 20

[Odoo] Settings of my mass mailing:
* Send From: "Somebody" <non-existing-email-address@company.com>
* Reply To: "Somebody" <mailing20@company.com>

Best Answer

In General settings you can configure your domain by enabling 'Customer email servers' options.

Avatar
Discard
Author

Thanks Jaideep,

In fact I already know that.
But I'm not really sure that configuring an email server is a real need in my case.

What I'm missing most, as far as I understand, is the configuration that I'm supposed to apply on my already existing mail server in order for Odoo to receive the messages, without breaking the existing route to to my inbox.

Some advices?

If you provide the domain in settings, then the sent emails would be from notifications@yourcompany.com. The replies to these emails would be automatically received in your Odoo database.

If you wish to receive emails (not replies) sent to for eg info@yourcompany.com then you would need to configure a new incoming email server with username and password for the user (in this example info@yourcompany.com), emails would be received in your inbox as well as Odoo.

Author

> The replies to these emails would be automatically received in your Odoo database.
Well, at least not on my side!

My goal is to not configure an inboud server because the documentation says:
"If the database’s hosting type is Odoo Online or Odoo.sh, redirecting incoming messages to Odoo’s domain name instead of the external email server is recommended. That way, incoming messages can be received without delay. Odoo Online only fetches incoming messages of external servers once every hour. Redirections for all email addresses should be set to Odoo’s domain name in the email server (e.g. catchall@mydomain.ext to catchall@mycompany.odoo.com)."

The problem is: How am I supposed to configure my DNS records and existing mail server to copy (or redirect?) the received emails to Odoo. Moreover, how do I do to make this future proof: I don't want to create a new rule in my server each time a user creates an email alias!

Side question: does Odoo uses the work email of registered users to receive some sort of personal emails? Cause I think I read that somewhere...

Thanks!

If you wish to use mycompany.odoo.com, then there is no other configuration required as you are on Odoo online.

You only need to create a mail forward in the mailbox of alias@mycompany.com to alias@mycompany.odoo.com as an alternate to creating an Incoming mail server in Odoo as the mails are fetched only once an hour. This is only for emails sent directly to alias@mycompany.com

I would first test the above configuration as you mention that you are not receiving replies in Odoo to emails originating from your DB.

As 2nd step I would change the domain from mycompany.com in setting (and no other changes to mail servers) to test again.

>>Side question: does Odoo uses the work email of registered users to receive some sort of personal emails? Cause I think I read that somewhere...<<
NO

Related Posts Replies Views Activity
0
Mar 15
3169
1
Mar 25
1988
3
Apr 25
2020
0
Jan 25
676
6
Nov 24
2305