Hello,
My Odoo 11 using an external mail server.
Mass mailings works fine when sending mails\ counting "opened" and "bounced", but it failed to count replied mails.
Details as follow
1. odoo server hostname/domain is crm.mydomain
external mail server domain is mydomain, hostname is mail.mydomain
2. user@mydomain is login ID who send mails. it is also the sender/ replyto address in mass mails.
user@mydomain is not created in my mail server, so emails to user@mydomain are received from catchall .
2. when odoo try to fetch Replied email, i get these:
2018-07-14 01:53:50,631 18738 INFO mydatabase odoo.addons.base.ir.ir_cron: Starting job `Mail: Fetchmail Service`.
2018-07-14 01:53:50,639 18738 INFO mydatabase odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server catchall
2018-07-14 01:53:51,091 18738 INFO mydatabase odoo.addons.fetchmail.models.fetchmail: Failed to process mail from imap server catchall. Traceback (most recent call last):
File "/home/ubuntu/odoo/addons/fetchmail/models/fetchmail.py", line 179, in fetch_mail
res_id = MailThread.with_context(**additionnal_context).message_process(server.object_id.model, data[0][1], save_original=server.original, strip_attachments=(not server.attach))
File "/home/ubuntu/odoo/addons/mail/models/mail_thread.py", line 1300, in message_process
routes = self.message_route(msg_txt, msg, model, thread_id, custom_values)
File "/home/ubuntu/odoo/addons/mass_mailing/models/mail_thread.py", line 31, in message_route
return super(MailThread, self).message_route(message, message_dict, model, thread_id, custom_values)
File "/home/ubuntu/odoo/addons/mail/models/mail_thread.py", line 1184, in message_route
(email_from, email_to, message_id)
ValueError: No possible route found for incoming message from "name" <name@testdomain> to "user" <user@mydomain> (Message-Id <test_7F75A9FF322DF2F4DFDBE95DE54CF1D85A0A@testdomain>:). Create an appropriate mail.alias or force the destination model.
2018-07-14 01:53:51,093 18738 INFO mydatabase odoo.addons.fetchmail.models.fetchmail: Fetched 1 email(s) on imap server catchall; 0 succeeded, 1 failed.
3. in the mail sent from odoo to name@testdomain ,we have
Message-Id: <545219166425154.1531472047.956907510757446-openerp-reply_to@crm.mydomain>
4. in replied email, we have
In-Reply-To: <545219166425154.1531472047.956907510757446-openerp-reply_to@crm.mydomain>
References: <545219166425154.1531472047.956907510757446-openerp-reply_to@crm.mydomain>
So "in-reply-to" match with original "message-id" ,but why odoo couldn't find route?
Counter of "replied" not work, neither new oddo message for user@mydomain