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 Aug 2025
Версия:  7
Получите ответы на свои вопросы от других пользователей Dell
Услуги технической поддержки
Проверьте, распространяются ли на ваше устройство услуги технической поддержки.