Skip to Content
Menu
This question has been flagged

I have set up my Odoo 12 to have 1 outgoing mail server and 1 incoming mail server. The outgoing mail server is perfectly fine. Email got sent no problem each time.

The incoming mail server is quite strange. I have set it up so that it can connect to the mail address. All of the setting has been done and it can be confirmed. I have also set it up so that each new email will make new record of Helpdesk Ticket. But each time the scheduled fetch is there, nothing happened. The email in the server got marked into read, but nothing is created. No new record whatsoever.

At first I suspected that the the connection is wrong. But then I tried manual fetch when some new email arrived and still marked unread, and then it works as intended. The email got marked to Read and new tickets got created.  It seems that the fetch logic works without a problem. The one that doesn't work is the automatic/scheduled fetch.

Has anyone in here face the same thing? Any input or something? Thank you for reading. Any help is greatly appreciated

Avatar
Discard

Hello Nathan. I am experiencing the same problem. Did you ever find the solution?

Best Answer

I found what my problem was, and this may help other people so I will post as an answer.

Make sure you don't have anything else marking your emails as read.  I accidentally had an old development instance of Odoo get restarted when a server restarted, and this old instance of Odoo also had an active connection to my main email account I setup for the emails being sent into Odoo (catchall).  

So when that other "rouge" cron job would run, it would grab the new emails into that old Odoo installation, mark the emails as read, and therefore my correct Odoo instance would not pull those emails in because they were already marked read.

This may not solve the problem for everyone, but it fixed it for me.  Now all my emails are correctly fetched on schedule, and are routed to the correct places as long as whomever responded didn't ruin the email headers in some way.

Hope this can help some people.

If you want to test this, just turn off fetching on your Odoo instance, and watch the email inbox to see if mails are being marked as read.  If Odoo isn't fetching emails, but emails are being marked read, then you need to find out what is marking those emails outside of Odoo and stop that action.

Avatar
Discard
Related Posts Replies Views Activity
3
May 24
4621
0
Mar 23
2548
0
Dec 20
3013
1
Jan 20
7324
0
Apr 17
3617