Hi Gina,
Should your test command not be addressed to your mail server? As below:
echo "This is test message." | /usr/sbin/bsmtp -h smtp-int.uc.pt -f
[email protected] -s "Test" [email protected] -d 50pwd
Regards,
Leigh.
On 2022-05-05 10:03, [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 [1] -f \"(Bacula)
<%r>\" -s \"Bacula BP3: %t %e of %c %l\" %r"
OperatorCommand = "/usr/sbin/bsmtp -h smtp-int.uc.pt [1] -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 [1] 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 [1] -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 [2]
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
Links:
------
[1] http://smtp-int.uc.pt
[2] http://www.uc.pt/administracao
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users