Strip attachments to a shared folder
Removing an attachment outright loses information the recipient might actually need. MSH Postfix Milter’s strip attachments action takes a gentler approach: it removes the attachments from a matching message, saves them to a folder on the mail server, and inserts a template into the body in their place explaining what happened.
The save location supports variables, so a path like /var/mail/stripped/{message:id} gives every
stripped message its own folder, and the template can tell the recipient where to find the files or
why they were removed in the first place.
Careful with what should stay in the message
Signed and encrypted messages are left untouched entirely, since removing parts of them would
break the signature or the encryption. You can also exempt content types like image/*;text/calendar
so inline images and calendar invites stay exactly where they are, while regular file attachments
still get stripped and saved.
To learn more visit MSH Postfix Milter website.