Queries update.

fixes #447
Don't prevent domain admins to use local mailboxes they don't own.

fixes #469