/usr/lib/sendmail is Bacula's default command for sending mail, so it looks
like bacula-dir is using a Messages resource without a mailcommand.

Try running "show job=RestoreFiles" in bsconsole to see what it has.

__Martin


>>>>> On Mon, 14 Feb 2022 11:20:17 +0100, Helmut Schneider said:
> 
> Hi,
> 
> /usr/local/etc/bacula/bacula-dir.conf
> Messages {
>    Name = "MailEverything"
>    catalog = all
>    console = all
> [...]
>    mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) 
> \<%r\>\" -s \"Bacula: %t %e of %c (%f - %l)\" %r"
> [...]
>    operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) 
> \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
>    syslog = all
> }
> 
> Job {
>    Name = "RestoreFiles"
> [...]
>    Messages = MailEverything
> [...]
>    Type = Restore
> [...]
> }
> 
> But bacula is still trying sendmail:
> 
> Message delivery ERROR: Mail program terminated in 
> error.#012CMD=/usr/lib/sendmail -F Bacula root@BSDHelmut#012ERR=No such 
> file or directory
> 
> Any ideas where to start?
> 
> [helmut@BSDHelmut ~]$ sudo grep -ir sendmail /usr/local/etc/bacula/
> [helmut@BSDHelmut ~]$
> 
> Version: 9.6.7 (10 December 2020)
> 
> [helmut@BSDHelmut ~]$ uname -rs
> FreeBSD 12.2-RELEASE-p10
> [helmut@BSDHelmut ~]$
> 
> [helmut@BSDHelmut ~]$ echo Test | /usr/local/sbin/bsmtp -h localhost -f 
> "Bacula Backup <Bacula@BSDHelmut>" -s "Bacula:" root
> [helmut@BSDHelmut ~]$
> 
> Thank you!
> 
> 
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to