1BACULA-SMTP(1)                  Network backup                  BACULA-SMTP(1)
2
3
4

NAME

6        bsmtp - Bacula's SMTP (mail delivery program)
7

DESCRIPTION

9       bsmtp  is a simple mail transport program that permits more flexibility
10       than the standard mail programs typically found on Unix systems. It can
11       even be used on Windows machines.
12
13       It is called:
14
15       Usage:  bsmtp [-f from] [-h mailhost] [-s subject] [-c copy] [recipient
16       ...]
17              -c          set the Cc: field
18              -dnn        set debug level to nn
19              -f          set the From: field
20              -h          use mailhost:port as the bsmtp server
21              -s          set the Subject: field
22              -?          print this message.
23
24       If the  -f option is not specified, bsmtp will use your userid. If  the
25       option  is  not  specified  bsmtp will use the value in the environment
26       variable bsmtpSERVER or if there is none localhost. By default port  25
27       is used.
28
29       recipients is a space separated list of email recipients.
30
31       The body of the email message is read from standard input.
32
33       An  example of the use of bsmtp would be to put the following statement
34       in the Messages resource of your bacula-dir.conf file. Note, these com‐
35       mands should appear on a single line each.
36
37         mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f
38                        -s
39         operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f
40                           -s
41
42       Where  you  replace home/bacula/bin with the path to your Bacula binary
43       directory, and you replace mail.domain.com  with  the  fully  qualified
44       name of your bsmtp (email) server, which normally listens on port
45
46       It is HIGHLY recommended that you test one or two cases by hand to make
47       sure that the mailhost that you specified is correct and that  it  will
48       accept  your  email  requests. Since bsmtp always uses a TCP connection
49       rather than writing in the spool file, you  may  find  that  your  from
50       address  is  being rejected because it does not contain a valid domain,
51       or because your message is caught in your spam filtering rules.  Gener‐
52       ally,  you  should  specify  a  fully qualified domain name in the from
53       field, and depending on whether your bsmtp gateway is Exim or Sendmail,
54       you  may  need  to  modify  the syntax of the from part of the message.
55       Please test.
56
57       When running bsmtp by hand, you will need to terminate the  message  by
58       entering a ctl-d in column 1 of the last line.
59
60       If you are getting incorrect dates (e.g. 1970) and you are running with
61       a non-English language setting, you might  try  adding  a  LANG="en_US"
62       immediately before the bsmtp call.
63

AUTHOR

65       This    manual    page    was    written    by    Jose    Luis   Tallon
66       <jltallon@adv-solutions.net>.
67
68
69
70Kern Sibbald                      26 May 2006                   BACULA-SMTP(1)
Impressum