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


First, download "Blat" from their opensource homepage at:
Click on the "Download Now" button to download the zip file containing Blat.


Save the zip file somewhere you can browse to.


Then extract the files from the zip.


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


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.
blat -install

Testing the Blat Installation


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
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:


Leave a Reply

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

Scroll to Top