Dear Readers
We like to pipe the bacula bsmtp-Messages through gpg because our backup-script run by the RunBeforeJob Option produces very sensitive information.
Is there a possibility to do this ?
# this works
echo 'streng geheim' | gpg --encrypt --always-trust -a -r
wgsupport@myhost.ch - | /usr/sbin/bsmtp -h mail.myhost.ch -f
test@myhost.ch -s "test"
dummy@myhost.ch
# but inside bacula-dir.conf this fails :
mailcommand = "gpg --encrypt --always-trust -a -r
wgsupport@myhost.ch - | /usr/sbin/bsmtp -h mail.myhost.ch -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
# and this one fails too
mailcommand = " | gpg --encrypt --always-trust -a -r
wgsupport@myhost.ch - | /usr/sbin/bsmtp -h mail.myhost.ch -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
Thanks
Denis