メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

NetWorker: How to configure email notification on Linux

概要: How to configure email notification on Linux

この記事は自動翻訳されたものである可能性があります。品質に関するフィードバックがある場合は、このページの下部にあるフォームを使用してお知らせください。

文書の内容


手順

NetWorker server's deployed on Linux utilize the Linux mail image.png command to send NetWorker logging through email. This functionality is dependent 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 will be picked up by the recipient email address specified. 

Example: 

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


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

Example:

image.png
When you run the mail command it will drop to a new line with no prompt. You can type a test message (as shown above). On a new line enter . (period) which will return EOT. 

An email message should be received by the recipient email address. If an email message is received you can configure notifications in NetWorker:

 

Troubleshooting:

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's not running, can it be started:
systemctl start postfix

c. If any issues are observed check:
systemctl status postfix
journalctl -xe

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

 
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 SMTP) on the mail server:
nsrports -t mailserver_hostname -p 25

 Example:
image.png

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

c. Check the /etc/hosts file for any entries for the mailserver. 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:
image.png
 
3. Check the mail queue to see if any errors are returned: 
mailq

Example:
image.png
If the mailq command does not return anything then the mail queue is empty. 

Any issues observed with the above steps will need to be resolved by the appropriate system administrator in the environment. 
 

文書のプロパティ


影響を受ける製品

NetWorker

製品

NetWorker

最後に公開された日付

12 5月 2023

バージョン

5

文書の種類

How To