Encrypt mails send by cron
Sometimes the status mails of cron jobs may contain sensitive information like filenames that are transmitted unencrypted via email. To encrypt the cron output with gpg to you and you admin, you can add the following to your crontab.
1
2
GPG="/usr/bin/gpg --batch --armor --trust-model always --recipient foo@bar.de --recipient admin@foo.de --encrypt"
30 12 * * * my_cron_script 2>&1 | $GPG