-
-
Save sitemapxml/c346ef1211b3635f06d987c75116a6ef to your computer and use it in GitHub Desktop.
Bacula configuration to use sendEmail
This file contains hidden or 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
. . . | |
Messages { | |
Name = Standard | |
mailcommand = "/usr/local/bin/sendEmail-backup \"[BACKUP] %t %e of %n %l\" \"%r\"" | |
operatorcommand = "/usr/local/bin/sendEmail-backup \"[BACKUP] 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 | |
} | |
Messages { | |
Name = Daemon | |
mailcommand = "/usr/local/bin/sendEmail-backup \"[BACKUP] Alert message\" \"%r\"" | |
mail = [email protected] = all, !skipped | |
console = all, !skipped, !saved | |
append = "/var/log/bacula/bacula.log" = all, !skipped | |
} | |
. . . |
This file contains hidden or 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
#!/bin/bash | |
SMTP_SERVER=smtp.example.com | |
USER=smtpuser | |
PASSWORD=smtppassword | |
[email protected] | |
SUBJECT=$1 | |
RECIPIENTS=$2 | |
/usr/local/bin/sendEmail -q -s $SMTP_SERVER -xu $USER -xp $PASSWORD -f $SENDER -u $SUBJECT -t $RECIPIENTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment