auto adding
Hello, In my "organization" we have 20% of Exchange accounts and 80% Linux Accounts. The Linux accounts are mail contact (New mail user & New mail contact). I have created a new DG Named "LINUX" and added all ythe existing users in the DG When a new user is created (New mail user & New mail contact). I need that user to belong to the DG "Linux" automatically. How can I do that?? Thanks
November 30th, 2009 1:21pm

You can create a Dynamic distribution list which will add users based on the filters that you set for the linux users.See step by step configuration on this http://blogs.techrepublic.com.com/networking/?p=378Raj
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2009 1:26pm

Hi Again, Assuming the version of Exchange is 2007. To accomplish this EITHER you can create a Mail User and Mail Contact Template (An object with standard settings) and then user New-Mailcontact with -TemplateInstance parameter. OR you create these object with a script containing the code of adding these objects in the DG. Let us know which one suits you. Thanks.Vishal Ramnani | MCITP - Exchange 2007 | MCSE Messaging | MCTS - Win 2008 Config
November 30th, 2009 1:33pm

Yes it is an Exchange 2007 environment (sorry for not mentioning it) Vishal, could you please give me further info about how to create template? and object with a script containing code ?? The user creating is done from the Active Directory team (it's odd but can't do loads of things on the AD) and then I create the user choosing existing user from the Exchange console management 2007 therefore if I need to ask the AD team to do something at the user creation, please let me know. Thanks, G
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2009 1:43pm

For your AD team you can just ask them to add some custome attribute, say "LINUX" on custome attribute 1, according to the screen shot http://blogs.techrepublic.com.com/networking/?p=378.Raj
November 30th, 2009 1:52pm

Yes! agree with Raj as well. This will be a hassle free Idea while creating object just add some value as "LINUX" or so to filter out these object and create a Dynamic Distribution Group instead of plain distribution group. Dynamic Distribution Groups are expanded and filtered at the time when mail comes to HUB transport server. However here are the method of creating it by Template and a Script. TEMPLATE 1. Create a Mail Contact as usual and name it "Template" 2. Add that object to the group you created. 3. Use below Powershell command whenever you create an object. New-MailContact -Name <name of Contact as appear in AD> -ExternalEmailAddress <email address on Linux Server> -Firstname <First name> -Lastname <Last name> -Displayname <Lastname, First name> -TemplateInstance <id of template object we just created> Same for Mail User SCRIPT. Copy below scriptlet and save it in .ps1 format as NewContact.ps1 ----------------------- Param ( $Fname, $Lname, $externalEmail ) New-MailContact -Name "$Lname, $Fname" -firstname $Fname -lastname $Lname -Alias "$Fname_$Lname" -DisplayName "$Lname, $Fname" -ExternalEmailAddress $externalEmail Get-DistributionGroup -Identity "Linux" | Add-DistributionGroupMember -Member "$Fname_$Lname" ------------------- At PS prompt type below command. NewContact.ps1 -Fname <First name> -Lname <Last Name> -externalEmail <email address in Linux env> I didn't test it though so let me know if it doesn't work as expected. Thanks. Vishal Ramnani | MCITP - Exchange 2007 | MCSE Messaging | MCTS - Win 2008 Config
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2009 2:24pm

Hi,Customize the attribute is the best practice.ThanksAllen
December 2nd, 2009 10:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics