Results 1 to 4 of 4

Thread: alias creation with new accounts, multi-domain + preferred from address

  1. #1
    BloodyIron is offline Senior Member
    Join Date
    Nov 2012
    Posts
    62
    Rep Power
    2

    Question alias creation with new accounts, multi-domain + preferred from address

    I'm looking to setup our server with two domains, and have two autoprovision sets per domain.

    What I am trying to figure out is the automatic creation of an alias when a new account is provisioned, and then set as the default from address.

    For example, I have domain1.local and domain2.local

    let's say I used zmprov to setup autoprovision for each domain, which pulls the new users from LDAP (in this case against Active Directory).

    Naturally, creates a new account for the relevant domain, jsmith@domain1.local or tsmith@domain2.local

    What I would like to figure out is how to make it so it creates an alias for the relevant domain for the relevant user, and then sets it as the default from.

    So, john.smith@domain1.local as an alias, then somehow triggers:

    zmprov ma jsmith@domain1.local zimbraPrefFromAddress john.smith@domain1.local

    Of course pulling first name and last name from LDAP for the alias creation, and syntax adjustment of the from adjustment command. I would only really want this to happen at time of provision, as I'm sure there will be requests to change the default from address in future, and it would be a pain to have such a configuration reversed.

  2. #2
    BloodyIron is offline Senior Member
    Join Date
    Nov 2012
    Posts
    62
    Rep Power
    2

    Default

    I'm thinking I may need to do this for the alias creation:

    zmprov md domain.net +zimbraAutoProvAttrMap gn.sn=zimbraAlias

    if this works how I want the goal is to make it so John Smith will get john.smith@domain.net as an alias.

    Now to figure out how to set that alias as the preferred from address on provision

  3. #3
    BloodyIron is offline Senior Member
    Join Date
    Nov 2012
    Posts
    62
    Rep Power
    2

    Default

    Hmm, now that I think about it, this might work, but I'll also have to test at the same time:

    zmprov md domain.net +zimbraAutoProvAttrMap gn.sn=zimbraPrefFromAddress

    it's looking like zmprov may be able to set any attribute for an account on provision, very slick! testing required of course (Monday)

  4. #4
    BloodyIron is offline Senior Member
    Join Date
    Nov 2012
    Posts
    62
    Rep Power
    2

    Default

    It is currently not possible to autoprovision an alias, also for my second domain I will simply manually create aliases, instead of autoprovisioning a second mailbox for it.

    Auto provisioning an alias would save me a lot of time.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clarification on Domain Alias Reply-To address
    By zwvpadmin in forum Administrators
    Replies: 2
    Last Post: 12-20-2011, 01:54 PM
  2. Domain alias and reply address
    By morten in forum Administrators
    Replies: 1
    Last Post: 01-24-2011, 09:06 AM
  3. Replies: 6
    Last Post: 10-11-2009, 12:00 PM
  4. Domain Alias and sender address
    By mederyf in forum Administrators
    Replies: 1
    Last Post: 09-04-2009, 09:24 AM
  5. Domain Alias / User Alias problem after upgrading.
    By Bingo in forum Administrators
    Replies: 1
    Last Post: 04-20-2007, 03:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •