> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Simple Email Service (SES) をメールプロバイダーとして設定する

> Auth0 で Amazon Simple Email Service (SES) をメールプロバイダーとして設定する手順。

<div id="prerequisites">
  ## 前提条件
</div>

* [Amazon AWS](http://aws.amazon.com/ses/) アカウントが必要です。

* 特定の [Auth0 IP addresses](/ja/docs/secure/security-guidance/data-security/allowlist) からの受信接続を許可するよう、プロバイダーを設定する必要があります。

API または SMTP の認証情報を使用できます。詳細については、Amazon の [Using Credentials With Amazon SES](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/using-credentials.html) を参照してください。

<div id="configure-amazon-ses-with-api-credentials">
  ## API 認証情報を使用して Amazon SES を設定する
</div>

1. [Amazon AWS](http://aws.amazon.com/ses/) アカウントにログインします。
2. [ドメインを検証](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html)します。
3. [メールアドレスを検証](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html)します。
4. [本番アクセスを申請](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html?icmpid=docs_ses_console)します。
5. [AWS アクセスキーを取得](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/get-aws-keys.html)します。これらのキーをコピーしてください。後で Auth0 にこれらの値を入力する必要があります。
6. [適切な権限を持つポリシーをアタッチ](http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage.html)します。次の例のように、`ses:SendRawEmail` と `ses:SendEmail` の権限を持つポリシーをアタッチします。

   ```json lines theme={null}
   {
       "Version": "2012-10-17",
       "Statement": [
           {
               "Effect": "Allow",
               "Action": [
                   "ses:SendRawEmail",
                   "ses:SendEmail"
               ],
               "Resource": "*"
           }
       ]
   }
   ```
7. Auth0 の [Dashboard > ブランディング > メールプロバイダー](https://manage.auth0.com/#/branding/email_provider) に移動します。
8. **Use my own email provider** トグルを有効にします。
9. **Amazon Web Services** のロゴをクリックします。
10. **From** メールアドレスを指定し、AWS の **Access Key Id** と **Secret Access Key** を入力して、**Region** を選択します。
11. **Save** をクリックします。

<div id="configure-amazon-ses-with-smtp-credentials">
  ## SMTP 認証情報を使用して Amazon SES を設定する
</div>

1. [Amazon AWS](https://aws.amazon.com/ses/) アカウントにログインします。
2. [ドメインを検証](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html)します。
3. [本番環境アクセスをリクエスト](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html?icmpid=docs_ses_console)します。
4. [SMTP 認証情報を取得](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html)します。セキュリティ認証情報をコピーしてください。これらの値は Auth0 に入力する必要があります。
5. [Dashboard > ブランディング > メールプロバイダー](https://manage.auth0.com/#/emails/provider) に移動します。
6. **Use my own email provider** トグルを有効にします。
7. **SMTP** ロゴをクリックします。
8. **From** のメールアドレスを指定し、SMTP サーバーの **Host**、**Port**、**Username**、**Password** を入力して **Save** をクリックします。**Host** には `email-smtp.us-east-1.amazonaws.com` (`us-east-1` の代わりに適切なリージョンを使用) を、**Port** には `587` を使用できます。

<div id="send-a-test-email">
  ## テストメールを送信する
</div>

**Send Test Email** ボタンを使用して、テストメールを送信します。設定が正しければ、確認メールが届きます。数分経ってもメールアドレスにメールが届かない場合は、エラーコードについて [Auth0 ログ](https://manage.auth0.com/#/logs) を確認してください。

設定が完了すると、[Amazon SES コンソール](https://console.aws.amazon.com/ses) に、ユーザーに送信されたすべてのメールの配信状況に関する情報が表示されます。
