Link to home
Start Free TrialLog in
Avatar of Exch10
Exch10Flag for France

asked on

Exchange proxy mail

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?
Avatar of mmicha
mmicha
Flag of United States of America image

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!
ASKER CERTIFIED SOLUTION
Avatar of mmicha
mmicha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
Avatar of Exch10

ASKER

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