NetWorker: How to configure email notification on Linux

摘要: How to configure email notification on Linux.

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

说明

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

其他信息

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.  

受影响的产品

NetWorker

产品

NetWorker
文章属性
文章编号: 000019459
文章类型: How To
上次修改时间: 07 8月 2025
版本:  7
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。