Solved

Remove caps from an email address

Posted on 2014-11-25
5
1,258 Views
Last Modified: 2014-11-25
I have SBS 2011 running Exchange 2010.  The email addresses have capital letters in their Christian names and surnames, e.g., JoeBloggs@mydomain.com.  How would I go about removing the caps so the address reads joebloggs@mydomain.com?
0
Comment
Question by:grsg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:VB ITS
ID: 40464239
After some searching online, I managed to find this script. All credit goes to Mike Crowley.
$MailboxList = Get-Mailbox  -ResultSize unlimited
 
$MailboxList | % {
 
$LoweredList = @()
$RenamedList = @()
 
foreach ($Address in $_.EmailAddresses){
if ($Address.prefixstring -eq "SMTP"){
$RenamedList += $Address.smtpaddress + "TempRename"
$LoweredList += $Address.smtpaddress.ToLower()
}
}
Set-mailbox $_ -emailaddresses $RenamedList -EmailAddressPolicyEnabled $false
Set-mailbox $_ -emailaddresses $LoweredList
 
#Without this line the "Reply To" Address could be lost on recipients with more than one proxy address:
Set-mailbox $_ -PrimarySmtpAddress $_.PrimarySmtpAddress
}

Open in new window

Source article: http://mikecrowley.wordpress.com/2012/05/14/converting-smtp-proxy-addresses-to-lowercase/
0
 

Author Comment

by:grsg
ID: 40464262
Thanks for the script, though I'm nervous about running code I don't fully understand.  I only have a handful of mailboxes, do you know how I could make the changes manually?
0
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40464279
I can understand that. I always like to use the -WhatIf switch to simulate the output of a command/script as a precaution.

To do it manually is a bit tedious but here goes:
Open the Exchange Management Console > expand Recipient ConfigurationMailbox
Right click on the mailbox that you need to update the email address for > Properties > E-Mail Addresses tab
Untick the Automatically update e-mail addresses based on e-mail address policy box > double click on the email address that you need to modify > add a random letter or number to the email address (e.g. Joe1@company.com) > click OK
Double click on the email address again > enter your desired email address with the lower case letters this time (e.g. joe@company.com) > OKOK when done.

The reason I add a number in the email address is because simply replacing the upper case letter with a lower case has no effect on the email address.
0
 

Author Comment

by:grsg
ID: 40464294
Excellent, does just what it says on the can.  Many thanks
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40464296
Glad I could help :)
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question