

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 Snowball Edge 上設定本機 SMTP 通知
<a name="s3-snow-smtp-notifications"></a>

您可以使用 Simple Mail Transfer Protocol (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
   ```

   即使您提供密碼或憑證，回應也不會包含密碼或憑證。