remove non-standard From header from Bacula emails
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 20:28:07 +0000 (22:28 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 20:28:07 +0000 (22:28 +0200)
re Debian#935886, by anarcat

modules/bacula/templates/bacula-dir.conf.erb

index b2a2093..43a8323 100644 (file)
@@ -103,8 +103,8 @@ Catalog {
 ########################################################################
 Messages {
   Name = <%= @messages_name %>
-  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
-  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
+  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"%r\" -s \"Bacula: %t %e of %c %l\" %r"
+  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"%r\" -s \"Bacula: Intervention needed for %j\" %r"
 <% if @email_all %>
   mail = <%= @email_all %> = all
 <% end %>
@@ -121,7 +121,7 @@ Messages {
 # Message delivery for daemon messages (no job).
 Messages {
   Name = Daemon
-  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
+  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"%r\" -s \"Bacula daemon message\" %r"
   mail = <%= @email_daemon %> = all
   console = all, !skipped, !saved
   syslog = all