電子メール配信の詳細

電子メール配信ログのロギング詳細。

リソース

  • emaildomain

ログ・カテゴリ

API値(ID): コンソール(表示名) 説明
emaildelivery.emaildomain.outboundaccepted emaildelivery.emaildomain.outboundaccepted インバウンド電子メールの成功および失敗送信ログ。
emaildelivery.emaildomain.outboundrelayed emaildelivery.emaildomain.outboundrelayed アウトバウンド配信の電子メールの成功および失敗送信ログ。

ポリシー

ロギング関連の操作を実行するには、ロギング・ポリシーとともに、EMAIL_DOMAIN_UPDATE権限が必要です。電子メール配信ポリシーの詳細は、電子メール配信サービスの詳細を参照してください。

OutboundAccepted電子メール・ログの内容

プロパティ 説明
recipient 受信者の電子メール・アドレス。これは、エラー・タイプがAuthorization failure、ResetまたはDisconnectedのログには存在しない可能性があります。 user@example.com
sender 電子メール・メッセージの"From:"ヘッダーの最初の電子メール・アドレス。 support@example.com
action ログ内のデータのコンテキストを提供します。受入れログのサポートされる値:
  • Accept: ログは、電子メールの受入れステータスに関する情報を提供します。

自動プロセッサは、認識されないアクション値を含むログを許容する必要があります。

accept
errorType

問題のトラブルシューティングに関する情報を提供します。これは、受入れに成功した電子メールに対しては省略されます。

受入れログのサポートされる値:
  • 受信者が抑制されました: 電子メールが抑制され、リレーされませんでした。
  • Authorization failure: 認証が失敗したため、電子メールは受け入れられませんでした。
  • 無効な受信者: 受信者アドレスが無効なため、メールは受け入れられませんでした。
  • Daily Limit reached: 制限のため、電子メールは受け入れられませんでした。
  • Sender Rate Limit reached: 制限のため、電子メールは受け入れられませんでした。
  • バイト制限を超えました: メッセージ・サイズの制限を超えたため、電子メールを受け入れられませんでした。
  • Reset: クライアントが(SMTP RSETを介して)メール・トランザクションを取り消しました。
  • Disconnected: サービスへのクライアント接続は、メール・トランザクションが完了する前に失われました。
  • Message parse error: メッセージ・フォーマットが無効なため、電子メールは受け入れられませんでした。認可の失敗のみがログに記録されます。

Oracleは、必要に応じてこのフィールドに新しい値を追加する権利を留保しているため、パーサーは認識されない値を許容できる必要があります。

Daily limit reached
smtpStatus 受入れログのSMTPステータスには、SMTPエラー、またはこの受信者のSMTP送信クライアントに返されたステータスが含まれます。 250 2.1.5 user@example.com and options Ok
messageId messageIdは、電子メール送信操作を表す一意のIDです。これは、電子メールのエンドツーエンドをトラッキングするために使用されます。messageIdは、顧客から提供されるか、電子メールの処理中にMTAによって生成されます。これは、メッセージ・データを受信する前に失敗した受入れログには存在しません。 06a9aa8e-0542-4ddf-8255-ec9c2f5e02a3

@smtpf-ad3-fd1-303-us-phoenix-1.imtaad3.vcndpphx.oraclevcn.com

詳細は、https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.4を参照してください。

envelopeSender 電子メールの送信時に提供された初期エンベロープ送信者(MAIL FROM)アドレス。これは、電子メールの送信を認可するために使用されます。Body:data.sender (別名ヘッダーFrom)とは異なり、これは、メッセージ・コンテンツを転送する前に失敗した場合に使用できるため、受入れ失敗の場合に提供されます。 support@example.com
principalId SMTP送信プロトコルを介して電子メールを送信しようとしているユーザーのOCID。認可失敗ログにのみ指定されます。 ocid1.user.oc1.<unique_ID>
senderId

承認済送信者のOCID。これは、Body:data.senderが存在する場合はそれに関連付けられたOCIDになり、それ以外の場合はBody:data.envelopeSenderに関連付けられたOCIDになります。これは、認可の失敗時には存在しない可能性があります。

ocid1.emailsender.oc1.phx.<unique_ID>
senderCompartmentId

承認済送信者のコンパートメントOCID。これは、Body:data.senderIdに関連付けられたコンパートメントOCIDになります。これは、認可の失敗時には存在しない可能性があります。

ocid1.compartment.oc1..<unique_ID>
headers (将来使用可能)承認済送信者レベルで構成可能なヘッダー。サポート・リクエストを通じて設定し、4つのヘッダーが最大です。
{
 "X-Campaign-ID":"campaign1",
 "Recipient-Group-ID": "group1",
 "Sub-Account-ID": "account1"
}
receivingDomain 受信者の電子メール・ドメイン。これは、recipientフィールドのドメイン名部分と重複しますが、ログの集計ビューに役立つことがあります。 example.com
messageSizeInKiB キビバイト単位のメッセージ・サイズ(丸めモードのceilingを使用して整数に丸められます)。 5
authzOpcRequestId 電子メール配信サービスからアイデンティティに対して行われた認可コールのOPCリクエストIDで、承認済送信者を認可します。 6D6E701D166D72B8BCB7881647CDAAAA/

5590913E23F541ECDFA486FE9C611B12/

40C21F5CB148AF3C391AC98B21D81412

message ログ・イベントのサマリー。 Accepted email support@example.com → user@example.com
ingressType

問題のトラブルシューティングのための電子メール送信のソースを提供します。これは、受入れに成功した電子メールに対しては省略されます。

サポートされている値:
  • SubmitEmail: HTTPS送信APIを介して送信された電子メール。
  • SMTP: SMTPエンドポイントを介して送信された電子メール。

SubmitEmail

SMTP

OutboundAccepted電子メールログのログサンプル

受入れの成功:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com"
  "time": "2021-02-20T09:01:40.000Z",
  "id": "dccc219d-6733-4c68-b357-efeee378fb02",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
    "action": "accept",
    "messageId": "<unique_ID>",
    "sender": "support@example.com"
    "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
    "recipient": "user@example.com",
    "messageSizeInKiB": 2,
    "receivingDomain": "example.com",
    "smtpStatus": "250 2.1.5 user@example.com and options Ok",
    "headers": {
      "X-Campaign-ID": "campaign1",
      "Recipient-Group-ID": "group1",
      "Sub-Account-ID": "account1"
    },
    "message": "Accepted email support@example.com → user@example.com"
  }
}

受入れの失敗(抑制):

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "3391f649-909e-4a0d-a07a-ee222a0d2714",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SubmitEmail",
      "envelopeSender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "errorType": "Recipient suppressed",
      "message": "Suppressed email support@example.com → user@example.com"
  }
}

日次レート制限の超過:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "3391f649-909e-4a0d-a07a-ee222a0d2714",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SubmitEmail",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "errorType": "Daily limit reached",
      "message": "Rejected email support@example.com → user@example.com: Daily limit 50000 exceeded"
  }
}

送信者レート制限の超過:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "53bb943a-f04a-402c-8de0-74e387ca2d08",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SMTP",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "errorType": "Sender rate limit reached",
      "message": "Rejected email support@example.com → user@example.com: Sender rate limit 18000 exceeded"
  }
}

バイト制限の超過:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7d674693-b394-499d-9ce5-be2d1cbc796e",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SMTP",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "errorType": "Byte limit exceeded",
      "message": "Rejected email support@example.com → user@example.com: Byte limit 2MB exceeded"
  }
}

受信者アドレスの拒否(インバウンドSMTPサーバー):

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7d674693-b394-499d-9ce5-be2d1cbc796e",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SMTP",
      "envelopeSender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@test",
      "errorType": "Invalid recipient",
      "message": "Rejected email support@example.com → user@test.com: Invalid recipient address"
  }
}

認可の失敗:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7d674693-b394-499d-9ce5-be2d1cbc796e",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
    "action": "accept",
    "ingressType": "SubmitEmail",
    "envelopeSender": "support@example.com",
    "principalId": "ocid1.user.oc1.<unique_ID>",
    "errorType": "Authorization failure",
    "authzOpcRequestId": "6D6E701D166D72B8BCB7881647CDAAAA/5590913E23F541ECDFA486FE9C611B12/40C21F5CB148AF3C391AC98B21D81412",
    "message": "Email approved Body From address: support@example.com is not authorized or not found"
  }
}

リセット:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7d674693-b394-499d-9ce5-be2d1cbc796e",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SubmitEmail",
      "envelopeSender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "errorType": "Reset",
      "message": "Rejected email from support@example.com: SMTP client reset"
  }
}

切断:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundaccepted",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7d674693-b394-499d-9ce5-be2d1cbc796e",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "accept",
      "ingressType": "SubmitEmail",
      "envelopeSender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "errorType": "Disconnected",
      "message": "Rejected email from support@example.com: SMTP client disconnected"
  }
}

OutboundRelayed電子メール・ログの内容

プロパティ 説明
recipient 受信者の電子メール・アドレス。 user@example.com
sender 電子メール・メッセージの"From:"ヘッダー。 support@example.com
action
ログ内のデータのコンテキストを提供します。リレー、バウンスおよび苦情ログでサポートされる値:
  • Relay: 受信メール・サーバーに正常にリレーされました。
  • Bounce: 受信メール・サーバーから戻されました。
  • Complaint: 受信者は電子メールを迷惑メールとしてマークしました。メールボックス・プロバイダは苦情フィードバック・ループをサポートしています。

    ノート: すべての受信ドメインが苦情フィードバックを提供しているわけではありません。

自動プロセッサは、認識されないアクション値を含むログを許容する必要があります。

  • relay
  • bounce
  • complaint
errorType

問題のトラブルシューティングに関する情報を提供します。"Bounce"ログにのみ存在します。

リレー、バウンスおよび苦情ログでサポートされる値は、次のとおりです:
  • ソフト・バウンス: 受信サーバーからの一時的なエラーで、配信されなかったメッセージが表示されます。
  • ハード・バウンス: 受信サーバーからの永続的なエラーで、配信されなかったメッセージが表示され、受信者のアドレスが抑制リストに追加されます。
soft
bounceCategory バウンスのカテゴリ。"Bounce"ログにのみ存在します。使用可能な値:
  • 不適切な構成
  • 不正な接続
  • ドメインが正しくありません
  • bad-mailbox
  • コンテンツ関連
  • 非アクティブなメールボックス
  • 無効な送信者
  • メッセージが期限切れです
  • ホストからの応答なし
  • その他
  • ポリシー関連
  • プロトコルエラー
  • 目標- 問題
  • リレー- 問題
  • ルーティング・エラー
  • スパム関連
  • 未分類
  • ウイルス関連
bad-mailbox
reportGeneratedTime アクションが生成された時間。一部の"Bounce"および"Complaint"ログにのみ存在します。 2021-02-04T17:26:03.120Z
originalMessageAcceptedTime 元のメッセージが電子メール配信サービスによって受け入れられた時間。バウンスされたメッセージのみを対象に元のタイムスタンプを示しているため、リレー・ログには存在しません。 2021-02-04T17:26:03.120Z
bounceCode SMTPレスポンス・コード(5.5.0、4.7.1など)。"Bounce"ログにのみ存在します。詳細は、https://www.ietf.org/rfc/rfc1893.txtを参照してください。 5.5.0
smtpStatus SMTPステータスは、インターネット上のリモートSMTPサーバーによって生成された情報を含み、通常は電子メール配信で制御されません。

"250 2.1.5 Recipient ok"

"550 5.1.1 <user@example.com> recipient does not exist here."

"550 5.1.1不明または不正な別名:

b0c-4031-8d85-33d136229fc3-bmta-ad1-fd1-101-us-ashburn-1

@iad1.rp.oracleemaildelivery.com""550 5.7.0ローカル・ポリシー違反"

messageId messageIdは、電子メール送信操作を表す一意のIDです。これは、電子メールのエンドツーエンドをトラッキングするために使用されます。messageIdは、顧客から提供されるか、電子メールの処理中にMTAによって生成されます。 06a9aa8e-0542-4ddf-8255-ec9c2f5e02a3

@smtpf-ad3-fd1-303-us-phoenix-1.imtaad3.vcndpphx.oraclevcn.com

詳細は、https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.4を参照してください。

senderId 承認済送信者のOCID。 ocid1.emailsender.oc1.phx.<unique_ID>
senderCompartmentId 承認済送信者のコンパートメントOCID。 ocid1.compartment.oc1..<unique_ID>
sourceAddress ソースIPは、送信接続に使用された外部パブリックIPアドレスです。これは、成功した"Relay"ログと、内部ハード・バウンスの"bounce"ログにのみ存在します。 192.29.103.192
dkimSelector 「ユーザー」が定義したDKIMセレクタ値。"Relay"ログにのみ存在します。DKIMセレクタは、RFC 6376で正式に定義されている専門用語です。 prod-phx-20191217
dkimError DKIM署名エラー・テキスト。"Relay"ログにのみ存在します。 "Operation cannot be started: DKIM 0 no private key for identity '@mail.integration.us-ashburn-1.ocp.oraclecloud.com'"
messageSizeInKiB キビバイト単位のメッセージ・サイズ(丸めモードのceilingを使用して整数に丸められます)。 5
headers (将来使用可能)承認済送信者レベルで構成可能なヘッダー。サポート・リクエストを通じて設定し、4つのヘッダーが最大です。
{
  "X-Campaign-ID":"campaign1",
  "Recipient-Group-ID": "group1",
  "Sub-Account-ID": "account1"
}
recipientMailServer 電子メール・リレーが試行されたインターネット上のメール・サーバーの名前およびIPアドレス。これは、成功した"Relay"ログと、内部ハード・バウンスの"bounce"ログにのみ存在します。このフィールドは、集計ログ・ビューにも役立ちます。

mail-smtp-in.l.google.com

(172.217.197.26)

internalProcessingDurationInMs ("Relay"ログのみ)メッセージが電子メール配信サービスによって受け入れられた時点(たとえば、フロントエンドでメッセージ・データの終了を受信したとき)から、サービスがアウトバウンド配信を試行する準備ができた時点までの内部遅延(ミリ秒単位)。 791
tlsCipher ("Relay"ログのみ) TLS暗号スイート名。

TLS_ECDHE_RSA_WITH

_AES_128_GCM_SHA256

message ログ・イベントのサマリー。

Relayed email support@example.com

-> user@example.com

sendingPoolName 専用IPプールにのみ適用可能です。 PHXOCIInternalVMTAs

OutboundRelayed電子メールログのログサンプル

リレーの成功:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundrelayed",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "2eefd817-0a53-4be0-990c-224708aff337",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
    "action": "relay",
    "messageId": "<unique_ID>",
    "sender": "support@example.com",
    "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
    "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
    "recipient": "user@example.com",
    "receivingDomain": "example.com",
    "sourceAddress": "XXX.XX.XXX.XXX",
    "dkimSelector": "selector1",
    "messageSizeInKiB": 2,
    "smtpStatus": "250 2.1.5 Recipient ok",
    "recipientMailServer": "bmta.email.us-phoenix-1.oci.oraclecloud.com (XXX.XX.X.XXX)",
    "internalProcessingDurationInMs": 20,
    "tlsCipher": "TLS_AES_128_GCM_SHA256",
    "sendingPoolName": "PHXOCIVMTAs",
    "headers": {
      "X-Campaign-ID": "campaign1",
      "Recipient-Group-ID": "group1",
      "Sub-Account-ID": "account1"
    },
    "message": "Relayed email support@example.com → user@example.com"
  }
}

ハード・バウンス:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundrelayed",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7f7fa34c-8361-4013-9dda-d43631c95a3c",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "bounce",
      "messageId": "<unique_ID>",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "receivingDomain": "example.com",
      "errorType": "hard",
      "bounceCategory": "bad-mailbox",
      "bounceCode": "5.1.1",
      "reportGeneratedTime": "2021-02-24T22:50:22.123Z",
      "originalMessageAcceptedTime": "2021-02-23T22:50:22.123Z",
      "smtpStatus": "550 5.1.1 unknown or illegal alias: 974-4710-b440-52e9e1a70cb8-user@example.com",
      "message": "Suppressed recipient user@example.com for email from support@example.com: bad-mailbox hard bounce"
  }
}

ソフト・バウンス:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundrelayed",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "7f7fa34c-8361-4013-9dda-d43631c95a3c",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "bounce",
      "messageId": "<unique_ID>",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "receivingDomain": "example.com",
      "errorType": "soft",
      "bounceCategory": "spam-related",
      "bounceCode": "5.0.0",
      "reportGeneratedTime": "2021-02-24T22:50:22.123Z",
      "originalMessageAcceptedTime": "2021-02-23T22:50:22.123Z",
      "smtpStatus": "550 5.1.1 <user@example.com> User unknown; rejecting",
      "message": "Received spam-related soft bounce for email support@example.com → user@example.com"
  }
}

苦情:

{
  "specversion": "1.0",
  "type": "com.oraclecloud.emaildelivery.emaildomain.outboundrelayed",
  "source": "example.com",
  "time": "2021-02-20T09:01:40.000Z",
  "id": "936f5f8c-0724-4321-b0d9-4c7f6cf8d043",
  "oracle": {
    "logid": "ocid1.log.oc1.phx.<unique_ID>"
  },
  "data": {
      "action": "complaint",
      "messageId": "<unique_ID>",
      "sender": "support@example.com",
      "senderCompartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "senderId": "ocid1.emailsender.oc1.phx.<unique_ID>",
      "recipient": "user@example.com",
      "receivingDomain": "example.com",
      "message": "Suppressed recipient user@example.com for email from support@example.com: Email complaint"
  }
}