The most common method used for spam protection in cPanel is SpamAssassin, it is an automated email filtering system that attempts to identify spam messages based on the content of the email's headers and body.
Follow these steps to enable and configure SpamAssassin: