How-To : Install Blat Command Line SMTP Mailer on Windows

In order for NetBackup to email reports, alerts and other functions, you will need to install the free opensource utility called "Blat" and configure NetBackup to use it. This lesson will describe how to do this.

Install Blat Command Line SMTP Mailer

media_1259000922928.png

First, download "Blat" from their opensource homepage at: http://sourceforge.net/projects/blat/files
Click on the "Download Now" button to download the zip file containing Blat.

media_1259000986328.png

Save the zip file somewhere you can browse to.

media_1259001505550.png

Then extract the files from the zip.

media_1259001839517.png

Copy the blat.exe and other associated blat files to the C:\WINDOWS\System32 directory in Windows.

media_1259002004856.png

From a command prompt, run the following command (Note: This will be the primary account that will send the emails from the specified server):
% blat -install <server addr> <sender’s addr>
Note: "<server addr>" is the hostname or IP address of the email server that will send the email notifications.
"<sender’s addr>" is the account that will be the primary sender of the email notifications.
Example:
blat -install emailserver.company.com useraccount@company.com

Testing the Blat Installation

media_1259002242507.png

Test the installation of blat by creating a text file C:\testfile.txt with a message and emailing it to the NetBackup administrator (1).
Use the following command line syntax to email the file (2):
blat C:\testfile.txt -s test_subject -to useraccount@company.com
If blat is working correctly, the NetBackup administrator should receive the contents of the C:\testfile.txt file.

Setup Blat with User Relay Authentication

If you need to install Blat to use SMTP user relay, use the following install format instead:
blat -install -f <sender-email> -server <email-server> -u <login> -pw <password>

Configure NetBackup to use Blat

If you would like to configure Netbackup to use Blat to email reports and status notifications, you will need to first configure "nbmail.cmd" under the Netbackup\bin directory. For information on how to do this, please see this Symantec Support Document located here:
http://seer.entsupport.symantec.com/docs/254809.htm

5 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top