---
title: Configuring the SMTP server
description: To configure a simple mail server, use the dsconfig command.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_config_smtp_server
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_config_smtp_server.html
revdate: September 13, 2023
section_ids:
  steps: Steps
  example: Example:
  example-2: Example:
---

# Configuring the SMTP server

## Steps

1. To configure a simple mail server, use the `dsconfig` command.

   ### Example:

   ```shell
   $ bin/dsconfig create-external-server --server-name smtp1 \
     --type smtp --set server-host-name:smtp.example.com
   ```

2. To configure an SMTP server, use the `dsconfig` command.

   ### Example:

   ```shell
   $ bin/dsconfig set-global-configuration-prop \
     --set smtp-server:smtp1
   ```

   This command adds the server to the global list of mail servers that the PingDirectory server can use.
