NetWorker Linux 伺服器:郵件通知未將郵件發送到中繼伺服器
Summary: 不會從 Linux NetWorker 伺服器傳送或接收電子郵件通知。
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.
Symptoms
NetWorker 伺服器已設定為使用 Linux 作業系統「mail」命令傳送郵件通知。NetWorker 管理指南中提供了幾個範例,並針對這些範例說明選項:
- -s指定主旨。
- -r設置寄件人位址。
Cause
似乎從未發送電子郵件,因為在使用“-S”標誌指定中繼伺服器時,命令以某種方式不正確。這會導致電子郵件訊息傳送至 /root/dead.letter。
Resolution
下面介紹了允許發送帶有擴展標誌的郵件的解決方法(前提是 NMC 端不支援它們)。
在以下情況下,為了使用 mailx 將郵件從內部網路發送出去,必須指定處理所有電子郵件的外部中繼或 SMTP,以便將電子郵件傳遞到正確的位址。
在以下情況下,為了使用 mailx 將郵件從內部網路發送出去,必須指定處理所有電子郵件的外部中繼或 SMTP,以便將電子郵件傳遞到正確的位址。
- 建立文字檔:/usr/bin/mail_nmc。
觸控 /usr/bin/mail_nmc
chmod 755 /usr/bin/mail_nmc
chmod 755 /usr/bin/mail_nmc
- 開啟檔案並在裡面寫下以下內容:
exec mailx -S smtp=“RELAY_IP_ADDRESS:PORT” “$@” < /dev/stdin
將 RELAY_IP_ADDRESS 和 PORT 替換為處理電子郵件的外部中繼或 SMTP。
將 RELAY_IP_ADDRESS 和 PORT 替換為處理電子郵件的外部中繼或 SMTP。
- 設定來自 NMC 的 NetWorker 通知,以使用在步驟 1 建立的 mail 命令:
/usr/bin/mail_nmc -r sender@domain.local -s “主題文字” recipient@domain.local
Affected Products
NetWorker FamilyArticle Properties
Article Number: 000193794
Article Type: Solution
Last Modified: 23 Nov 2021
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.