I'm not sure at 100% (can't reproduce that with using mailx instead of bsmtp for my own config)
but I remember a similar case few time ago, which was more a missing \n on the first line that should have been fixed in the meantime.
you didn't indicate with this is a current version of Bareos nor the system on which you're running that.
What happen if you stop using tee ?
For example here's how I handle writing the file to storage + sending a mail afterwards
in backup catalog job
WriteBootstrap = "/var/lib/bareos/storage/bsr/%c.%n.bsr"
RunScript {
Command = "/usr/bin/mailx -s \"Bareos: bootstrap for Job %j\" -a /var/lib/bareos/storage/bsr/%c.%n.bsr root@host"
RunsWhen = "after"
RunsOnClient = No
}
I found better the way mailx is sending the bsr, as it is really an attached file, easier to download and reuse if it needs to be pickup from mail.
(also easier to extract if handled by programs)
For reference how to use mailx