12.4. SMTP 通知の設定

Tendrl-ansible は、10 個のdrl-notifier をインストールし、設定します。10drl-notifier ファイルを設定したら、SMTP のメール通知を設定します。

  1. /etc/tendrl/notifier/email.conf.yaml ファイルを開きます。
  2. パラメーターを更新します。

    email_id = <The sender email id>
    
    email_smtp_server = <The smtp server>
    
    email_smtp_port = <The smtp port>
  3. SMTP サーバーが認証されたメールのみに対応している場合は、/etc/tendrl/notifier/email_auth.conf.yaml ファイルのテンプレートに従い、以下を有効にします。

        auth = <ssl/tls>
    
        email_pass = <password corresponding to email_id for authenticating to smtp server>
  4. 10drl-notifier サービスを再起動します。

    systemctl restart tendrl-notifier