Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I tried installing Odoo, it's going great, I managed to install the CRM without any issues and insert my sugarCRM data inside it. Nonetheless, I have huge issues setting up the messaging/emailing part.
This is how I proceeded:
I have a user whose e-mail is firstname.lastname@example.org.
I went to general settings (I don't know what to put in Alias Domain so I wrote my Odoo domain down "odoo.domain.com")
In configure outgoing e-mail servers I set up my server:
SMTP Server : smtp-mail.outlook.com
SMTP Port: 587
(connexion works properly)
In configure ingoing email gateway i wrote:
Server Name pop-mail.outlook.com
(connexion works properly)
I left "Actions to Perform on Incoming Mails" blank
When I try to send a message with user Maxime Deuse it gets send properly BUT I just don't get any incoming e-mails. Does anyone know what I am doing wrong and if not does someone have a nice step by step tutorial with whom I couldn't screw up?
Thank you very much! You are a life saver ;)
I managed to solve this issue. It was due to my bad understanding of e-mailing in OpenERP. Note that I had to switch from OpenERP 8 to OpenERP 7 due to some stability issues but I believe the process should be the same. See below for answer.
I managed to solve this issue. It was due to my bad understanding of e-mailing in OpenERP. Note that, I had to switch from OpenERP 8 to OpenERP 7 due to some stability issues but I believe the process should be the same for both versions.
At first I tried to configure e-mail like any other e-mail client, which did not work. I configured my incoming email gateway and my outgoing e-mail server like explained above. The problem I faced was that I inserted one new config per user (with IMAP, SMTP) but I could not link it to a user. E-mails from email@example.com or from firstname.lastname@example.org didn't end in Maxime or Julien's inboxes. I kept getting the following error in my terminal: "create an appopriate mail.alias or force the destination model".
In the end I never managed to force the destination model properly (the "Actions to Perform on Incoming Mails" tab) so I went with the appropriate mail.alias (Thanks Daniel for the suggestion).
This is how I proceeded:
To get the incoming e-mails
- I went to my google account which manages the deuse.me domain. There I created a new user which I converted in a catchall e-mail adress.https://support.google.com/a/answer/33962?hl=en. This means that all e-mails send to any deuse.me address end up in this email@example.com inbox. Another solution if a catchall option isn't available would be to forward all your e-mail addresses towards the firstname.lastname@example.org address.
- In the generals settings of OpenERP I set the Alias Domain to deuse.me
- I set the ingoing e-mail server as the email@example.com address. I configured the IMAP config with this e-mail adress. "Server Action" and "Create New Records" should be left blank.
- Once this is done users with the allias Maxime will get the e-mails from firstname.lastname@example.org and so on ...It works
To send e-mail
I did not configure the catchall adress as the outgoing e-mail server, otherwise all e-mails are send with the email@example.com address and only the name changes. When I did send an e-mail I wanted "Maxime Deuse <firstname.lastname@example.org>" to be the sender not "Maxime Deuse <email@example.com>". To achieve that Iinstalled Postfix mail server on my server and I kept the OpenERP outgoing mail server as localhost(configurations may be needed depending on your Postfix config). For this solution don't forget to set up spf records and DKIM's to avoid being marked as spam. (https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy)
I hope my explanation could help some of you who had the same issues I had.
To expand on your answer, to send email keeping the correct sender name and address you also can use some other mail service besides Google Mail. They are very strict with their anti-spam policies and only allow mail relay (sending though their servers) for explicit sender addresses. So if you wanted to send email from firstname.lastname@example.org using the email@example.com you have to login into the catchall Google account and add a sender address for maxime. This way you would be able to do it (not a good option if you have more than a couple of users).
But as you did, other mail servers don't have this restrictions. But you can use your hosting provider, or any mail provider that allows mail relay to do this. And as you pointed out, you have to set the DKIM key and the SPF records to add this server to the allowed mail servers for your domain.
One more thing. How are you receiving all email that does not have a valid alias in Odoo? If you have a catchall account going into the system, how do you handle typos and bad addresses. E.g., someone writes to firstname.lastname@example.org, this would normally get bounced with a "no valid user on this domain" kind of error, but with a catchall address this will go into the system and there is no valid alias, and as you said, no forced object associated.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/3/14, 3:27 AM|
|Seen: 53153 times|
|Last updated: 5/15/17, 5:36 AM|