Hi,
Can you try one test with the internal mail server hostname specified:
echo "This is test message." | /usr/sbin/bsmtp -h smtp-int.uc.pt -f
[email protected] -s "Test" [email protected]
If that fails, perhaps the backup server's firewall is stopping the
connection?
--
Graham
On Thu, 5 May 2022, [email protected] wrote:
Hi
My configuration of Messages directive in bacula-dir.conf has the following
configuration:
Messages {
Name = "Standard"
MailCommand = "/usr/sbin/bsmtp -h smtp-int.uc.pt -f \"(Bacula) <%r>\" -s \"Bacula BP3:
%t %e of %c %l\" %r"
OperatorCommand = "/usr/sbin/bsmtp -h smtp-int.uc.pt -f \"(Bacula) <%r>\" -s \"Bacula
BP3: Intervention needed for %j\" %r"
Mail = [email protected] = All, !Debug, !Saved, !Skipped
Console = All, !Debug, !Saved, !Skipped
Operator = [email protected] = Mount
Catalog = All, !Debug, !Saved, !Skipped
}
Where smtp-int.uc.pt is a local smtp server in my organization .
I also try:
Messages {
Name = "Standard"
MailCommand = "/usr/sbin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula BP3: %t %e
of %c %l\" %r"
OperatorCommand = "/usr/sbin/bsmtp -h smtp-int.uc.pt -f \"(Bacula) <%r>\" -s \"Bacula
BP3: Intervention needed for %j\" %r"
Mail = [email protected] = All, !Debug, !Saved, !Skipped
Console = All, !Debug, !Saved, !Skipped
Operator = [email protected] = Mount
Catalog = All, !Debug, !Saved, !Skipped
}
Both options doesn’t work
When I try a test in the terminal of the server like;
echo "This is test message." | /usr/sbin/bsmtp -h localhost -f [email protected] -s
"Test" [email protected] -d 50pwd
I receive the following error:
bsmtp: bsmtp.c:312-0 Debug level = 50
bsmtp: bsmtp.c:406-0 My hostname is: bacula_bp3_server
bsmtp: bsmtp.c:430-0 From [email protected]
bsmtp: bsmtp.c:488-0 Failed to connect to mailhost localhost
Could anyone help me.
Gina Costa
Universidade de Coimbra • Administração
SGSIIC-Serviço de Gestão de Sistemas e Infraestruturas de Informação e
Comunicação
Divisão de Infraestruturas de TIC
Rua do Arco da Traição | 3000-056 COIMBRA • PORTUGAL
Tel.: +351 239 242 870
E-mail: [email protected]
www.uc.pt/administracao
Este e-mail pretende ser amigo do ambiente. Pondere antes de o imprimir!
This e-mail is environment friendly. Please think twice before printing it!
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users