Created
July 24, 2019 18:16
-
-
Save msaladna/88c1ae84deee60e5b1f66ff38bfc1394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/conf/conf.d/director.conf b/conf/conf.d/director.conf | |
index 0024f9f..170f6b0 100644 | |
--- a/conf/conf.d/director.conf | |
+++ b/conf/conf.d/director.conf | |
@@ -32,8 +32,8 @@ Messages { | |
# tell (most) people that its coming from an automated source. | |
# | |
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" | |
- operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" | |
+ mailcommand = "/usr/bin/mailx -S \"from=(Bacula) <%f>\" -s \"Bacula: %t %e of %c %l\" %r" | |
+ operatorcommand = "/usr/bin/mailx -S \"from=(Bacula) <%f>\" -s \"Bacula: Intervention needed for %j\" %r" | |
mail = bacula@localhost = all, !skipped | |
operator = bacula@localhost = mount | |
console = all, !skipped, !saved | |
@@ -51,7 +51,7 @@ Messages { | |
# Message delivery for daemon messages (no job). | |
Messages { | |
Name = Daemon | |
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" | |
+ mailcommand = "/usr/bin/mailx -S \"from=(Bacula) <%f>\" -s \"Bacula daemon message\" %r" | |
mail = bacula@localhost = all, !skipped | |
console = all, !skipped, !saved | |
append = "/var/log/bacula/bacula.log" = all, !skipped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment