Deep Packet Inspection (DPI) is a form of network packet filtering that examines the data part (and possibly the header) of a packet as it passes an inspection point. DPI involves a detailed analysis of the contents of the data being sent and received, which can include emails, to make decisions based on the content.