Ask a questionAsk a question
 

AnswerNew E-Mail Address Policy

  • Thursday, November 05, 2009 2:52 PMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm trying to create a new "E-Mail Address Policy" that sets the the "Alias" name as the "UserPrincipalName" that is already been created for the user in the "Active Directory Users and Computers" in Server 2008 R2. How can I do that? Is it just the variable!?

    Example: %m@ Domain.Name.Kw


    I'm just trying to make it as easy as it was in Server 2003 along with Exchange 2003!


    TIA



Answers

  • Saturday, November 07, 2009 3:41 AMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Thanx for your help, specially the links. However, I've "Coexistence Environment", some of the commands wont run on Exchange 2010 with the existence of a legacy exchange (2003)!


    • Marked As Answer byBigNoter Saturday, November 07, 2009 3:42 AM
    •  

All Replies

  • Thursday, November 05, 2009 3:37 PMSean van Osnabrugge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    If you deployed Exchange 2010 in the same organization as Exchange 2003, then you should already have an e-mail address policy which you would just need to upgrade.

    If it is a new deployment, the following command entered in the Exchange Management Shell accomplishes what you are looking for:

    new-EmailAddressPolicy -Name 'PolicyName' -IncludedRecipients 'AllRecipients' -Priority 'Lowest' -EnabledEmailAddressTemplates 'SMTP:%m@Domain.Name.Kw'

    It creates a policy that applies to all recipients in the domain and applies an SMTP address based on the Alias and the domain name which will match the UPN.
    Sean | http://seanv.wordpress.com
  • Thursday, November 05, 2009 3:46 PMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thats what I did in the EMC, but it concatenate the "Display Name" of the user as an "Alias"!
  • Thursday, November 05, 2009 4:37 PMSean van Osnabrugge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you create an e-mail address policy to match your default UPN based on the available variables?

    http://technet.microsoft.com/en-us/library/bb232171(EXCHG.140).aspx


    Sean | http://seanv.wordpress.com
  • Thursday, November 05, 2009 6:05 PMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This is my question in the first place! How can I creat an "E-Mail Address Policy" that match the user's default UPN? What is the variable?

    It's not in the link that you suggested!
  • Thursday, November 05, 2009 6:53 PMSean van Osnabrugge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Sorry I do not have an answer you like, but as the UPN is not a variable listed, I do not believe it is possible.  However, with the variables available I do believe that you can match any default UPN you may have in your domain.


    Sean | http://seanv.wordpress.com
  • Thursday, November 05, 2009 7:46 PMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a peace of a code (provided by our programmer) that read the user data from an Excel sheet in format of five columns (ID, FN, LN, OU, Gender) and create the users in AD along with their mailbox (Exchange 2003). After upgrading to Exchange 2010, we deleted the segments that create the mailbox from the code (cause, the programmer does not know how to code it), so I have to create the mailbox manually, and now I have more than 200 users waiting for their mailbox to be created.

    BTW, after the upgrade of the Exchange 2010 there is a "Default Policy" in "E-mail Address Policy" not applied (False) and when I try to see it's format by editing it I get a message saying that this policy was created by a legacy Exchange server and need to be upgraded by "Set-EmailAddressPolicy" task, with the Exchange 2010 Recipient Filter specified.

    I do not know how to do that. Can you help me out of this, please.


    TIA




  • Thursday, November 05, 2009 9:10 PMSean van Osnabrugge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Basically, your E-mail Address Policy is built on LDAP queries in Exchange 2003.  When you introduce Exchange 2007 or 2010, you need to upgrade your E-Mail Address Policies and Address Lists to use OPATH filters.  The Exchange Team posted a great blog post on this: http://msexchangeteam.com/archive/2007/01/11/432158.aspx which is written for Exchange 2007, but applies for Exchange 2010 as well.  Once you upgrade your EAP and ALs then you will be able to edit them.

    As for having to manually create mailboxes, you can bulk import mailboxes using the Exchange Management Shell.  Once again, there is a guide that is written for Exchange 2007, but is applicable for Exchange 2010 on how to do this: http://exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html.  You can also find some valuable information on recipient and bulk management here: http://msexchangeteam.com/archive/2006/09/05/428833.aspx

    Sean | http://seanv.wordpress.com
  • Saturday, November 07, 2009 3:41 AMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Thanx for your help, specially the links. However, I've "Coexistence Environment", some of the commands wont run on Exchange 2010 with the existence of a legacy exchange (2003)!


    • Marked As Answer byBigNoter Saturday, November 07, 2009 3:42 AM
    •  
  • Saturday, November 07, 2009 4:53 AMBrian Day Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanx for your help, specially the links. However, I've "Coexistence Environment", some of the commands wont run on Exchange 2010 with the existence of a legacy exchange (2003)!



    What commands won't run? 2003 being in the rog shouldn't limit any 2010 commands.
    Brian Day: MCSA 2000/2003, CCNA, MCTS: Microsoft Exchange Server 2010 Configuration, Overall Exchange/AD Geek.
  • Saturday, November 07, 2009 9:34 AMBigNoter Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Summary: 2 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:00


    New Test-New-EAP
    Failed

    Error:
    You can't specify the recipient container because legacy servers are detected.

    Exchange Management Shell command attempted:
    new-EmailAddressPolicy -Name 'Test-New-EAP' -RecipientContainer 'Domain.Name.Kw' -IncludedRecipients 'AllRecipients' -Priority 'Lowest' -EnabledEmailAddressTemplates 'SMTP:%m@Domain.Name.Kw'

    Elapsed Time: 00:00:00


    Apply Test-New-EAP
    Cancelled

    =-=-=-=-=-=-=-=-=-=-=-

    As One of the examples!