Mailmunge is an email filtering framework that uses the Milter library to interface with Postfix or Sendmail. It lets you write your email filtering policies in Perl.
The home page is https://www.mailmunge.org/ and full documentation is at https://www.mailmunge.org/docs/
Mailmunge is free software, licensed under the terms of the GNU General Public License, version 2.