To set up a mailbox rule in Outlook email, click the Settings gear, then scroll to the bottom and click View All Outlook Settings.
Click Rules and then click Add new Rule.
For more information, view Manage email messages by using rules on Microsoft's website.