06-15-2009 02:10 PM
Hi There,
I need a little assistance again after encountering a spam mail actually emailed one of our distribution group. Is there way to setup an LDAP query to work on every email address except for 1 OU (such as "Distribution Group" OU.)
Even a filter would be a nice workaround if anyone can offer some advice.
06-16-2009 10:58 AM
Hello,
I have no Ironport example but I think you manage to add the Ironport specific stuff to it yourself.
A few examples:
This one does what you ask for. It includes all objects with “objectclass=person" and any value in the "mail=" attribute. except if the object is in a container that is named exludedUsers1 (anywhere in your directory)
(&
(objectclass=person)
(mail=*)
(!(ou:dn:=excludedUsers1))
)
(&
(objectclass=person)
(mail=*)
(!(ou:dn:=excludedUsers1))
(!(ou:dn:=excludedUsers2))
(!(ou:dn:=excludedUsers3))
)
(&
(objectclass=person)
(mail=*)
(ou:dn:=includedUsers1)
)
(&
(objectclass=person)
(mail=*)
(|
(ou:dn:=includedUsers1)
(ou:dn:=includedUsers2)
(ou:dn:=includedUsers3)
)
)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide