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
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.