Bacula-users

Re: [Bacula-users] bsmtp problem.

2014-03-21 08:21:13
Subject: Re: [Bacula-users] bsmtp problem.
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 21 Mar 2014 12:16:07 GMT
>>>>> On Thu, 20 Mar 2014 20:01:58 +0100, Erik P Olsen said:
> 
> On 20/03/14 15:08, Martin Simmons wrote:
> >>>>>> 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.
> 
> That was my first thought so I booted my old fedora 16 system which happen to 
> send the messages correctly with exactly the same messages directive and 
> there 
> it works. So bsmtp IS the smtp server, I just have to find out why it won't 
> connect to localhost. Maybe it's a firewall problem or the wrong port. Or 
> simply 
> a bug.

No, bsmtp IS NOT the smtp server -- it is an smtp client.  You are probably
running an smtp server such as sendmail on your fedora 16 machine.

__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
<Prev in Thread] Current Thread [Next in Thread>