On 2016-12-16 07:43, Periko Support wrote:
> Hi.
>
> we move our server outside the network to a provider, before we manage
> our own server for the company.
>
> I use ssmtp before the switch, I setup ssmtp to point to the new
> server, I test on console and works.
>
> But bacula bsmtp has issues.
>
> My OS is Centos 5.x x64.
>
> Looks like cannot talk to my new server:
>
> Message delivery ERROR: Mail program terminated in error.
> CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) <[email protected]>"
> -s "Bacula: Backup OK of MBX-INTRADE Differential" [email protected]
> ERR=Child exited with code 1
> Dec 15 01:47:18 mbx-backup bacula-dir: 15-Dec 01:47 Message delivery
> ERROR: Mail prog: bsmtp: bsmtp.c:442 Fatal connect error to localhost:
> ERR=Connection refused
>
> Looks like bsmtp is search for a local smtp service.
>
> My system mta is ssmtp.
>
> bacula-dir has this config:
>
> mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula: %t %e of %c %l\" %r"
> operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
> mail = [email protected] = all, !skipped
> operator = [email protected] = mount
> console = all, !skipped, !saved
>
> Messages {
> Name = Daemon
> mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula daemon message\" %r"
> mail = [email protected] = all, !skipped
> console = all, !skipped, !saved
> append = "/var/lib/bacula/log" = all, !skipped
> }
>
> Don't know who to fix this, any tip will be appreciated, thanks...!!!!
>
It is complaining that it cannot connect to "localhost" and you cannot
tell why?
Here's a hint: mailcommand = "/usr/sbin/bsmtp -h localhost ...
Cheers,
Gary B-)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users