On Mon, 21 Nov 2022 12:16:24 +0000
Gina Costa <[email protected]> wrote:
> Hi,
>
> I’m using bacula 9 over CentOS. I need receive notifications about
> job failures but this notifications doesn’t work. The configuration
> file bacula-dir.conf has the followup Messages directive:
>
> *******************************************************************************
> Messages {
> Name = Standard
> mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s
> "Bacula: %t %e of %c %l" %r" operatorcommand = "/usr/sbin/bsmtp -h
> 192.168.0.66 -f "(Bacula) <%r>" -s "Bacula: Intervention needed for
> %j" %r" mail = [email protected] = all, !skipped operator =
> [email protected] = mount console = all, !skipped, !saved
> append = "/var/log/bacula/bacula.log" = all, !skipped
> catalog = all
> }
> *******************************************************************************
>
> To test whether the mail sending is working as it should, I do the
> following command, and this works fine, I receive the test message :
>
> echo "This is test message." | /opt/bacula/bin/bsmtp -h
> 192.168.0.66 -f [email protected] -s "Test" [email protected] -d 50
>
>
> Can anyone help me?
>
>
>
> Gina Costa
Hello Gina,
Your paths are different. Your configuration file has /usr/sbin/bsmtp
but your test command has /opt/bacula/bin/bsmtp
I think you need to change the path in your configuration file (two
places)
Regards,
Richard
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users