[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Postbox](../index.md) > [Step-by-step guides](index.md) > Creating a configuration

# Creating a configuration

Create a [configuration](../concepts/glossary.md#configuration) to receive [email operation notifications](../concepts/notification.md).

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), select the folder containing the address.
    1. Navigate to **Cloud Postbox**.
    1. In the left-hand panel, select ![image](../../_assets/console-icons/list-ul.svg) **Configurations**.
    1. Click **Create configuration**.
    1. Enter a name and (optionally) a description of the configuration.
    1. Under **Subscriptions**, click **Add**:
        1. Enter a name for the [subscription](../concepts/glossary.md#subscription).
        1. Select the Yandex Data Streams [data stream](../../data-streams/concepts/glossary.md#stream-concepts) to send email operation notifications to. If you do not have a data stream, [create one](../../data-streams/operations/manage-streams.md#create-data-stream).
        1. Select the types of notifications you want to receive.
        1. Select the **Enabled** option to activate the subscription.

        You can add multiple subscriptions.
    1. Under **Delivery settings**, enable **Deliver emails only via secure connection** and specify the minimum TLS version to send TLS-only encrypted emails from Yandex Cloud Postbox to the recipient's servers.

        {% note warning %}

        If the recipient's server does not support the specified TLS version, the email will not be delivered.

        {% endnote %}

    1. Under **Statistics collection settings**, enable the **Engagement statistics** option to collect statistics on email opens and clicks. All other [statistics](../concepts/statistics.md), other than email opens and clicks, are collected by default.

        {% note info %}

        Enabling **Engagement statistics** will modify the email body. For more information, see [Tracking email openings](../concepts/mail-opened.md) and [Click tracking](../concepts/click-tracking.md).

        {% endnote %}

    1. Click **Create configuration**.

- AWS CLI {#aws-cli}

    If you do not have the AWS CLI yet, [install and configure it](../tools/aws-cli.md).

    To create a configuration, assign the `postbox.editor` [role](../security/index.md#postbox-editor) to the service account used for the AWS CLI.

    1. In the terminal, define these variables:

        ```bash
        ENDPOINT=https://postbox.cloud.yandex.net
        PROFILE=<profile_name>
        CONFIGSET_NAME=<configuration_name>
        IDENTITY=<domain>
        KINESIS_ENDPOINT=https://yds.serverless.yandexcloud.net/ru-central1/<folder_ID>/<YDB_database_ID>
        TOPIC=<data_stream_name>
        ```

    1. Create a [configuration](../concepts/glossary.md#configuration):

        ```bash
        aws sesv2 create-configuration-set \
           --endpoint-url=$ENDPOINT \
           --profile $PROFILE \
           --configuration-set-name $CONFIGSET_NAME
        ```

    1. Add a [subscription](../concepts/glossary.md#subscription) to the configuration:

        ```bash
        aws sesv2 create-configuration-set-event-destination \
           --endpoint-url=$ENDPOINT \
           --profile $PROFILE \
           --configuration-set-name $CONFIGSET_NAME \
           --event-destination-name <subscription_name> \
           --event-destination "{\"Enabled\":true,\"KinesisFirehoseDestination\":{\"DeliveryStreamArn\":\"arn:aws:keenesis:::$KINESIS_ENDPOINT:$TOPIC\",\"IamRoleArn\":\"arn:\"}}"

        ```

        You can add multiple subscriptions.

{% endlist %}

To get notifications, [link](bind-configuration.md) the configuration to an address.