Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
6950 Visualizzazioni

Hello,

i've been struggling several days with that problem, looking up a number of tutorials and nothing seems to work. Outgoing mail sent from odoo using my mailserver works.

Odoo10 on Ubuntu16.04 LTS running in a VirtualBox, installed with Yenthe van Ginnekens script. Installed Modules: only "Contacts" and "Discuss" to keep it simple. As first step, i want  incoming email to the catchall "info@mydomain.de" in my admin postbox

General settings/Incoming Mail-Server/Incoming: Name Incoming; Servertype IMAP; Servername xxxxx.mydomain.de; User: xxxxx-info; Port 993; SSL/TLS checked; "test&confirm" says all should work fine.

Alias Domain: mydomain.de

Automation/Scheduled tasks/ Fetchmail Service set to 1 Minute because i'm impatient :)

User / Administrator; Login info@mydomain.de; Preferences/Messaging and Social: All Messages; Messaging Alias info@mydomain.de; Alias Accepts Emails From Everyone

Mails are visible in the webmailer, so odoo should fetch and deliver them to the user "Administrator" but all i see in /var/log/odoo/odoo-server.log every minute is (atleast the scheduler is doing well *g*)

  1. [timestamp] "INFO (db-name) odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server incoming"

  2. [timestamp] "INFO (db-name) odoo.addons.fetchmail.models.fetchmail: Fetched 0 email(s) on imap server incoming; 0 succeeded, 0 failed

and nothing happens in odoo. Any suggestions with this?!

Avatar
Abbandona

Odoo only fecth unread emails, did you check it that?

Risposta migliore

Hi Markus, did you solve the problem?

Avatar
Abbandona
Autore Risposta migliore

This brought me one step further since odoo touched them one time in the past and they appeared as "read", so they won't be touched again in the future.

I got around this by sending a new mail from my gmail to info@mydomain.com to make sure it's new to odoo and checking the logs the next minute. Then i got:

odoo.addons.mail.models.mail_thread: No matching user_id for the alias info

odoo.addons.mail.models.fetchmail: Failed to process mail from the imap server

Traceback...

...

ValueError: Routing mail with message-ID <xxx>: route (u'fetchmail.server', 0, {}, 1, mail.alias(3,)): model fetchmail.server does not accept document creation

I tried with the predefined alias models "POP/IMAP Server", "E-Mail thread" and "User" without any success 

Avatar
Abbandona