Odoo Help


How to assign individual mail account to each user?

on 6/7/13, 9:16 AM 18,458 views

I checked Setting -> General Setting -> Configure outgoing email server.

The setting is global, that's to say, all the users will share this setting.

I have two users, one is User01,whose mail account is user01@abc.com; the other is User02, whose mail account is user02@abc.com.

And I have created two records in <configure outgoing="" email="" server="">. All the settings are correct and testing OK.

However, no matter I send mails using account User01 or User02, the sender is the same.(user01@abc.com)

I just want to do this, when user01 sends mails, the sender is user01@abc.com; when user02 sends mails, the sender is user02@abc.com;

For fetching mail, I also want to each user fetches his own mail seperately.

Who can tell me whether OE7 supports such setting? If yes, please kindly help to tell me how to set.

Thank you very much.

On 7/4/13, 8:44 AM

Users, emails and aliases are a little bit articulated in OpenERP 7.0

User Alias the address as sender when an user sends some message (inside or outside openerp) and is combination of user_login@alias_domain. You can set alias_domain in Settings>General Settings>

User Email Is personal email (or company official email). It's sets in user preference. Based on Receive Messages by Email setting in user preference, you will receive some/all/none notification from OpenERP and email.

User email could be

  1. same as user alias . In this case use in Receive Messages by Email>Never setting otherwise you will have a mail loop.
  2. some other email address like private email for each user. In this case is useful to set Incoming for Receive Messages by Email>Emails and Discussions settings in order to receive notification when something happens in your OpenERP installation.

Which is right choice ? I can say that option 1. looks more professional. That because user might reply to some customer using the received notification and in case you are using option 2, customer will receive an email from user's private address and the related thread will go out of control of openerp (it's using "Follower of" but I've experience on some email without "Follower of")

But if you will use option 1 you will have in openerp all user messages, maybe also his/her holidays photos, this is a policy issue !!! but again there is a more important issue related to fetching.

  • Option 1 requires to define a Incoming Mail Server for each user/address (see below). Anyway, email inbox password is personal and will change over the time out of control of openerp admin. In openerp users can't change Incoming Mail Server settings related to their account. So when a user changes his/her email pwd, he/she has to inform OpenERP admin with new password in order to change Incoming Mail Server settings .... otherwise OpenERP will break for that account.
  • If user is using some email client than his/her inbox will be downloaded somewhere and OpenERP will never see (and manage) those email
  • If user is using some webmail system, might happens that OpenERP fetches new email before than user can read it from the webmail so some of his/her new messages will be in openerp
  • If opererp is using IMAP instead POP than all messages will leaved on server but OpenERP fetches a copy of message from IMAP only for unread messages. This means that if user has read a messages before of OpenERP that OpenERP will ignore that messages. In addiction if a user will delete a message from the IMAP that message will alive in OpenERP (because is a copy)

OpenERP is able to connect to IMAP accounts but it uses like a POP Unread +Leave on Server

My opinion is that option 1 isn't really usable that's why I'm using option 2. Someone might give more explanation on this.

Receiving emails in OpenERP (FetchMail)

OpenERP fetches email from incoming server/accounts configured in Settings/Technical>Incoming Mail Servers You can configure how many Incoming Mail Servers (this mean INBOX) you want. Each for any email address you want to fetch in OpenERP. But:

Question: What can do OpenERP with those emails ?

Answer: If a fetched email is addressed to some valid OpenERP alias (as is in Settings>Technical>Email>Aliases) than that email is processed for some automated action or delivered to the related user. In 2nd case, If user preference is to receive notification than OpenERP will send a copy of fetched email to private user email address. (that's why you should use "Never" if alias and private email are same)

If fetched email is for un-existent OpenERP alias than OpenERP should ignore that email but at current time it will throw an exception and fetching will interrupt here forever (see open bug on this: When using POP server, a mail delivered to unknown/undefined alias makes fetchmail fail and stop parsing all emails: bugs.launchpad.net/openobject-addons/+bug/1104091)

So here you can:

  • Create same real email address on your mail server as is for all of your alias in OpenERP. Than define an Incoming Mail Servers (read inbox) for each real email address
  • On your mail server create a catch-all email address. Than define only one Incoming Mail Servers (read inbox) for that catch-all. OpenERP will fetch from catch-all and forward to right alias (Use an IMAP to avoid the bug mentioned above)
  • Use a mixed of above. For example use real address for users and catch-all for all other alias that OpenERP will create (like is for project, sale dept, ecc...)

Sending email with OpenERP

OpenERP will sends email for

  • System Notification: In this case company email (set it in: Settings>Companies)
  • Discussion, email received for an alias ecc... If discussion alias author's is used as sender, if it's a notification for new received email than original sender is kept.
  • A message composed by an user for some other user, some partner, or some other. In this case User Alias is used as sender.
  • A message related to some document that uses template like Sale Order sending to a customer. In this case the sender should be same as defined in the template (Settings>Technical>Emali>Template) but at current time OpenERP is ignoring email_from and reply_to settings and uses always User Alias as sender (see open bug on this: email_from in email templates ignored bugs.launchpad.net/openobject-addons/+bug/1193283)

I don't know when and why OpenERP doesn't fix mentioned issues on email system

I have the same question as "assd" has - any suggestion? any roadmap or hints/tips?

patrick cadonau
on 11/6/13, 12:42 PM
On 3/6/17, 3:36 AM

Hi All

I have learned that. The email address that the recipient sees depends on who the SALES PERSON is on that object. I.e. If sales person John sends a quote then John's email address will reach the recipient however if you then want the invoice to come from Finance the sales person must be changed accordingly

On 6/7/13, 4:22 PM

Yes OE7 supports this setting using aliases.

  1. Using [Settings -> Technical -> Alias], create an Alias for the corresponding user . Fill the fields with the following values: Aliased Model : Users Owner : Select the corresponding User from the drop down

  2. Select the user for which you wish to assign the Alias using [Settings -> Users]

Done [Settings -> Technical -> Alias] with Aliased Model Serveur POP/IMAP but can you explain more the configuration in [Settings -> Users].

on 6/11/13, 8:53 PM

Under Settings - > Users, you need to input the alias you created for that particular user under the field "Alias". Also change the "Aliased Model" to Users instead of POP/IMAP under [Settings ->Technical -> Alias]. Let me know if it works for you.

on 6/13/13, 6:53 AM

I'm so sorry, but I really don't understand the entire configuration process. Is there any kind of documentation regarding it? Or could you please try to explain it again? Thank you so much.

Carlo Rossi
on 6/22/13, 11:09 AM

Updated my answer.

on 6/23/13, 11:26 AM

Hi Rajith, so sorry to give you feedback so late... I have tried as your explaination to set the aliases. And mails can be sent and received. My outgoing mail is "mail.out@test.com", and i have one user with mail account "mars.liang@test.com". When I send a mail via OpenERP, in the receipient's mail box, it shows "Mars Liang (mail.out@test.com)", this what I DON'T want. I hope that the address can be shown as "Mars Liang (mars.liang@test.com)" instead of "Mars Liang (mail.out@test.com)". If the recepient replies the mail, the mail will go to mail.out@test.com.

on 6/30/13, 6:45 AM

If the mail goes to "mail.out@test.com", how can Mars receives the reply from the recepient? And I found that there is no module to input "out going and in coming mail server" for each indivdual users. So does it mean, OE does not support to use the Messaging Module to replace the Email Client Tools for each user?

on 6/30/13, 6:54 AM

Hello Kazaf, I have the exact same issue than you. Did you found a solution ? I would like to discuss with you about it, you can contact me at simon1by1 [a] gmail. Thanks!

on 1/15/14, 6:49 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

8 follower(s)


Asked: 6/7/13, 9:16 AM
Seen: 18458 times
Last updated: 3/6/17, 3:36 AM