PingDirectory

Configuring the SMTP alert handler

To create a new instance of an SMTP alert handler, use the dsconfig tool.

About this task

By default, there is no configuration entry for an SMTP alert handler.

Steps

  • Use the dsconfig tool to configure the SMTP Alert Handler.

    Example:

    $ bin/dsconfig create-alert-handler \
      --handler-name "SMTP Alert Handler" \
      --type smtp \
      --set enabled:true \
      --set "sender-address:alerts@example.com" \
      --set "recipient-address:administrators@example.com" \
      --set "message-subject:Directory Admin Alert \%\%alert-type\%\%" \
      --set "message-body:Administrative alert:\\n\%\%alert-message\%\%"