GMail doesn't filter based on presence in the contact list but it provides incredible filtering options based on combinations of specific fields (e.g. you want to separate Amazon order notifications from their marketing emails).
Here's what I have as my "Notifications" label filter:
(from:facebookmail.com OR from:linkedin.com OR from:foursquare.com OR from:postmaster.twitter.com OR from:[email protected] OR from:friendfeed.com OR from:[email protected] OR from:noreply OR from:[email protected] OR to:meetup.com OR from:do-not-reply) -{subject:buzz OR from:nokia.com OR from:googlegroups.com OR from:groups.yahoo.com OR subject:"google alert"}
First, I define the senders that I want to be filtered, then I add exceptions, such as mailing lists and Google Alerts that are filtered separately.
To start creating a filter click the down arrow on the left of GMail's search box. Then enter the query into Has the words
or Doesn't have
fields and click Create filter with this search
. In the next screen, you'll have a number of options for actions to be taken - choose whatever you need.
