Create rules that apply to an entire domain

How to create a rule so that all emails from a specific server (example microsoft.com) go into a specific folder.