Bacula-users

[Bacula-users] problem using mailcommand with mailx

2010-06-10 09:19:57
Subject: [Bacula-users] problem using mailcommand with mailx
From: Detlef Grittner <detlef.grittner AT sohard DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 10 Jun 2010 14:20:28 +0200
We are using bacula version 5.0.1 on Ubuntu 10.04 LTS (x86_64) and I try
to get bacula working with mailx from the heirloom-mailx package,
because the emails must be sent over TLS to the mailserver.


This is properly working from the commandline:

su bacula -c 'MAILRC=/var/lib/bacula/.mailrc /usr/bin/mailx -v -s "TEST
Bacula:" bla AT xxxx DOT de' < test.txt

where test.txt is a text file containing the mail body.

Now I try to configure this for the bacula-director in the bacula
configuration with:


mailcommand = "MAILRC=/var/lib/bacula/.mailrc /usr/bin/mailx -s
\"Bacula: %t %e of %c %l\" %r"

operatorcommand = "MAILRC=/var/lib/bacula/.mailrc /usr/bin/mailx -s
\"Bacula: Intervention needed for %j\" %r"


but the result is an error message in the log:

Jun 10 10:11:39 backup0 bacula-dir: 10-Jun 10:11  Message delivery
ERROR: Msg delivery error: Operator mail program terminated in
error.#012CMD=MAILRC=/var/lib/bacula/.mailrc /usr/bin/mailx -s "Bacula:
Intervention needed for BackupCatalog.2010-06-10_10.10.00_06"
bla AT xxxx DOT de#012ERR=No such file or directory

which shows that bacula actually uses the right command and tries to
send the message. I guess the error indicates most likely that the mail
body is missing.

Can anyone help here? 
Does bacula try to add a mail body and how is this done?

Regards,

Detlef Grittner



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>