dbacl can be used to filter and sort incoming email. The exact procedure depends on your system architecture, but here are some topics to get you started: