1BSMTP(1)           Network backup, recovery and verification          BSMTP(1)
2
3
4

NAME

6        bsmtp - Bacula's SMTP client (mail submission program)
7
8

SYNOPSIS

10       bsmtp [options] <recipient> <...>
11
12

DESCRIPTION

14       bsmtp  is  a simple mail user agent designed to permit more flexibility
15       than the standard mail programs typically found on Unix systems, and to
16       ease  portability.  It  can even run on Windows machines. It is used by
17       the Director daemon to send notifications and requests to the operator.
18
19

OPTIONS

21       -4     Forces bsmtp to use IPv4 addresses only.
22
23       -6     Forces bsmtp to use IPv6 addresses only.
24
25       -8     Encode the mail in UTF-8.
26
27       -a     Use any ip protocol for address resolution.
28
29       -c     Set the Cc: header.
30
31       -d nn  Set debug level to nn.
32
33       -dt    Print timestamp in debug output.
34
35       -f     Set the From: header. If not specified, bsmtp will  try  to  use
36              your username.
37
38       -h mailhost:port
39              Use mailhost:port as the SMTP server. (default port: 25)
40
41       -s     Set the Subject: header.
42
43       -r     Set the Reply-To:: header.
44
45       -l     Set the maximum number of lines to be sent. (default: unlimited)
46
47       -?     Show version and usage of program.
48
49

USAGE

51       recipients is a space separated list of email addresses.
52
53       The  body  of the email message is read from standard input. Message is
54       ended by sending the EOF character (Ctrl-D  on  many  systems)  on  the
55       start of a new line, much like many 'mail' commands.
56
57       The actual, automated behavior of bsmtp will depend on the mail-related
58       configuration of the Director  in  the  Messages  resource  of  bacula-
59       dir.conf.
60
61       Interactive use of bsmtp is pertinent to manually test and ensure these
62       configuration bits are valid. This is highly recommended.
63
64

CONFIGURATION

66       These commands should each appear on a single line in the configuration
67       file.
68
69       Messages {
70         Name = Standard
71         mailcommand  = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bac‐
72       ula\) \<%r\>\"
73                                  -s \"Bacula: %t %e of %c %l\" %r"
74         operatorcommand  =  "/home/bacula/bin/bsmtp  -h  mail.domain.com   -f
75       \"\(Bacula\) \<%r\>\"
76                                        -s  \"Bacula:  Intervention needed for
77       %j\" %r"
78         mail = sysadmin@site.domain.com = all, !skipped
79         operator = sysop@site.domain.com = mount
80         console = all, !skipped, !saved
81        }
82
83       home/bacula/bin is replaced with the path to the Bacula  binary  direc‐
84       tory,  and mail.domain.com is replaced with the fully qualified name of
85       an SMTP server, which usually listen on port 25.
86
87

ENVIRONMENT

89       If the -h option is not specified, bsmtp will use environment  variable
90       SMTPSERVER, or 'localhost' if not set.
91
92

NOTES

94       Since bsmtp always uses a TCP connection rather than writing to a spool
95       file, you may find that your From: address is being rejected because it
96       does  not  contain  a  valid domain, or because your message has gotten
97       caught in spam filtering rules. Generally, you should specify  a  fully
98       qualified  domain name in the from field, and depending on whether your
99       SMTP gateway is Exim or Sendmail, you may need to modify the syntax  of
100       the from part of the message.
101
102       If  bsmtp  cannot  connect to the specified mail host, it will retry to
103       connect to localhost.
104
105

BUGS

107       If you are getting incorrect dates (e.g. 1970) and you are running with
108       a  non-English  locale, you might try setting the LANG="en_US" environ‐
109       ment variable.
110
111

AUTHOR

113       This   manual    page    was    written    by    Jose    Luis    Tallon
114       <jltallon@adv-solutions.net>,  revised  and  edited  by  Lucas B. Cohen
115       <lbc@members.fsf.org>.
116

SEE ALSO

118       bacula-dir(8)
119
120
121
122Kern Sibbald                      3 July 2012                         BSMTP(1)
Impressum