• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Bulk Add SMTP Aliases To Existing Users From A Script or Command Line?

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> General >> Bulk Add SMTP Aliases To Existing Users From A Script or Command Line? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Bulk Add SMTP Aliases To Existing Users From A Script o... - 7.Aug.2007 4:01:17 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline

Hello everyone. New to the forum here. Been playing with exchange for a few years. So, I hope I'll be able to help some people with their problems as well.

We're running Exchange 2003 on Win 2003 FE/BE Servers w/ ISAs.

Here's my current dilemma...

 
I have to add SMTP aliases for about 200 existing AD users. These users are currently using our email system in addition to an ISP POP3. We're trying to get them fully off of the POP3.
 
Their current ISP user names don't follow our convention, but we want them to be able to receive email at their old addresses. We're having their ISP point the DNS MX record to our external IP and they'll keep their old @domain.com addresses. (I've already setup the new SMTP policy in System Manager to handle this domain.com)

Anyone know of an easier way to add these aliases other than one at a time thru AD Users & Computers?
 
Much, much appreciated in advance! 

 
BC


Post #: 1
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 4:17:14 PM   
jchong

 

Posts: 2516
Joined: 1.Dec.2005
From: Centreville, Virginia
Status: offline
Try using admodify, bulk select your users, and go to email address tab.


James Chong (MVP)
MCSE | M+, S+, MCTS, Security+
msexchangetips.blogspot.com


(in reply to beachcracker)
Post #: 2
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 4:22:31 PM   
a.grogan

 

Posts: 1917
Joined: 12.Apr.2005
From: London
Status: offline
Hiya chap, as JChong suggest ADMODIFY is a great tool and will work, but as you have added the domain to your recipient policy what is the format of the address?

You can use a wildcard on the recipient policy to do this to the account in Active Directory - if you can post to format (for example something@mydomain.com or <firstname>.<surname>@mydomain.com then we can give your the wild card.

Cheers

A

_____________________________

Andy Grogan
MSExchange.org Forums Moderator
For my general ramblings about Exchange please visit my website:
W: http://www.telnetport25.com/
B: http://telnetport25.wordpress.com/
M: manifoldmaster@gmail.com

(in reply to beachcracker)
Post #: 3
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 4:50:28 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Thanks to you both for your replies.

I do have the AdModify tool and hope this will work.

Below are examples to better explain.

Existing users on our domain...

john.smith@OurExistingDomain.com
Mary.Rogers@OurExistingDomain.com
Peter.Parker@OurExistingDomain.com

Will also need these new SMTP aliases added.....

jsmith@OldISPdomain.com
mrogers@OldISPdomain.com
pparker@OldISPdomain.com

...for approx 200 users.

I was hoping maybe I could create a spreadsheet with these added and import it using csvde or an equivalent tool.

Do you think the above can be handled with Admodify?

Thanks once again for your help.

BC

(in reply to a.grogan)
Post #: 4
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 4:54:18 PM   
a.grogan

 

Posts: 1917
Joined: 12.Apr.2005
From: London
Status: offline
Hiya mate, on your default recipient policy you can add (as typed here):

%1g%s@<olddomain.com>


That should help

Cheers

A

_____________________________

Andy Grogan
MSExchange.org Forums Moderator
For my general ramblings about Exchange please visit my website:
W: http://www.telnetport25.com/
B: http://telnetport25.wordpress.com/
M: manifoldmaster@gmail.com

(in reply to beachcracker)
Post #: 5
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 5:18:14 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
A.

Thanks again.

In AdModify, Are you suggesting that I change the "Add SMTP Address" field?

From
%'mailNickName'%@

To?
%1g%s@<olddomain.com>

Forgive me here. I just don't understand how that will automatically add JSMITH to an account currently named JOHN.SMITH.

Help?

Thanks,
BC



(in reply to a.grogan)
Post #: 6
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 7.Aug.2007 5:24:35 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Tried this on a couple of test users and it added this address for everyone...

1gs@OldISPdomain.com

Thanks again for your help!

BC

(in reply to beachcracker)
Post #: 7
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 8.Aug.2007 12:01:48 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Anyone have any luck with this?
So far the advice I received gives all my users the same SMTP alias address.. no can do! What we really need is this..

Existing users on our domain...

john.smith@OurExistingDomain.com
Mary.Rogers@OurExistingDomain.com
Peter.Parker@OurExistingDomain.com

Will also need these new SMTP aliases added.....

jsmith@OldISPdomain.com
mrogers@OldISPdomain.com
pparker@OldISPdomain.com

Thanks again,
BC

(in reply to beachcracker)
Post #: 8
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 8.Aug.2007 12:41:26 PM   
uemurad

 

Posts: 8232
Joined: 7.Jan.2004
From: California, USA
Status: offline
Did you add %1g%s@<olddomain.com> to your default recipient policy?
The "%" is critical as it tells AD what field to use.

%g = given name (first name)
%s = surname (last name)
%1g = one character of given name


_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange (2007-2011)
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to beachcracker)
Post #: 9
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 8.Aug.2007 5:00:56 PM   
a.grogan

 

Posts: 1917
Joined: 12.Apr.2005
From: London
Status: offline
Thanks Dean, yes the % is a critical part.

cheers

A

_____________________________

Andy Grogan
MSExchange.org Forums Moderator
For my general ramblings about Exchange please visit my website:
W: http://www.telnetport25.com/
B: http://telnetport25.wordpress.com/
M: manifoldmaster@gmail.com

(in reply to uemurad)
Post #: 10
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 13.Aug.2007 4:05:21 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Thanks for your replies everyone.
However, I'm still having trouble with this.
Am I selecting the correct tab in ADModify?

I've been selecting the "E-mail Addresses" tab and then selecting the "Add SMTP Address" check box. Then I enter %1g%s@domain.com

Then I check each user that this was applied to. Every user has 1gs@domain.com as a new SMTP alias.

Am I supposed to use quotes or something?
Anyone know what I'm doing wrong?

Sigh...
help?


I hope this will work, because it's perfect for what I'm trying to accomplish if it does.

Thanks,
BC

(in reply to a.grogan)
Post #: 11
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 13.Aug.2007 4:08:40 PM   
a.grogan

 

Posts: 1917
Joined: 12.Apr.2005
From: London
Status: offline
Hiya Beach, sorry chap, my suggestion was based around changing the Exchange recipient policy, rather than trying to use ADModify.

James was correct in stating you can use AD Modify to accomplish what you need to, however, what I suggested was to use the built in Exchange ESM recipient policy for you domain - which does accept the %1g@someplace.com wild card.

Does that help?

cheers

A

_____________________________

Andy Grogan
MSExchange.org Forums Moderator
For my general ramblings about Exchange please visit my website:
W: http://www.telnetport25.com/
B: http://telnetport25.wordpress.com/
M: manifoldmaster@gmail.com

(in reply to beachcracker)
Post #: 12
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 13.Aug.2007 4:33:47 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Ah..ok.
So I just added a new policy in System Manager with %1g%s@domain.com as the address.

One more question though... I need to apply this policy to only certain departments/users/OUs. Can I do this with the filter? Should I choose just the OUs I want or don't want?

Thanks much!

BC

(in reply to a.grogan)
Post #: 13
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 13.Aug.2007 4:48:47 PM   
sabel9579

 

Posts: 481
Joined: 4.Apr.2006
From: USA
Status: offline
The best way I have figured out is to use the custom attribute fields in the user account properties of AD and then modify your recipient policy to look for the value you set in the attribute field

(in reply to beachcracker)
Post #: 14
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 13.Aug.2007 4:55:14 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Ah...sounds like a good idea. Can you provide an example though?
Do I have to use a LDAP query on the recipient policy?
I usually don't play around with the custom attributes in AD.

Thanks,
BC

(in reply to sabel9579)
Post #: 15
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 14.Aug.2007 11:11:25 AM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Does anyone know of a way I can bulk-add the custom attribute to my AD users so I can give this a go?

Thanks,
BC

(in reply to beachcracker)
Post #: 16
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 14.Aug.2007 11:45:11 AM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
OK...I found it. You select the "Custom" tab in ADModify. In my case I added a value for extensionAttribute10 and verified that it shows up in the AD acounts under "Exchange Advanced".

Still plodding along...

BC

(in reply to beachcracker)
Post #: 17
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 14.Aug.2007 12:13:49 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
OK..I bulk-added extensionAttribute10 via ADModify to all my users.

And followed the instructions in this MS article to a "T"....

http://support.microsoft.com/kb/319201

In the new recipient policy I added:
%1g%s@domain.com

Did the "Apply policy now", etc. etc.
Then I even bumped the priority on the recipient policy in ESM to 1.
The users still haven't been added.

Can someone please tell me what I'm doing wrong?

Help?

Thanks,
BC

(in reply to beachcracker)
Post #: 18
RE: Bulk Add SMTP Aliases To Existing Users From A Scri... - 14.Aug.2007 12:16:26 PM   
beachcracker

 

Posts: 34
Joined: 7.Aug.2007
Status: offline
Nevermind everybody. The only thing wrong at the end was my lack of patience. I needed to wait a few minutes for replication.
I'm all set now. Thank you everyone for your help!

BC

(in reply to beachcracker)
Post #: 19

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> General >> Bulk Add SMTP Aliases To Existing Users From A Script or Command Line? Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter