View Issue Details

IDProjectCategoryView StatusLast Update
0001142bareos-coredirectorpublic2023-09-27 10:39
Reportertuxmaster Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
PlatformLinuxOSCentOSOS Version7
Product Version18.2.6 
Summary0001142: No error message logged/reported when the mail command don't exists.
DescriptionWhen the command for "Mail Command" or "Operator Command" not exists, then no error will logged or reported.
Steps To ReproduceSimple set an invalid mail command.
Additional InformationSample configuration:
good:
Messages {
  Name = Standard
  Description = "all to the log, db and mail"
  Mail Command = "/usr/bin/bsmtp -8 -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  Operator Command = "/usr/bin/bsmtp -8 -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: help at %j needed\" %r"
  Mail = root@localhost = all, !skipped, !saved, !audit
  Operator = root@localhost = mount
  Console = all, !skipped, !saved, !audit
  Append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
  Catalog = all, !skipped, !saved, !audit
}
bad:
Messages {
  Name = Standard
  Description = "all to the log, db and mail"
  Mail Command = "/usr/sbin/bsmtp -8 -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  Operator Command = "/usr/sbin/bsmtp -8 -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: help at %j needed\" %r"
  Mail = root@localhost = all, !skipped, !saved, !audit
  Operator = root@localhost = mount
  Console = all, !skipped, !saved, !audit
  Append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
  Catalog = all, !skipped, !saved, !audit
}
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-07-31 16:47

manager   ~0005293

Not sure what is expected here. Those are not monitored to allow the usage of /dev/null (so don't report any message).
tuxmaster

tuxmaster

2023-08-04 18:11

reporter   ~0005313

Hi Bruno,
that an error will be logged about the failed command, because failing without log will be unfavorable.
bruno-at-bareos

bruno-at-bareos

2023-09-27 10:39

manager   ~0005450

Hello, we will not proceed to any changes in that specific tool, bsmtp (due to smtp communication) will return nothing if success. which means if you don't received an expected email, you will have to check your command.

Issue History

Date Modified Username Field Change
2019-11-23 17:21 tuxmaster New Issue
2023-07-31 16:47 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-31 16:47 bruno-at-bareos Status new => feedback
2023-07-31 16:47 bruno-at-bareos Note Added: 0005293
2023-08-04 18:11 tuxmaster Note Added: 0005313
2023-08-04 18:11 tuxmaster Status feedback => assigned
2023-09-27 10:39 bruno-at-bareos Status assigned => closed
2023-09-27 10:39 bruno-at-bareos Resolution open => won't fix
2023-09-27 10:39 bruno-at-bareos Note Added: 0005450