bsmtp not sending emails to my new server(external)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bsmtp not sending emails to my new server(external)

Periko Support
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) <[hidden email]>"
-s "Bacula: Backup OK of MBX-INTRADE Differential" [hidden email]
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 = [hidden email] = all, !skipped
  operator = [hidden email] = mount
  console = all, !skipped, !saved

Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula daemon message\" %r"
  mail = [hidden email] = 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...!!!!

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: bsmtp not sending emails to my new server(external)

Gary R. Schmidt-3
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) <[hidden email]>"
> -s "Bacula: Backup OK of MBX-INTRADE Differential" [hidden email]
> 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 = [hidden email] = all, !skipped
>   operator = [hidden email] = mount
>   console = all, !skipped, !saved
>
> Messages {
>   Name = Daemon
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula daemon message\" %r"
>   mail = [hidden email] = 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users