Bacula-users

Re: [Bacula-users] Getting email notifications to work in Bacula 5.2.13

2013-06-20 14:14:16
Subject: Re: [Bacula-users] Getting email notifications to work in Bacula 5.2.13
From: Mohd Shukri <7141175 AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 20 Jun 2013 18:04:51 +0000 (UTC)
Phil Stracchino <alaric <at> metrocast.net> writes:

> 
> 
> My advice?  Try something like this:
> 
>   mailcommand = "/usr/bin/mutt -F /root/.muttrc-bacula -s \"\(Bacula\)
> \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/bin/mutt -F /root/.muttrc-bacula -s
> \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
> 
> where .muttrc-bacula looks something like this:
> 
> #
> # Mutt configuration file for Bacula (we hardly need anything)
> #
> set alias_file="~/aliases"
> set from="Bacula <bacula <at> babcom.com>"
> set realname="Bacula Storage Management System"
> set use_8bitmime=yes
> 
> I don't know what MTA you have installed (my server, which also runs
> Gentoo, uses Postfix), but a direct pipe to sendmail is seldom the best
> way to deliver mail, and in fact, on Gentoo it is almost certain that a
> direct unformatted pipe to /usr/sbin/sendmail without additional options
> will not work as you probably intend.
> 
> (Note that /usr/sbin/sendmail is almost certainly NOT going to be the
> Sendmail MTA, mail-mta/sendmail, unless you manually chose to replace
> the system MTA with Sendmail yourself, and if you knew enough Sendmail
> to make that decision, you probably wouldn't be asking this question in
> the first place.)
> 

Hi Phil,

 Noted. I will look into mutt now.

 At the same time, I found out that if I comment out the mailcommand
directive, I end up receiving email notifications with the subject "Bacula
Message" and the body containing the output of the job ran. Based on the
documentation, this means that the email was sent with:

 mail -s ”Bacula Message”<recipients>
 
 However, my system does not have the mail command installed. Any insights
as to how the email was sent?
 
 Also, my MTA is mail-mta/ssmtp-2.64-r2.



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users