設定 Edge SMTP 伺服器

Edge for Private Cloud 4.18.01 版

SMTP 伺服器可讓 Edge UI 傳送電子郵件。舉例來說,Edge UI 可以傳送電子郵件,協助使用者復原 UI 密碼。

安裝時,您可以指定 SMTP 資訊。如要變更 SMTP 資訊,或在安裝時延遲 SMTP 設定,可以使用 apigee-setup 公用程式修改 SMTP 設定。

您可以變更下列任一或所有資訊:

  • SMTP 主機,例如 smtp.gmail.com
  • SMTP 通訊埠,例如使用 TLS/SSL 時為 465
  • SMTP 使用者名稱和密碼
  • SMTP「寄件者」電子郵件地址

如要更新 SMTP 資訊,請按照下列步驟操作:

  1. 編輯用於安裝 Edge 的設定檔,或使用下列資訊建立新的設定檔:

    # Must include the sys admin password
    APIGEE_ADMINPW=sysAdminPW
    # SMTP settings
    SKIP_SMTP=n
    SMTPHOST=smtp.example.com
    SMTPUSER=smtp@example.com # 0 for no username
    SMTPPASSWORD=smtppwd # 0 for no password
    SMTPSSL=n
    SMTPPORT=25
    SMTPMAILFROM="My Company <myco@company.com>"
  2. 在所有 Edge UI 節點上執行 apigee-setup 公用程式,更新 SMTP 設定:
    > /opt/apigee/apigee-setup/bin/setup.sh -p ui -f configFile

    apigee-setup 公用程式會重新啟動 Edge UI。