journal contain certainly something like the following error.

```
Dec 30 09:41:12 debian11 bconsole[24689]: Connected Director daemon at 
localhost:9101, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
Dec 30 09:41:31 debian11 bareos-dir[24680]: 30-Dez 09:41  Message delivery 
ERROR: Mail prog: bsmtp: tools/bsmtp.cc:128-0 Fatal malformed reply from 
localhost: 501 <root>: sender address must co>
Dec 30 09:41:31 debian11 bareos-dir[24680]: 30-Dez 09:41  Message delivery 
ERROR: Mail prog: bsmtp: tools/bsmtp.cc:128-0 Fatal malformed reply from 
localhost: 501 <root>: sender address must co>
Dec 30 09:41:31 debian11 bareos-dir[24680]: 30-Dez 09:41  Message delivery 
ERROR: Mail program terminated in error.
Dec 30 09:41:31 debian11 bareos-dir[24680]: CMD=/usr/bin/bsmtp -h localhost 
-f "(Bareos) <root>" -s "Bareos: Backup OK of bareos-fd Full" root
Dec 30 09:41:31 debian11 bareos-dir[24680]: ERR=Child exited with code 1
Dec 30 09:41:31 debian11 bareos-dir[24680]: 30-Dez 09:41  Message delivery 
ERROR: Mail program terminated in error.
                                                          
CMD=/usr/bin/bsmtp -h localhost -f "(Bareos) <root>" -s "Bareos: Backup OK 
of bareos-fd Full" root
                                                          ERR=Child exited 
with code 1
D
```

Either use a complete and valid email sender address or create an alias for 
"root|bareos" to something valid.

On Friday, December 30, 2022 at 10:04:40 AM UTC+1 Bruno Friedmann wrote:

> Didn't you reuse the normal mail command line (the one sending the result 
> of the job) to the Bootstrap command (which send the bsr to a recipient)
> Maybe you should check you mta and mail server for error in logs I suspect 
> that your mailer didn't accept the mail due to undefined from address see 
> the %r is not known in bootstrap command when it is in mail command ;-)
> if you use a -f "Bareos <[email protected]>" it should certainly better 
> accepted by the mailer.
>
> On Thursday, December 29, 2022 at 6:32:40 PM UTC+1 [email protected] 
> wrote:
>
>> Hello, my dears,
>>
>> i have version 22.0.1 and my "Write Bootstrap" command runs with errors:
>> ...
>> 29-Dez 18:05 bareos-dir JobId 2696: Error: Error running program when 
>> updating bootstrap file: |/usr/sbin/bsmtp -h dsme01.intern.example.com 
>> -f "(Bareos) " -s "Bareos: Backup OK of bareos-fd Full" : ERR=Child exited 
>> with code 1
>> ...
>> Here my "" configuration file:
>> ...
>> root@dsme01:~# cat /etc/bareos/bareos-dir.d/job/BackupCatalog.conf
>> Job {
>>   Name = "BackupCatalog"
>>   Description = "Backup the catalog database (after the nightly save)"
>>   JobDefs = "DefaultJob"
>>   Level = Full
>>   FileSet="Catalog"
>>   Schedule = "WeeklyCycleAfterBackup"
>>   # This creates an ASCII copy of the catalog
>>   # Arguments to make_catalog_backup.pl are:
>>   #  make_catalog_backup.pl <catalog-name>
>>   RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup MyCatalog"
>>   # This deletes the copy of the catalog
>>   RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup MyCatalog"
>>   # This sends the bootstrap via mail for disaster recovery.
>>   # Should be sent to another system, please change recipient accordingly
>> ##   Write Bootstrap = "|/usr/bin/bsmtp -h dsme01.intern.example.com -f 
>> \"\(Bareos\) \" -s \"Bootstrap for Job %j\" [email protected]"
>>   Write Bootstrap = "|/usr/sbin/bsmtp -h dsme01.intern.example.com -f 
>> \"\(Bareos\) \%r\" -s \"Bareos: \%t \%e of \%c \%l\" 
>> [email protected]"
>>   Priority = 11                   # run after main backup
>>   Run Script {
>>     Console = "update stats days=3"
>>     Console = "prune stats yes"
>>     Console = ".bvfs_update"
>>     Runs When = After
>>     Runs On Client = No
>>     ## Runs On Failure = No
>>   }
>> }
>> ...
>> And this email arrives:
>> ...
>> backupadmin
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset="UTF-8"
>> Content-Transfer-Encoding: 8bit
>>
>> 29-Dez 18:02 bareos-dir JobId 2696: shell command: run BeforeJob 
>> "/usr/lib/bareos/scripts/make_catalog_backup MyCatalog"
>> 29-Dez 18:03 bareos-dir JobId 2696: Start Backup JobId 2696, 
>> Job=BackupCatalog.2022-12-29_18.02.25_20
>> 29-Dez 18:03 bareos-dir JobId 2696: Connected Storage daemon at 
>> bareos.intern.harnet.de:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 
>> TLSv1.3
>> 29-Dez 18:03 bareos-dir JobId 2696:  Encryption: 
>> TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
>> 29-Dez 18:03 bareos-dir JobId 2696: Connected Client: bareos-fd at 
>> dsme01.intern.harnet.de:9102, encryption: TLS_CHACHA20_POLY1305_SHA256 
>> TLSv1.3
>> 29-Dez 18:03 bareos-dir JobId 2696:  Handshake: Immediate TLS 
>> 29-Dez 18:03 bareos-dir JobId 2696:  Encryption: 
>> TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
>> 29-Dez 18:04 bareos-dir JobId 2696: Using Device "FileStorage" to write.
>> 29-Dez 18:04 dsme01-fd JobId 2696: Connected Storage daemon at 
>> bareos.intern.harnet.de:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 
>> TLSv1.3
>> 29-Dez 18:04 dsme01-fd JobId 2696:  Encryption: 
>> TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
>> 29-Dez 18:04 dsme01-fd JobId 2696: Extended attribute support is enabled
>> 29-Dez 18:04 dsme01-fd JobId 2696: ACL support is enabled
>> 29-Dez 18:04 bareos-sd JobId 2696: Volume "Full-0060" previously written, 
>> moving to end of data.
>> 29-Dez 18:04 bareos-sd JobId 2696: Ready to append to end of Volume 
>> "Full-0060" size=8882352406 <(888)%20235-2406>
>> 29-Dez 18:05 bareos-sd JobId 2696: Releasing device "FileStorage" 
>> (/media/usb/backups/storage).
>> 29-Dez 18:05 bareos-sd JobId 2696: Elapsed time=00:01:14, Transfer 
>> rate=38.31 M Bytes/second
>> 29-Dez 18:05 bareos-dir JobId 2696: Insert of attributes batch table with 
>> 110 entries start
>> 29-Dez 18:05 bareos-dir JobId 2696: Insert of attributes batch table done
>> 29-Dez 18:05 bareos-dir JobId 2696: Error: Error running program when 
>> updating bootstrap file: |/usr/sbin/bsmtp -h dsme01.intern.harnet.de -f 
>> "(Bareos) " -s "Bareos: Backup OK of bareos-fd Full" : ERR=Child exited 
>> with code 1
>> 29-Dez 18:05 bareos-dir JobId 2696: Error: Bareos bareos-dir 22.0.1~pre 
>> (21Dec22):
>>   Build OS:               Debian GNU/Linux 11 (bullseye)
>>   JobId:                  2696
>>   Job:                    BackupCatalog.2022-12-29_18.02.25_20
>>   Backup Level:           Full
>>   Client:                 "bareos-fd" 22.0.1~pre (21Dec22) Debian 
>> GNU/Linux 11 (bullseye),debian
>>   FileSet:                "Catalog" 2021-11-10 03:45:01
>>   Pool:                   "Full" (From command line)
>>   Catalog:                "MyCatalog" (From Client resource)
>>   Storage:                "File" (From Job resource)
>>   Scheduled time:         29-Dez-2022 18:02:25
>>   Start time:             29-Dez-2022 18:04:00
>>   End time:               29-Dez-2022 18:05:14
>>   Elapsed time:           1 min 14 secs
>>   Priority:               11
>>   FD Files Written:       110
>>   SD Files Written:       110
>>   FD Bytes Written:       2,835,263,807 (2.835 GB)
>>   SD Bytes Written:       2,835,277,324 (2.835 GB)
>>   Rate:                   38314.4 KB/s
>>   Software Compression:   None
>>   VSS:                    no
>>   Encryption:             no
>>   Accurate:               no
>>   Volume name(s):         Full-0060
>>   Volume Session Id:      33
>>   Volume Session Time:    1671974737
>>   Last Volume Bytes:      11,719,735,756 (11.71 GB)
>>   Non-fatal FD errors:    1
>>   SD Errors:              0
>>   FD termination status:  OK
>>   SD termination status:  OK
>>   Bareos binary info:     Bareos community build (UNSUPPORTED): Get 
>> professional support from https://www.bareos.com
>>   Job triggered by:       User
>>   Termination:            *** Backup Error ***
>> ...
>> What could that be?
>>
>> Greetings from Stefan Harbich
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/51e1ae78-daa7-4b24-aeaa-3dc31e41b917n%40googlegroups.com.

Reply via email to