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 Administration Guide中提供了几个示例,其中介绍了选项:
- -S指定主题。
- -r设置发件人地址。
Cause
似乎从未发送电子邮件,因为在使用“-S”标志指定中继服务器时,该命令不知何故被发现不正确。这会导致电子邮件发送到 /root/dead.letter。
Resolution
下面介绍了允许发送带有扩展标记的邮件的解决方法(前提是 NMC 端不支持它们)。
在下面的方案中,为了使用 mailx 从内部网络发送邮件,必须指定处理所有电子邮件的外部中继或 SMTP,以便将电子邮件传递到正确的地址。
在下面的方案中,为了使用 mailx 从内部网络发送邮件,必须指定处理所有电子邮件的外部中继或 SMTP,以便将电子邮件传递到正确的地址。
- 创建文本文件:/usr/bin/mail_nmc。
touch /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 中创建的邮件命令:
/usr/bin/mail_nmc -r sender@domain.local -s “subject text” 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.