Block Email Spam By Checking Header and Body in Postfix/SpamAssassin
In previous articles, we discussed how you can quickly set up your own mail server using iRedMail and 7 effective methods for blocking email spam with Postfix SMTP server. I’m going to share more tips and tricks to block email spam in this article. Specifically, we will see how to check email header and body with Postfix and SpamAssassin (SA) to detect spam. SpamAssassin is a free, open-source, flexible and powerful spam-fighting tool. While the commands in this article are for Ubuntu users, you can easily adapt them for Debian, CentOS, RHEL and OpenSUSE.
Read full tutorial here: https://www.linuxbabe.com/mail-server/block-email-spam-check-header-body-with-postfix-spamassassin