Author Topic: how to create same username (Solved)  (Read 2700 times)

mxfarooq

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
how to create same username (Solved)
« on: November 30, 2015, 08:45:27 pm »
how to create same username for different domain:
user1@sample1.com
user1@sample2.com
user1@sample3.com
please help.
« Last Edit: December 12, 2015, 01:49:48 pm by mxfarooq »

jklapel

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: how to create same username
« Reply #1 on: November 30, 2015, 10:46:17 pm »
I'm making the assumption that this is the same user but with different domain aliases - if this is not the case, please reply back.

You have two options on how to do this.  The easiest is to create "Virtual Domain Aliases".  In Zentyal 4.2, you can go to "Mail > Virtual Mail Domains".  Then, make sure your primary domain (sample1.com) is created as a "Virtual Domain".  After that, click on the cogwheel underneath "Virtual Domain Aliases" and next to sample1.com.  Click "Add New" and enter sample2.com.  Repeat for sample3.com.  Save the changes and after that, any email coming to user1@sample2.com and user1@sample3.com actually gets redirected automatically into user1@sample1.com's inbox.

The other alternative is to create three "Virtual Mail Domains".  Again, go to "Mail > Virtual Mail Domains", but this time add all three domains as Virtual Domains.  Then, go to "Users and Computers > Manage".  Click on your "user1" (or add them if you haven't already).  Under the "Module Configuration > Mail Account Settings", look for "Create mail aliases".  Here you can add "user1" for sample2.com and again "user1" for sample3.com.  Once again, this automatically redirects any mail from user1@sample2.com and user1@sample3.com to the user1@sample1.com inbox.

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: how to create same username
« Reply #2 on: December 01, 2015, 01:30:02 pm »
If you ned different mailboxes - not one mailbox with different alias, you will need to disable automatic creation on email account on user creation (on the user template) and then, create different users (like userdomain1, userdomain2, userdomain3) and assign to them the email account you prefer