Configuring SMTP Mail Relay to send NetBackup Catalog DR (Disaster Recovery) Emails on Flex Appliances
Problem
Customer's with NetBackup Master instances in a Flex environment may not receive Catalog DR Emails after configuring mailx if using SMTP relay and port 587.
Error Message
Testing Email:
# echo 'This is a test' | mail -s 'test' backup@domain.com
Error:
smtp-server: 504 5.7.4 Unrecognized authentication type [mail.exchange.server@domain.com]
Cause
SMTP mail relay servers may require TLS authentication which is additional configuration in the mail.rc file.
Solution
1) Login using SSH to the NetBackup Primary (Master) server instance
2) Edit the file /etc/mail.rc within the relevant instance by making the following changes to add TLS authentication in additional to the SMTP server information. (will require to use sudo)
set smtp=smtp.office365.com:587
set smtp-auth-user=user@domain.com
set smtp-auth-password=[password]
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
set smtp-use-starttls
set from=someuser@domain.com