Bacula-users

Re: [Bacula-users] bsmtp problem.

2014-03-20 10:14:27
Subject: Re: [Bacula-users] bsmtp problem.
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 20 Mar 2014 14:08:07 GMT
>>>>> On Thu, 20 Mar 2014 07:49:57 +0100, Erik P Olsen said:
> 
> On 19/03/14 17:02, Martin Simmons wrote:
> >>>>>> On Wed, 19 Mar 2014 16:18:31 +0100, Erik P Olsen said:
> >>
> >> Have just build a fedora 20 system with bacula 5.2.13 which seems to do its
> >> backup job correctly. However, the messages are not send.
> >> The messages directive in bacula-dir.conf is as follows:
> >>
> >> Messages {
> >>     Name = Standard
> >>     mailcommand = "/usr/sbin/bsmtp -f \"\(Bacula\) %r\" -s \"Bacula: %t %e 
> >> af %n
> >> %l\" %r"
> >>     operatorcommand = "/usr/sbin/bsmtp -f \"\(Bacula\) %r\" -s \"Bacula: 
> >> Indgreb
> >> nødvendigt for %j\" %r"
> >>     mail = root AT epo DOT dk = all, !skipped
> >>     operator = root AT epo DOT dk = mount
> >>     console = all, !skipped, !saved
> >>     append = "/var/spool/bacula/log" = all, !skipped
> >> }
> >>
> >>
> >> In /var/log/messages I see:
> >>
> >> Mar 18 19:51:31 epohost bacula-dir: 18-Mar 19:51  Message delivery ERROR: 
> >> Mail
> >> program terminated in error.
> >> Mar 18 19:51:31 epohost bacula-dir: CMD=/usr/sbin/bsmtp -f "(Bacula)
> >> root AT epo DOT dk" -s "Bacula: Backup Fatal Error af BackupUlla-pc 
> >> Incremental"
> >> root AT epo DOT dk
> >> Mar 18 19:51:31 epohost bacula-dir: ERR=Child exited with code 1
> >>
> >> The messages are indeed appended /var/spool/bacula/log but I see nothing in
> >> /var/log/bacula/bacula.log which I probably shouldn't.
> >>
> >> I have recently been using this method with bacula 5.2.12 on fedora 19 with
> >> no problem. Has anything been changed or is this perhaps a bug of some 
> >> kind?
> >
> > Do you have an smtp server running on localhost?
> >
> > What else did bacula-dir print to /var/log/messages before the lines you
> > posted?  It should have logged the reason for the failure.
> >
> 
> Yes, sorry. I should have shown these lines as well. Here they are:
> 
> Mar 18 19:51:31 epohost bacula-dir: 18-Mar 19:51  Message delivery ERROR: 
> Mail 
> prog: bsmtp: bsmtp.c:514-0 Failed to connect to mailhost localhost
> Mar 18 19:51:31 epohost bacula-dir: 18-Mar 19:51  Message delivery ERROR: 
> Mail 
> program terminated in error.

Almost certainly you are not running an smtp server running on localhost.
Either do that or add the "-h mailhost" option to bsmtp with a suitable
mailhost.

__Martin

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users