Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to exclude addresses from dynamic distribution lists

Posted on 2008-06-24
14
Medium Priority
?
1,809 Views
Last Modified: 2010-04-21
Hi experts,
I have multiple accepted domains on my exchange server
i am trying to build dynamic distribution lists for each company that contain all the users email addresses.
i set this up using
New-DynamicDistributionGroup -Name "Allcompanyusers" -Rec
ipientcontainer domainname.co.uk -RecipientFilter {(WindowsEmailAddress  -like '*@company.co.uk')}#
However when we use this to email all outr users the user sending the email recieves multiple failures to addresses such as service accounts we have setup ie backup@domain ups@domain etc and also systems accounts like globalevents oabversion schema-root.
My question is how can i exclude this addresses is it possible to put these addresses in a group and exclude the group some way
0
Comment
Question by:dougdog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 4
14 Comments
 
LVL 10

Expert Comment

by:uid94130
ID: 21854354
The easies way would be:
If you want to have no NDRs generated for messages sent to this list, you can just set the "Delivery reports options" (in the Advanced Tab (RTM)) of the DL to "Do not send delivery reports".

Check this link for more info:
http://technet.microsoft.com/en-us/library/bb629517(EXCHG.80).aspx
0
 

Author Comment

by:dougdog
ID: 21855025
would there be anyway without disabling reports as the user wants to know if any users are failing
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21855665
Only if you modify the filter to exclude these recipients.

E.g.
You could search for a field that is filled to all the mailboxes, clear it and use the field in the query.

Or populate an extension attribute for all the users except the special ones, but you would have to make sure all new users get this field filled too in this case.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:uid94130
ID: 21855692
Pretty hard... Only if you modify the filter to exclude the special mailboxes.

E.g.
You can find a field that is filled on all the users, clear it on the special mailboxes and use this field in the LDAP filter.
The other way round would be to populate a field like extension attribute only to the normal users, but in this case you need to make sure that all new accounts will get this field filled!
0
 

Author Comment

by:dougdog
ID: 21874928
is there no way to just exclude a group of accounts
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21877524
Just popped to my mind!

You could fill a field (e.g. department) of the special mailboxes, fill it with a special string (that is not used in as department in the whole company) and use the NOT operator in the LDAP query.

Something like:
(!(department=specialString))

I can't try it right now but I will check it in the morning on my play environment and let you know!
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21881367
I just tested the query and it works in my play ground. Please let me know if you need more details on this topic.
0
 

Author Comment

by:dougdog
ID: 21911434
so what youre saying is the accounts i dont want to include in the list
add a unused field
im not sure what you mean by not operator ldap
0
 
LVL 10

Accepted Solution

by:
uid94130 earned 2000 total points
ID: 21914203
Sorry. I got mixed up between Exchange 2003 and 2007. :)

As OPath filter you can use the -not operator. Please check the following 2 examples:

1. The filter excludes the users that have have the department set as "specialString"
New-DynamicDistributionGroup -Name "Allcompanyusers" -Recipientcontainer domainname.co.uk -RecipientFilter {((WindowsEmailAddress  -like '*@company.co.uk') -and -not(department -eq 'specialString'))}

2. The filter excludes the users that start with "SystemMailbox{" or "CAS{"
New-DynamicDistributionGroup -Name "Allcompanyusers" -Recipientcontainer domainname.co.uk -RecipientFilter {((WindowsEmailAddress  -like '*@company.co.uk') -and -not(Name -like 'SystemMailbox{*') -and -not(Name -like 'CAS{*'))}
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21914366
One more thing: to modify an existing Dynamic DistributionGroup you can use the Set-DynamicDistributionGroup cmdlet where you can also use the -RecipientFilter parameter as mentioned in my previous post.
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21914382
One more thing: to modify an existing Dynamic DistributionGroup you can use the Set-DynamicDistributionGroup cmdlet where you can also use the -RecipientFilter parameter as mentioned in my previous post.
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21914541
One more thing: to modify an existing Dynamic DistributionGroup you can use the Set-DynamicDistributionGroup cmdlet where you can also use the -RecipientFilter parameter as mentioned in my previous post.
0
 
LVL 10

Expert Comment

by:uid94130
ID: 21914724
Please ignore my repeated post. Seems my browser got busy and was refreshing the last link.
0
 

Author Closing Comment

by:dougdog
ID: 31470095
thanks ure help is much appreciated
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question