Fix domain search sql.
Enable mail filterings.