Basic email configuration for odoo
How to configure odoo in order to send, receive and track emails
11 marzo 2016
This tutorial is based on odoo 8.0
The odoo email system is very powerfull but not trivial.
Following a discussion in the odoo Italian forum, I will describe the basic configuration to make the integration work in the most common use case: users will keep using their usual email address but, in parallel, comunications related to odoo documents will be handled and tracked by odoo.
Create a mailbox to be used by odoo, say email@example.com (I tested it with a google email).
In odoo, install fetchmail and configure the incoming and outgoing mail servers (Settings --> Technical --> Email) for firstname.lastname@example.org. If you use google, the SMTP server is smtp.gmail.com (with SSL/TLS) and the IMAP server is imap.googlemail.com (with SSL/TLS).
Configure the system parameters (Settings --> Technical --> Parameters) mail.catchall.alias and mail.catchall.domain with odoo and yourcompany.com respectively.
Create 2 new odoo users using existing email addresses, like email@example.com and firstname.lastname@example.org.
Log into odoo with user1, create a new document, say a customer customer1, and add user2 to the document's followers. Send a message to the document's followers using odoo:
Go to email@example.com mailbox, open the received message and reply to it.
Wait 5 minutes (standard interval of fetchmail cron) and firstname.lastname@example.org will receive the answer sent by email@example.com.
Every message of the thread will now be appended to customer1.