Gmail filter not from domain. com" for "not from" works properly.