Created
September 4, 2013 10:00
-
-
Save mapkyca/6435067 to your computer and use it in GitHub Desktop.
Procmail script to encrypt outgoing root email before forwarding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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