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:" b...@xxxx.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" b...@xxxx.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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users