Professional Documents
Culture Documents
Sending Bacula Status Mails With SMTP Authentication
Sending Bacula Status Mails With SMTP Authentication
Sending Bacula Status Mails With SMTP Authentication
A new version of the Article Button plugin for Joomla 2.5 can be found here.
Aktuelle Seite: Home Blogs IT-Blog sending bacula status mails with smtp authentication Suchen...
Home Yesterday i decided to enable the mailing feature of bacula, to keep informed about backups that did not work.
Tätigkeitsbereiche
Normally you can easily configure that in the bacula-dir.conf file, by uncommenting/setting the mailcommand and the email-address.
Open-Source etc. The default entries look similar to this:
IT-Blog
The mailcommand bsmtp is a bacula-builtin and the %r gets replaced with the email-address from "mail".
In this example all mails except the skipped ones get sent to root@localhost.
In my case i could not use bsmtp because i need authentication on the smtp server to send mails, like gmail also needs.
So i had to look for an alternative and i found sendEmail that is also available as Debian package.
sendEmail is a very powerful smtp-command-line tool. The installation on Debian is quite simple.
Now i changed the mailcommand to the following: (you have to put it in one line!)
I choose to use "MailOnError", because i check all jobs and logs on a regular base so i just want a quick inform if an error occured, if you
use "mail" then you get also informed about succesfully terminated jobs.
Iznatoraf
https://www.fairtec.at/de/it-blog-mainmenu-16/153-sending-bacula-status-mails-with-smtp-authentication 1/2
16/8/2018 sending bacula status mails with smtp authentication
Auf Kommentar antworten
Thank you for that tip. I have tried to get statusmail working very long. With your solution it now works very well for me.
Gustavo A. Díaz
I was looking for this to, and you dont need to specify the -m, since bacula adds the body message by stdin. So, the way as example
should be:
mailcommand = "/usr/bin/sendEmail -s mail.example.com -xu mailsend@example.com -xp mailpasswd -f "(Bacula) " -u "Bacula: %t %e
of %c %l" -t %r"
operatorcommand = "/usr/bin/sendEmail -s mail.example.com -xu mailsend@example.com -xp mailpasswd -f "(Bacula) " -u "Bacula:
Intervention needed for %j" -t %r"
Cheers.
Name*
Website
Ihr Kommentar*
Kommentar abschicken
https://www.fairtec.at/de/it-blog-mainmenu-16/153-sending-bacula-status-mails-with-smtp-authentication 2/2