1 .\" Hey, EMACS: -*- nroff -*-
2 .\" First parameter, NAME, should be all caps
3 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4 .\" other parameters are allowed: see man(7), man(1)
5 .TH BSMTP 1 "6 December 2009" "Kern Sibbald" "Network backup, recovery and verification"
6 .\" Please adjust this date whenever revising the manpage.
9 bsmtp \- Bacula's SMTP client (mail submission program)
18 is a simple mail user agent designed to permit more flexibility
19 than the standard mail programs typically found on Unix systems, and to
20 ease portability. It can even run on Windows machines. It is used
21 by the Director daemon to send notifications and requests to the
27 Encode the mail in UTF-8.
30 Set the \fBCc:\fR header.
33 Set debug level to \fInn\fP.
36 Print timestamp in debug output.
39 Set the \fBFrom:\fR header. If not specified,
41 will try to use your username.
43 .BI \-h\ mailhost:port
44 Use mailhost:port as the SMTP server. (default port: 25)
47 Set the \fBSubject:\fR header.
50 Set the \fBReply-To:\fR: header.
53 Set the maximum number of lines to be sent. (default: unlimited)
56 Show version and usage of program.
59 \fIrecipients\fR is a space separated list of email addresses.
61 The body of the email message is read from standard input. Message is
62 ended by sending the EOF character (Ctrl-D on many systems) on the
63 start of a new line, much like many 'mail' commands.
65 The actual, automated behavior of \fBbsmtp\fR will depend on the
66 mail-related configuration of the Director in the \fIMessages\fR ressource
67 of \fIbacula-dir.conf\fR.
69 Interactive use of \fBbsmtp\fR is pertinent to manually test and ensure these
70 configuration bits are valid. This is highly recommended.
73 These commands should each appear on a single line in the configuration
78 mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
79 -s \"Bacula: %t %e of %c %l\" %r"
80 operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
81 -s \"Bacula: Intervention needed for %j\" %r"
82 mail = sysadmin@site.domain.com = all, !skipped
83 operator = sysop@site.domain.com = mount
84 console = all, !skipped, !saved
87 \fIhome/bacula/bin\fR is replaced with the path to the Bacula
88 binary directory, and mail.domain.com is replaced with the fully
89 qualified name of an SMTP server, which usually listen on port 25.
92 If the \fB-h\fR option is not specified, \fBbsmtp\fR will use environment variable \fBSMTPSERVER\fR, or 'localhost' if not set.
95 Since \fBbsmtp\fR always uses a TCP connection rather than writing to a
96 spool file, you may find that your \fBFrom:\fR address is being rejected
97 because it does not contain a valid domain, or because your
98 message has gotten caught in spam filtering rules. Generally, you
99 should specify a fully qualified domain name in the from field, and
100 depending on whether your SMTP gateway is Exim or Sendmail, you may
101 need to modify the syntax of the from part of the message.
103 If \fBbsmtp\fR cannot connect to the specified mail host, it will retry
104 to connect to \fBlocalhost\fR.
107 If you are getting incorrect dates (e.g. 1970) and you are
108 running with a non-English locale, you might try setting the
109 \fBLANG="en_US"\fR environment variable.
112 This manual page was written by Jose Luis Tallon
114 <jltallon@adv\-solutions.net>, revised and edited by Lucas B. Cohen
116 <lbc@members.fsf.org>.
118 .BR "bacula-dir" "(8) "