To create a new instance of an SMTP alert handler, use the dsconfig tool.
By default, there is no configuration entry for an SMTP alert handler.
Use the dsconfig tool to configure the SMTP Alert Handler.
$ 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\%\%"