Skip to main content
Version: 0.16

Overview

Message rewriting alters aspects of an email message as it is processed by the mail server. This can involve changing the sender or recipient addresses in the envelope (the 'outside' of the message), or modifying the content itself, including headers, body, and attachments.

Typical reasons for rewriting a message include changing recipient addresses to redirect mail traffic, obfuscating the original sender's address for privacy, or altering the domain in an address to match an organisation's branding. Modifying the content of a message is useful for managing how it is presented to the recipient: operators may add, delete, or change headers for tracking or compliance, alter the body to append a disclaimer or signature, or manage attachments for security, for example by removing potentially harmful files.

Stalwart supports both address rewriting and content modification.