Bacula-users

Re: [Bacula-users] Mail notification

2013-01-28 10:30:29
Subject: Re: [Bacula-users] Mail notification
From: Dan Langille <dan AT langille DOT org>
To: Sven Gehr <mailingliste AT dreampixel DOT de>
Date: Mon, 28 Jan 2013 10:27:52 -0500
On Jan 28, 2013, at 10:09 AM, Konstantin Khomoutov wrote:

> On Mon, 28 Jan 2013 15:48:08 +0100
> Sven Gehr <mailingliste AT dreampixel DOT de> wrote:
> 
>> I have my setup bacula ready. I have test backup & restore. Now I
>> would like an email notification. My message ressource:
> [...]
>>   mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) 
>> \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
> [...]
>> What I need to change so that notification-mails send to an external 
>> mail server (relay)?
> 
> Did you ever try to do `man bsmtp`?


Yeah, the previous post is correct, I think.  bsmtp is the standard 
Bacula-provided tool for sending out email.

>>From man bsmtp:

       -h mailhost:port
              Use mailhost:port as the SMTP server. (default port: 25)

So in your bacula-dir.conf, you'll find something like this:

mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s 
\"Bacula: %t %e of %c %l\" %r"

Alter localhost accordingly.

Did that work?


-- 
Dan Langille - http://langille.org


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>