]> git.sur5r.net Git - bacula/bacula/blob - bacula/manpages/bsmtp.1
ebl Tweak bat for win32 (it segfault at home, but
[bacula/bacula] / bacula / manpages / bsmtp.1
1 .\"                                      Hey, EMACS: -*- nroff -*-
2 .TH BACULA\-SMTP 1 "26 May 2006" "Kern Sibbald" "Network backup"
3 .\" Please adjust this date whenever revising the manpage.
4 .SH NAME
5  bsmtp \- Bacula's SMTP (mail delivery program)
6 .SH DESCRIPTION
7 bsmtp is a simple mail transport program that permits more flexibility
8 than the standard mail programs typically found on Unix systems. It can even
9 be used on Windows machines. 
10
11 It is called: 
12
13 Usage: bsmtp [-f from] [-h mailhost] [-s subject] [-c copy] [recipient ...]
14        -c          set the Cc: field
15        -dnn        set debug level to nn
16        -f          set the From: field
17        -h          use mailhost:port as the bsmtp server
18        -s          set the Subject: field
19        -?          print this message.
20
21 If the  -f option is not specified, bsmtp will use your userid. If
22 the option is not specified bsmtp will use the value in the environment
23 variable bsmtpSERVER or if there is none localhost. By default
24 port 25 is used. 
25
26 recipients is a space separated list of email recipients. 
27
28 The body of the email message is read from standard input. 
29
30 An example of the use of bsmtp would be to put the following statement
31 in the Messages resource of your bacula-dir.conf file. Note, these
32 commands should appear on a single line each. 
33
34   mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
35                  -s \"Bacula: %t %e of %c %l\" %r"
36   operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
37                     -s \"Bacula: Intervention needed for %j\" %r"
38
39 Where you replace home/bacula/bin with the path to your Bacula
40 binary directory, and you replace mail.domain.com with the fully
41 qualified name of your bsmtp (email) server, which normally listens on port
42
43 It is HIGHLY recommended that you test one or two cases by hand to make sure
44 that the mailhost that you specified is correct and that it will accept
45 your email requests. Since bsmtp always uses a TCP connection rather
46 than writing in the spool file, you may find that your from address is
47 being rejected because it does not contain a valid domain, or because your
48 message is caught in your spam filtering rules. Generally, you should specify
49 a fully qualified domain name in the from field, and depending on
50 whether your bsmtp gateway is Exim or Sendmail, you may need to modify the
51 syntax of the from part of the message. Please test. 
52
53 When running bsmtp by hand, you will need to terminate the message by
54 entering a ctl-d in column 1 of the last line. 
55
56 If you are getting incorrect dates (e.g. 1970) and you are
57 running with a non-English language setting, you might try adding
58 a LANG="en_US" immediately before the bsmtp call.
59 .br
60 .SH AUTHOR
61 This manual page was written by Jose Luis Tallon
62 .nh 
63 <jltallon@adv\-solutions.net>.