1. Use dsconfig to configure a simple mail server.
    $ bin/dsconfig create-external-server --server-name smtp1 \
      --type smtp --set server-host-name:smtp.example.com
  2. Use dsconfig to configure an SMTP server. This command adds the server to the global list of mail servers that the Directory Server can use.
    $ bin/dsconfig set-global-configuration-prop \
      --set smtp-server:smtp1