Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have followed the following steps to create a GAL which 1 condition:


Create a new gal named Test.
R click and select properties.
Under General, click Modify.
Uncheck all except "users with exchange mailboxes."
Click the advanced tab.
Drop down field and click User-> Email Address, then select "ends with" and type in your test domainand click Add.
Hit Find Now to make sure you get the expected results.

That should give you a list of the users with that domain as an email address.


In regards to adding more conditions to the GAL filter.

It seems that if I add another similar condition that ends with a different domain name, it seems to be filtering CONDITION 1 AND CONDITION 2 which will not show any results when I test it with Find Now, how can I specify CONDITION 1 OR CONDITION 2 so that all email address that ends with either OR will turn up in the filter.

Thanks in advance.

share|improve this question
Can you post the LDAP query for the filter? It's my understanding that you can't use the GUI to create a filter with an OR condition, only an AND condition. I suspect you're going to need to create a custom filter with your conditions. – joeqwerty Dec 31 '09 at 3:16
Yep, I believe Joe is right, you'll need to do a custom query and write the LDAP filter yourself (well adapt the one it generates) – Sam Jan 1 '10 at 12:58

I don't have an Exchange 2003 still to test on, but if you still need to create one of these in Exchange 2003 you can create the LDAP query as you listed in your original post but use the "|" instead of "&" when it creates the custom LDAP query. This would query OR instead of AND.

(for the comments, Exchange 2003 had this ability in the GUI, pre-powershell days).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.