Creating custom recipient policy
Creating E-Mail Address through recipeint policy only offers combination of surname, givenname and Initial. How is possible to generate Email addresses only with the surnmane. "surname@domain.com" 1) Is this possible through powershell and what would be the syntax. 2) Would such policy be visible and editable in Exchange Management Console after creation. The configuration is pertaining to Exchange 2007 Thanks
September 8th, 2012 7:52am

I've never tried it, but according to this http://technet.microsoft.com/en-us/library/bb124401(v=exchg.80).aspx you might be able to do it in EMS with New-EmailAddressPolicy -Name "whatever" -IncludedRecipients UserMailbox -EnabledEmailAddressTemplates "SMTP:%s@yourdomain.com" On the other hand, it might reject it after you type it in if it fails some kind of validation. What are the chances that you will have more than one person there with the same surname?Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2012 9:23am

Thanke for the response. The idea is to set it for accounts that have specific Value in ExtensionAttribute 7.
September 8th, 2012 9:39am

Custom Attribute equals Value There are 15 custom attributes for each recipient. There is a separate condition for each custom attribute. If you want the e-mail address policy to include only recipients that have a specific value set for a specific custom attribute, select the check box that corresponds to that custom attribute. http://technet.microsoft.com/en-us/library/bb125137.aspx
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2012 9:47am

PS command is working when only a single mailaddress is assigned, but I get error message when multiple is to be assigned. What would be the error in this syntax: New-EmailAddressPolicy -Name Alias -IncludedRecipients MailboxUsers -Priority 3 -ConditionalCustomAttribute7 "ARes" -EnabledEmailAddressTemplates "SMTP:%s@domain1.com","SMTP:%s@domain2.com"
September 8th, 2012 10:27am

You have to create an new EAP for the domain 2
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2012 10:36am

Thanks. I thought this could be possible as the information on this link http://technet.microsoft.com/en-us/library/aa996800(v=exchg.80).aspx states that such can be separated with commas: EnabledEmailAddressTemplates Required Microsoft.Exchange.Data.ProxyAddressTemplateCollection The EnabledEmailAddressTemplates parameter specifies the proxy addresses that are included in an e-mail address policy and are enabled. Separate multiple values with commas. The domain part of each proxy address needs to match an existing accepted domain.
September 8th, 2012 10:42am

Do you have domain 2 as an accepted domain? You have both with captial SMTP, only one address can be primary. Try the domain2 address with lowercase smtp
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2012 11:02am

It's possible that SMTP: in capitals indicates the primary domain (there can be only one). Try using lower case smtp: for the second domain.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
September 8th, 2012 11:02am

Thanks, that did the trick.
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2012 11:39am

On Tue, 4 Sep 2012 14:46:01 +0000, topokin wrote: >PS command is working when only a single mailaddress is assigned, but I get error message when multiple is to be assigned. What would be the error in this syntax: > >New-EmailAddressPolicy -Name Alias -IncludedRecipients MailboxUsers -Priority 3 -ConditionalCustomAttribute7 "ARes" -EnabledEmailAddressTemplates "SMTP:%s@domain1.com","SMTP:%s@domain2.com" You can't have two primary SMTP proxy addresses. Try this: -EnabledEmailAddressTemplates "SMTP:%s@domain1.com","smtp:%s@domain2.com" --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
September 8th, 2012 2:25pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics