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: http://sourceforge.net/projects/blat/files
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.
Example:
blat -install emailserver.company.com useraccount@company.com
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 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
Use Mail Alert Simple Mailer https://sourceforge.net/projects/mail-alert/.
Unlike Blat, it supports SSL/TLS mail servers like Gmail, stores encrypted password in configuration file and is a freeware.
Good and clear manual, keep up the good work and thanks for sharing!
I set up blat on the netbackup master servers(cluster nodes) windows server 2012 r2. On the primary node, test email is working but on the secondary node, I encounter this error, The smtp server response was -> 550 5.7.1 youremail@company.com….Relaying denied.
Please advise on how resolve this setup.
Why I can’t use -u -pw such option?