Skip to main content

Overview

E-mail filtering is a crucial part of any modern mail server system. Filtering serves various purposes including the management of incoming and outgoing messages, blocking or flagging spam, removing viruses from attachments, automating organization of messages, and implementing various user-defined rules for message handling. Effective filtering is essential not only for the organization and security of the mail system but also for user productivity and the overall quality of the email experience.

Stalwart SMTP supports various filtering mechanisms, which allow a high degree of flexibility and customization for system administrators to define their filtering rules and operations:

  • Spam filter: Stalwart SMTP Server includes a comprehensive Spam and Phishing filter that provides a robust defense against such unwanted emails.

  • Sieve scripts: These are scripts written in the Sieve language, a powerful, yet straightforward language specifically designed for mail filtering. Sieve scripts allow both administrators and users to specify rules for how incoming mail should be handled.

  • Milter: Milter (short for "mail filter") is a dynamic extension for mail servers, which allows external software to inspect or modify messages as they're being processed. Milters can be used for a wide range of purposes, such as spam filtering, virus scanning, or adding footers to outgoing messages.

  • Pipes: For more specialized or complex filtering needs, Stalwart SMTP allows the use of external executable files, called "pipes". These pipes can take an email message, perform some operation, and return the modified message.