Rspamd
Rapid spam filtering system
... for a message. Rspamd can act as a Milter allowing direct interaction with popular MTA systems, such as Postfix or Sendmail. Rspamd is designed to process hundreds of messages per second simultaneously, and provides a number of useful features including a comprehensive Lua API that allows access to messages processing in various aspects as well as asynchronous network API to access external resources, such as DNS, HTTP or even generic TCP/UDP services.