NetWorker: How to configure email notification on Linux

Summary: How to configure email notification on Linux.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

NetWorker server's deployed on Linux use the Linux mail This hyperlink is taking you to a website outside of Dell Technologies. or mailx commands to send NetWorker logging through email. This functionality depends on non-NetWorker environment configurations.

Basic syntax of the mail command:

mail [-s <mail server hostname or IP>] -s "<subject>" -r <sender_email> <recipient_email1> [<recipient_email2>]

Specifying the mail server is not always required. In some environments, the mail server is picked up by the recipient email address specified. 

Example: 

mail -s "${NSR} ${policy} ${workflow} ${status}" -r bkupadmin@amer.local backupadmin@dell.com

Before configuring email notifications in NetWorker, the mail or mailx command must be run from the NetWorker server's command line to ensure that emails are received.

Example:

example of the mail command sending a message 
When you run the mail command, it drops to a new line with no prompt. You can type a test message (as shown above). On a new line, enter . (period) which returns End Of Transmission (EOT). 

Check the recipient's email inbox (and spam folders) for an email. If an email message is received, you can configure notifications in NetWorker:

NetWorker: How To Configure Policy Email Notifications

Additional Information

Troubleshooting:

NOTE: The following steps provide some general mail troubleshooting steps. The mail and system administrators must resolve any issues identified with email functions, or if further troubleshooting steps are required.

If the email message is not received, there are a few steps which can be performed to identify the issue.

1. Is the postfix service running on the server:

a. To check if postfix is running, run:
systemctl status postfix

b. If it is not running, can it be started?
systemctl start postfix

c. If any issues are observed, check the service status and messages:
systemctl status postfix
journalctl -xe

d. Confirm if postfix is configured to start after a system reboot:
systemctl enable postfix
 
NOTE: If it is not enabled, you see a message about a symbolic link being created for systemd. If it was already enabled, no message is outputted and the prompt returns.

2. If you have specified a `-S <mail server hostname or IP>`, confirm that you can reach the mail server from the NetWorker server.

a. NetWorker comes with the nsrports command which can be used to test name resolution and network connectivity. Confirm that you can reach port 25 (default Simple Mail Transfer Protocol (SMTP)) on the mail server:
nsrports -t mailserver_hostname -p 25
 Example:
example of nsrports resolving mail server and connecting to smtp port 

Other methods for troubleshooting resolution and connectivity:
 
b. Is hostname resolution working: 
nslookup mailserver_fqdn
nslookup mailserver_shortname
nslookup 
mailserver_ip

c. Check the /etc/hosts file for any entries for the mail server. If any incorrect entries are found, set the correct IP address or remove the entry:
cat /etc/hosts
 
d. Does port 25 respond using the curl command:
curl -v mailserver_hostname:25

Example:
example of curl connecting to smtp port on mail server 
 
3. Check the mail queue to see if any errors are returned: 
mailq

Example:
example of mailq command output
If the mailq command does not return anything, then the mail queue is empty.  

Affected Products

NetWorker

Products

NetWorker
Article Properties
Article Number: 000019459
Article Type: How To
Last Modified: 07 Aug 2025
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.