Fact: Email Address Policies (EAPs) will apply during a mailbox move. While everyone is currently planning on their Exchange migrations to Exchange 2010 :), you will want to take some time to look at your EAPs and users that are exceptions to the policies. The last thing you want is that call right after the migration saying that my email address has changed.
So for this example, let’s suppose we are migrating users from Exchange 2003 to 2010. Here is the current EAP (or recipient policy in 2003) defined, note that alias@lab.local is defined as the primary email address:
Now let’s look at an Exchange 2003 user that has a non-standard primary SMTP address: Joe-Cool@lab.com
If we migrate this user to Exchange 2010, the EAP is applied and the user’s primary SMTP address is automatically changed to jdoe@lab.local :
The easy fix is to uncheck the “Automatically update e-mail addresses based on e-mail address policy” in the user’s profile settings before the mailbox is migrated.
So, I said “easy fix”, but what if you have 25,000 users and are supporting multiple SMTP domains. We can use powershell to identify and disable the mailbox from having the EAP applied. Below is a script that will list out all users who’s primary SMTP address does not match the EAP.
###########################################################
# Find users that have a primary smtp address that doesn't match EAP
# There is no warranty, use at your own risk
# Author: Tim Harrington http://HowDoUC.blogspot.com
# Note: This script must be run on an Exch 2007/2010 server
##########################################################
#Find all recipient mailbox users
$users = get-user -recipienttypedetails usermailbox,legacymailbox -resultsize unlimited
#Generate Default EAP address based on user information and compare to primarySMTPAddress
Foreach ($mbx in $users) {
$DefaultEAP = $mbx.SamAccountName +"@DefaultSMTPdomain.com"
# For firstname.lastname use:
# $DefaultEAP = $mbx.firstname + "." + $mbx.lastname +"@DefaultSMTPdomain.com"
$primarysmtp = $mbx.WindowsEmailAddress
If ($DefaultEAP -ne $primarysmtp) {
# if the values are different, write the mailbox to the screen and text file
write-host $mbx.samaccountname, $DefaultEAP, $primarysmtp
add-content -path EAPMisMatchusers.txt -value ("Name: " +$mbx.samaccountname), ("Def. Pol.: " +$DefaultEAP), ("Current: " +$primarysmtp),(" ")
#Optionally, to set emailaddresspolicy disabled, uncomment the next line.
#set-mailbox -identity $mbx.samaccountname -emailaddresspolicyenabled:$false
}
}
#############################################################
Running the powershell script produces the following output and can disable the EAP from applying:
Now any mailbox that is migrated will keep it’s current primary SMTP address configuration in place during the migration.
Thanks for drawing our attention to this case. I think that an e-mail address policy (EAP) explains to the public how the government or an elected representative will manage any communication or correspondence via email.
ReplyDeleteNice way of presentation. Your share this post in a nice manner. Thanks for sharing
ReplyDeleteExcellent. The scripts works pervectly. I only wish I had realized this was happening before I got through over 50% of my users!
ReplyDeletemichael kors uk
ReplyDeleterolex watches
louis vuitton
kobe bryant shoes
nike huarache
louis vuitton handbags
nike trainers
true religion outlet
basketball shoes
cheap oakley sunglasses
coach factory outlet
celine
coach outlet
nike air force
ray ban
hollister clothing
louis vuitton outlet
hollister clothing
coach factory outlet
louis vuitton outlet
michael kors handbags
polo ralph lauren
toms shoes
ray ban sunglasses
lebron james shoes 2015
lebron james shoes 13
coach outlet
ray ban sunglasses
toms shoes
jordan 4
adidas trainers
toms shoes
oakley sunglasses
coach outlet
nike free run
nike trainers
michael kors bags
mont blanc
jordan shoes
coach outlet online
20164.14wengdongdong
michael kors outlet
ReplyDeletecoach outlet
lions jerseys
polo pas chère
off white outlet
tory burch shoes
cheap ray ban sunglasses
longchamp sale
coach outlet online
rayban sunglasses
You can obtain a virtual mailbox address and have your goods shipped to US, UK or India.
ReplyDeleteOpen DLL files
ReplyDeleteบาคาร่าเครดิตฟรี
ReplyDeleteสล็อต2021
-ข้อมูล Xinyan
ReplyDeleteROV Aleister
Among Us
ReplyDeleteบาคาร่า
This comment has been removed by the author.
ReplyDeleteMake money from a variety of betting games.
ReplyDeleteแทงบอลออนไลน์ ขั้นต่ํา 10 บาท
บอลทำเงิน
สูตรแทงบอลสูงต่ํา
แทงบอล ยังไง
เว็บสล็อตแตกง่าย 2021
Thank you for your interest.
Hi...
ReplyDeleteEmail address policy creates one or more email addresses for mailboxes. When you install Exchange 2016, a default email address policy is created by default. The default email address policy defines email address that consists of user alias and forest root domain name.
You are also read more then click here Best Home Loan in India
I think this article is useful to everyone.
ReplyDeleteเล่นยี่กี ให้ได้กําไร2564