Hello,

>Hi Guys

>In manual the chapter "message resource" says:
>Please note: any MailCommand directive must be specified in the Messages
>resource before the desired Mail, MailOnSuccess, or MailOnError directive.
>In fact, each of those directives may be preceded by a different MailCommand.

>I understood that every parameter Mail, MailOnError, MailOnSuccess needs a 
>MailCommand before.


>If I configure like below, when I run command "bacula-dir -t" I receive a 
>message:
>bacula-dir: smartall.c:397-0 Orphaned buffer: bacula-dir 96 bytes at 251a568 
>from parse_conf.c:402

>But If I remove 2nd mailcommand, executing bacula-dir -t"  works fine.
>In this 2nd mail command I've created a script to send errors to the whatsapp, 
>but if I use the same command like 1st, happens the same.

>I need to be worried about it?

No you do not need to worried about it.
The "Orphaned buffer" message suggests that some field of an item in the config 
is being initialized more than once.  That won't cause any problems in itself.
Even in this case mail will be sent to both the mail configurations.

>Messages {
>    Name = Standard

>   # 1st mail command
>   mailcommand = "/sbin/bsmtp -h localhost -f \"Bacula <mail@...>\" -s 
> \"Bacula: %t %e of %c %l \" %r"
>   mail = mail@... = all, !skipped
>   # 2nd mail command
>   #mailcommand = "/sbin/bsmtp -h localhost -f \"Bacula <mail@...>\" -s 
> \"Bacula: %t %e of %c %l \" %r"
>   mailcommand = "/etc/bacula/scripts/_email.sh \"Bacula: %t %e of %c %l \" 
> \"%r\" "
>   MailOnError =  mail@... = all, !skipped
>   operatorcommand = "/sbin/bsmtp -h localhost -f \"Bacula < mail@...>\" -s 
> \"Bacula: Intervention needed for %j\" %r"
>   operator = mail@... = mount
>   console = all, !skipped, !saved
>   append = "/etc/bacula/log/bacula.log" = all, !skipped
>   catalog = all, !skipped, !saved
>}


>Best Regards
>Wanderlei

Thanks & Regards
Soniya

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to