On Wed, Jun 19, 2013 at 3:47 PM, Mohd Shukri <7141175 AT gmail DOT com> wrote:
> Hi,
>
> I am not able to get the email notifications to work. I can't use bsmtp as
> I want to use my gmail account to send it so I have decided to use sendmail.
>
> I am able to send emails using sendmail from the command line and as the
> user 'bacula'. I have tried the suggestions in the Problem Resolution Guide
> but nothing seems to work. Also, I tried using sendEmail by following this
> guide and that too dd not work.
>
> So, either I am missing something obvious or the mailcommand directive in
> the Message resource does not work. My message Resource is as follows:
>
> Messages {
> Name = Standard
> mailcommand = "echo hello | sendmail %r"
> operatorcommand = "echo hello | sendmail %r"
> mail = myaddr AT hotmail DOT com = all, !skipped
> operator = myaddr AT hotmail DOT com = mount
> console = all, !skipped, !saved
> append = "/var/lib/bacula/bacula.log" = all, !skipped
> catalog = all
> }
>
>
> My system info is as follows:
>
> 1. OS : Gentoo Linux
>
> 2. Bacula version: 5.2.13
>
> Please advise.
>
At home I am on gentoo and I do get the bacula emails each night to my
gmail account. However I use my own postfix server to forward emails
to gmail.
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
mailcommand = "/usr/sbin/bsmtp -h 192.168.1.50 -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.1.50 -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = drescherjm AT gmail DOT com = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/var/lib/bacula/log" = all, !skipped
}
------------------------------------------------------------------------------
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
|