Solved

Remove caps from an email address

Posted on 2014-11-25
5
1,163 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
  • 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
To show how to generate a certificate request 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 Servers >> Certificates…

749 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