Skip to content

Instantly share code, notes, and snippets.

@mapkyca mapkyca/.procmailrc
Created Sep 4, 2013

Embed
What would you like to do?
Procmail script to encrypt outgoing root email before forwarding.
SUBJECT=`formail -xSubject:`
FROM=`formail -xFrom:`
:0 c
*^To:.*root.*
|formail -I "" | gpg --trust-model always -ear "marcus@marcus-povey.co.uk" | mail -r "$FROM" -s "$SUBJECT" marcus@example.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.