Visit Jeremy's Blog.
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, 08: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 09:12 AM.
Old 07-21-2008, 09:04 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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 09:42 PM
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
BACULA: encrypt messages with gnupg and send them to bsmtp Red Pantyhose Linux - Software 3 07-22-2008 07:03 AM
LXer: Encrypt and sign Gmail messages with FireGPG LXer Syndicated Linux News 0 06-04-2007 07:31 PM
send messages bong.mau Linux - Networking 2 05-27-2007 08:48 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:27 PM.

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