BSMTP(1)
π BSMTP(1) β Bacula's SMTP client, aka the mail submission program, bestie edition
okay so you found the bsmtp page, welcome, pull up a chair π«Ά this is from the Network backup, recovery and verification corner of the world and it's genuinely iconic.
β¨ NAME β¨
bsmtp β Bacula's SMTP client (mail submission program). she sends mail. that's the whole job. π
πΈ SYNOPSIS πΈ
bsmtp [options] <recipient> <...>
π¦ DESCRIPTION π¦
so bsmtp is a lil baby mail user agent β a simple one, on purpose. the whole point is that it's more flexible than the standard mail programs you usually trip over on Unix systems, and it's easier to port around. it can even run on Windows machines, no cap. πͺ
the Director daemon uses it to send notifications and requests to the operator. that's the main character job. π
π OPTIONS π
-8β encode the mail in UTF-8. β¨-cβ set theCc:header.-dnn β set debug level to nn.-dtβ print timestamp in debug output.-fβ set theFrom:header. if you don't specify it,bsmtpwill try to use your username.-hmailhost:port β use mailhost:port as the SMTP server. (default port: 25)-sβ set theSubject:header.-rβ set theReply-To::header.-lβ set the maximum number of lines to be sent. (default: unlimited)-?β show version and usage of program. the little cry for help, love that for us. π
π USAGE π
recipients is a space separated list of email addresses. like, just yeet them in there one after another.
the body of the email message is read from standard input. the message is ended by sending the EOF character (Ctrl-D on many systems) on the start of a new line, much like many mail commands. so yes bestie, you're typing the whole email into the terminal and then pressing the magic keys. π
the actual, automated behavior of bsmtp will depend on the mail-related configuration of the Director in the Messages resource of bacula-dir.conf.
interactive use of bsmtp is pertinent to manually test and ensure these configuration bits are valid. this is highly recommended. fr fr, do it. π«Ά
π CONFIGURATION π
these commands should each appear on a single line in the configuration file. (yes, even the ones that look like they're falling off the edge of the page. that's just how the manpage wrapped them, don't @ me.)
Messages {
Name = Standard
mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f
\"\(Bacula\) \<%r\>\"
-s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f
\"\(Bacula\) \<%r\>\"
-s \"Bacula: Intervention needed for
%j\" %r"
mail = sysadmin@site.domain.com = all, !skipped
operator = sysop@site.domain.com = mount
console = all, !skipped, !saved
}
home/bacula/bin is replaced with the path to the Bacula binary directory, and mail.domain.com is replaced with the fully qualified name of an SMTP server, which usually listen on port 25. π
π ENVIRONMENT π
if the -h option is not specified, bsmtp will use environment variable SMTPSERVER, or localhost if not set. she's got a fallback, she's prepared. π§
π NOTES π
since bsmtp always uses a TCP connection rather than writing to a spool file, you may find that your From: address is being rejected because it does not contain a valid domain, or because your message has gotten caught in spam filtering rules. π generally, you should specify a fully qualified domain name in the from field, and depending on whether your SMTP gateway is Exim or Sendmail, you may need to modify the syntax of the from part of the message.
if bsmtp cannot connect to the specified mail host, it will retry to connect to localhost. she tries again. resilient queen. π₯
π BUGS π
if you are getting incorrect dates (e.g. 1970) and you are running with a non-English locale, you might try setting the LANG="en_US" environment variable. yes, the year is stuck in 1970. no, it's not a time machine. π
β AUTHOR β
this manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>, revised and edited by Lucas B. Cohen <lbc@members.fsf.org>.
πΈ SEE ALSO πΈ
π COPYRIGHT π
this man page document is released under the BSD 2-Clause license.
okay that's the whole thing, you're fully caught up bestie π this page came from Kern Sibbald and it's dated 6 December 2009, filed under BSMTP(1). go forth and send your notifications. slay. β¨ππ¦
π¦ where this page comes from
- alpine 3.22: bacula-doc 15.0.2-r0 Β· AGPL-3.0-or-later WITH OpenSSL-Exception
- alpine 3.23: bacula-doc 15.0.3-r0 Β· AGPL-3.0-or-later WITH OpenSSL-Exception
- alpine 3.24: bacula-doc 15.0.3-r0 Β· AGPL-3.0-or-later WITH OpenSSL-Exception
- centos-stream 9: bacula-director 11.0.1-6.el9 Β· AGPLv3 with exceptions
- debian bookworm: bacula-common 9.6.7-7
- debian trixie: bacula-common 15.0.3-3
- epel 10: bacula-director 15.0.3-2.el10_1 Β· LicenseRef-Bacula
- fedora 43: bacula-director 15.0.3-3.fc43 Β· LicenseRef-Bacula
- fedora 44: bacula-director 15.0.3-5.fc44 Β· LicenseRef-Bacula
- nixos 26.05: bacula 15.0.3
- nixpkgs unstable: bacula 15.0.3
- ubuntu jammy: bacula-common 9.6.7-5~22.04.1
- ubuntu noble: bacula-common 13.0.4-1build3
- ubuntu questing: bacula-common 15.0.3-3ubuntu2
- ubuntu resolute: bacula-common 15.0.3-5
- ubuntu stonking: bacula-common 15.0.3-5ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms