BACULA\-SMTP
Section: Network backup (1)
Updated: 26 May 2006
Index NAME
bsmtp - Bacula's SMTP (mail delivery program)
DESCRIPTION
bsmtp is a simple mail transport program that permits more flexibilitythan the standard mail programs typically found on Unix systems. It can evenbe used on Windows machines.
It is called:
Usage: bsmtp [-f from] [-h mailhost] [-s subject] [-c copy] [recipient ...]
-c set the Cc: field
-dnn set debug level to nn
-f set the From: field
-h use mailhost:port as the bsmtp server
-s set the Subject: field
-? print this message.
If the -f option is not specified, bsmtp will use your userid. Ifthe option is not specified bsmtp will use the value in the environmentvariable bsmtpSERVER or if there is none localhost. By defaultport 25 is used.
recipients is a space separated list of email recipients.
The body of the email message is read from standard input.
An example of the use of bsmtp would be to put the following statementin the Messages resource of your bacula-dir.conf file. Note, thesecommands should appear on a single line each.
mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f -s operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f -s
Where you replace home/bacula/bin with the path to your Baculabinary directory, and you replace mail.domain.com with the fullyqualified name of your bsmtp (email) server, which normally listens on port
It is HIGHLY recommended that you test one or two cases by hand to make surethat the mailhost that you specified is correct and that it will acceptyour email requests. Since bsmtp always uses a TCP connection ratherthan writing in the spool file, you may find that your from address isbeing rejected because it does not contain a valid domain, or because yourmessage is caught in your spam filtering rules. Generally, you should specifya fully qualified domain name in the from field, and depending onwhether your bsmtp gateway is Exim or Sendmail, you may need to modify thesyntax of the from part of the message. Please test.
When running bsmtp by hand, you will need to terminate the message byentering a ctl-d in column 1 of the last line.
If you are getting incorrect dates (e.g. 1970) and you arerunning with a non-English language setting, you might try addinga LANG="en_US" immediately before the bsmtp call.
AUTHOR
This manual page was written by Jose Luis Tallon<jltallonAATTadv-solutions.net>.
Index
- NAME
- DESCRIPTION
- AUTHOR
This document was created byman2html,using the manual pages.