On one of my systems I run a secondary mail server which gets all mail from a primary server. However the primary server has an annoying tendency of attaching text to the end of the mails when forwarding (similar to the "confidentiality notices" you see sometimes).
Since this secondary server is mostly for archival purposes I'd like to get rid of this text. The text is fairly identifiable because it always starts with five dashes at the end of the message.
Is such a thing possible with Postfix or should I do this further downstream (e.g., sieve)?
A few notes about the setup:
- Dovecot (1.x) with virtual mailboxes
- Amavisd + Spamassassin for spam / virus checking
- openDKIM for DKIM checking
- Sieve enabled
It's my own server so I can modify whatever configuration as needed.