Solved

How to exclude addresses from dynamic distribution lists

Posted on 2008-06-24
14
1,790 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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 500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2016 OWA attachment issues 4 46
Exchange 2013 - Recieve Connectors 4 24
Fraud Email 22 83
exchange 13 24
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

733 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