Jump to content

Recommended Posts

Posted

In a rush of sudden enthusiasm I have taken on some extra work for a neighboring school and I have inherited an exchange 2007 box. This is now a little out of my territory having been playing with postfix/zimbra so long.

Under normal circumstances I would just rip out the exchange and put in something else, I am not allowed to on this occasion.

 

What I do need to do is to change the recipient addresses of all the users.

They are currently mail.school.sch.uk but they are changing to brandnewacademy.sch.uk

 

I have got the LEA setup MX records for brandnewacademy.sch.uk which points to this new exchange server.

 

I was about to run this script on each OU to set the primary smtp address, because this is how I told our AD where our zimbra accounts were.

 


Set objParent = GetObject("LDAP://ou=users,OU=school,DC=sch,DC=uk")

objparent.Filter = Array("user")



for each objUser in objParent

 'Wscript.Echo "Modifying " & objUser.Get("sAMAccountName")

objUser.put "mail", objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk"

objuser.put "targetAddress","SMTP:" & objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk"

objuser.put "proxyAddresses", "SMTP:" & objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk"

objuser.Setinfo



   

next

Wscript.Echo "Done ;)"

 

But I think there is probably more to exchange than this?

 

I was reading here;

According to Defining an Exchange 2007 E-Mail Address Policy, Part 2

 

but am still unsure how to proceed as that seems to be for new users?

 

any pointers please.

Posted

Hi,

 

You could go to Organization Configuration | Hub Transport and click on "New Email Address Policy"

 

Follow the wizard, selecting the option for "All Users" i believe the next screen will the ask you if you would like to filter the users i.e. select an OU etc

 

If you wish to apply it too all users and not filter it any further (which i am guessing you will want to do) just click next, then a screen will prompt you to input the policy

 

Select "Email Address Local Part" and then weather you want it to use there alias or firstname.lastname etc and then type in your new FQDN and then click okay.

 

On the next screen it should ask you when you would like to apply the update, and then pick an appropriate time.

 

doing it this way will keep the users previous email addresses just incase someone has it in history but will set there new primary receiptent address to the one you have set in the policy.

 

Hope that helps, any problems give us a shout

 

James

 

Edit - Sorry! Just read that website you linked too! lol yes follow that tutorial it will apply it to existing users also as far as i understand from doing this previously :doh:

  • Thanks 1
Posted
Edit - Sorry! Just read that website you linked too! lol yes follow that tutorial it will apply it to existing users also as far as i understand from doing this previously

 

I wasn't really sure if this is what I was supposed to be doing. so thank you.

 

I will try on an OU of one person, test, test and test some more.

Posted
I wasn't really sure if this is what I was supposed to be doing. so thank you.

 

I will try on an OU of one person, test, test and test some more.

 

No problems mate, let us know how you get on and if you come accross any problems

 

James.

Posted

Yes exactly you can setup a Email Policy to give staff a seperate email address in bulk, or you can just add another SMTP Address to indivigual accouts.. i have quite a few ;) TeaBoy@... being one of them LOL!

 

There have been worse ones, but i removed them! :p i have a mean boss lol!

 

but on a serious note, it is very handy as when we moved from a centrally managed email service at first our email accounts were the username.. so had to also add the old email address which was firstname.surname and this was done easily by creating a rule :)

 

James.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...