Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


Closed Thread
  Search this Thread
Old 07-21-2008, 09:58 AM   #1
Red Pantyhose
LQ Newbie
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
BACULA: encrypt messages with gnupg and send them to bsmtp

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 - | /usr/sbin/bsmtp -h -f -s "test"

# but inside bacula-dir.conf this fails :
mailcommand = "gpg --encrypt --always-trust -a -r - | /usr/sbin/bsmtp -h -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"

# and this one fails too
mailcommand = " | gpg --encrypt --always-trust -a -r - | /usr/sbin/bsmtp -h -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"



Last edited by Red Pantyhose; 07-21-2008 at 10:12 AM.
Old 07-21-2008, 10:04 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:

Closed Thread

backup, bacula, bsmtp, encryption, gpg, mail

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to send and receive "Net Send" messages in Linux? Avatar Linux - Networking 16 07-11-2010 10:42 PM
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 10:16 AM
BACULA: encrypt messages with gnupg and send them to bsmtp Red Pantyhose Linux - Software 3 07-22-2008 08:03 AM
LXer: Encrypt and sign Gmail messages with FireGPG LXer Syndicated Linux News 0 06-04-2007 08:31 PM
send messages bong.mau Linux - Networking 2 05-27-2007 09:48 PM

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration