

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 在 Snowball Edge 上配置本地 SMTP 通知
<a name="s3-snow-smtp-notifications"></a>

您可以使用简单邮件传输协议（SMTP）为 Snowball Edge 设备设置本地通知。当服务状态（活动、降级、非活动）发生变化或在您超出 80%、90% 或 100% 的容量利用率阈值时，本地通知会向已配置的服务器发送电子邮件。

开始之前，请确保：
+ 您可以访问最新的 Snowball Edge 客户端。
+ 您的设备已解锁，可供使用。
+ 您的设备可以连接到互联网（如果使用 Amazon Simple Email Service 或外部 SMTP 服务器）或本地 SMTP 服务器。

## 配置 Snowball Edge 以接收本地通知
<a name="s3-snow-smtp-notifications-configure"></a>

设置 Snowball Edge 以发送电子邮件通知。

**为设备配置 SMTP 通知**

1. 运行以下命令来为设备添加 SMTP 配置：

   ```
   # If you don't specify a port, port 587 is the default.
   SMTP_ENDPOINT=your-local-smtp-server-endpoint:port
   
   # For multiple email recipients, separate with commas
   RECIPIENTS_LIST=your-email-address
   
   snowballEdge put-notification-configuration \
     --service-id local-monitoring \
     --enabled true \
     --type smtp \
     --broker-endpoint "$SMTP_ENDPOINT" \
     --sender example-sender@domain.com \
     --recipients "$RECIPIENTS_LIST"
   ```

   如果成功，您将收到一封来自 **example-sender@domain.com** 的测试电子邮件。

1. 通过运行以下 `get-notification-configuration` 命令来测试配置：

   ```
   snowballEdge get-notification-configuration \
     --service-id local-monitoring
   ```

   响应不包含密码或证书，即使您提供了密码或证书也是如此。