Exchange proxy mail

Exch10
Exch10 used Ask the Experts™
on
Hello,

I have a problem to build the SMTP adress of my users, after a lotus migration:

Within my exchange 2007, my Email Adress policy gives %g.%s@mydomain.fr.

All exchange users email adresses are like "firstname.LASTNAME@company.fr" because in my AD, lastnames are uppercase.
I'd like to give proxies smtp like "firstname.lastname@company.fr"
How could I do?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If I read what you are saying...  You have an issue with the system capitalzing the lastname portion of the email addresses when using a policy.

Check out the following article:

http://blogs.technet.com/b/ericnor/archive/2009/04/30/e2k7-creating-custom-e-mail-address-policies-utilizing-various-replacement-string-combinations.aspx

You have to add the following in front of your address structure to keep it all lowercase:

%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%rPp%rQq%rRr%rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz

Hope that helps!
Commented:
So it would be:

%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%rPp%rQq%rRr%rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz
%g.%s@mydomain.fr

Commented:
This might help:

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

Script to pull the current primary, change it to all lowercase, drop it back in, and turn off email address policy for the user account (so that policy doesn't revert these changes).

Couple of problems with that: One, it only addresses existing accounts, not new ones. Two, if you change your email address policy in the future, you'll have to run something to re-enable it for most of your users.

Commented:
Exch10, even if the method I linked to is the one you used, mmicha's information is much better, because it doesn't create the problems I mentioned in my comment above.

Please have a moderator adjust the accepted solution. mmicha provided an A+ answer.

Author

Commented:
Thanks to you. My research arrive to the good solution for me:


Have to install QuestAD commandlets

Get-QADUser -SearchRoot "OU=Users,OU=TestOu,DC=MyDomain,DC=Net" | Select Name, sAMAccountName | Export-csv -path c:\temp\username.csv -NoTypeInformation

Import-Csv c:\temp\username.csv | foreach{Set-QADUser -identity $_.Name -samAccountName ($_.sAMAccountName).Tolower()} | Select-Object Name, samAccountName

Sources

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial