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 "3 July 2012" "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 Forces bsmtp to use IPv4 addresses only.
30 Forces bsmtp to use IPv6 addresses only.
33 Encode the mail in UTF-8.
36 Use any ip protocol for address resolution.
39 Set the \fBCc:\fR header.
42 Set debug level to \fInn\fP.
45 Print timestamp in debug output.
48 Set the \fBFrom:\fR header. If not specified,
50 will try to use your username.
52 .BI \-h\ mailhost:port
53 Use mailhost:port as the SMTP server. (default port: 25)
56 Set the \fBSubject:\fR header.
59 Set the \fBReply-To:\fR: header.
62 Set the maximum number of lines to be sent. (default: unlimited)
65 Show version and usage of program.
68 \fIrecipients\fR is a space separated list of email addresses.
70 The body of the email message is read from standard input. Message is
71 ended by sending the EOF character (Ctrl-D on many systems) on the
72 start of a new line, much like many 'mail' commands.
74 The actual, automated behavior of \fBbsmtp\fR will depend on the
75 mail-related configuration of the Director in the \fIMessages\fR resource
76 of \fIbacula-dir.conf\fR.
78 Interactive use of \fBbsmtp\fR is pertinent to manually test and ensure these
79 configuration bits are valid. This is highly recommended.
82 These commands should each appear on a single line in the configuration
87 mailcommand = "/home/bacula/bin/bsmtp \-h mail.domain.com \-f \\"\\(Bacula\\) \\<%r\\>\\"
88 \-s \\"Bacula: %t %e of %c %l\\" %r"
89 operatorcommand = "/home/bacula/bin/bsmtp \-h mail.domain.com \-f \\"\\(Bacula\\) \\<%r\\>\\"
90 \-s \\"Bacula: Intervention needed for %j\\" %r"
91 mail = sysadmin@site.domain.com = all, !skipped
92 operator = sysop@site.domain.com = mount
93 console = all, !skipped, !saved
96 \fIhome/bacula/bin\fR is replaced with the path to the Bacula
97 binary directory, and mail.domain.com is replaced with the fully
98 qualified name of an SMTP server, which usually listen on port 25.
101 If the \fB-h\fR option is not specified, \fBbsmtp\fR will use environment variable \fBSMTPSERVER\fR, or 'localhost' if not set.
104 Since \fBbsmtp\fR always uses a TCP connection rather than writing to a
105 spool file, you may find that your \fBFrom:\fR address is being rejected
106 because it does not contain a valid domain, or because your
107 message has gotten caught in spam filtering rules. Generally, you
108 should specify a fully qualified domain name in the from field, and
109 depending on whether your SMTP gateway is Exim or Sendmail, you may
110 need to modify the syntax of the from part of the message.
112 If \fBbsmtp\fR cannot connect to the specified mail host, it will retry
113 to connect to \fBlocalhost\fR.
116 If you are getting incorrect dates (e.g. 1970) and you are
117 running with a non-English locale, you might try setting the
118 \fBLANG="en_US"\fR environment variable.
121 This manual page was written by Jose Luis Tallon
123 <jltallon@adv\-solutions.net>, revised and edited by Lucas B. Cohen
125 <lbc@members.fsf.org>.
127 .BR "bacula-dir" "(8) "
129 This man page document is released under the LGPL version 3.0 license.