Salesforce メールリレー機能では、Microsoft 365 Exchange (Exchange Online) を介して組織外のユーザーに直接メールを送信することはできません。また、オンプレミスまたはハイブリッドソリューションがない限り、使用をお勧めしていません。
Microsoft 365 でメールリレーを使用しようとするとどのようなエラーが発生する可能性がありますか?
Microsoft 365 (旧 Office 365) のルーティングとテナントメールの検証ではインターネットへのリレーが必要であるため、一部の組織では、Microsoft MTA にメールを転送しようとすると「Relay Access Denied ATTR36」 (リレーアクセス拒否 ATTR36) のエラーが返されることがあります。これは、Microsoft による共有 IP からのメール転送方法に関連していると思われます。そのため、Microsoft 365 を介したメールのリレーは、組織ドメイン用のスタンドアロンの SMTP ゲートウェイを使用してメールを Office 365 テナントに渡さないと機能しないことがあります。
注意: 組織内のユーザーへのメール送信は、メールリレーで動作します。次の Microsoft ドキュメントのオプション #2 を参照してください。
https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365
組織外のユーザーにメールを送信するための回避策は次のとおりです。
1) Salesforce の SMTP 認証オプション (2025 年 9 月に Microsoft により廃止予定)
https://techcommunity.microsoft.com/blog/exchange/exchange-online-to-retire-basic-auth-for-client-submission-smtp-auth/4114750
2) SMTP 認証を使用せずに、スタンドアロン SMTP ゲートウェイまたは Exchange オンプレミス (ハイブリッド) を使用して Salesforce メールリレーを使用する。 https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#smtp-relay-configure-a-connector-to-relay-email-from-your-device-or-application-through-microsoft-365-or-office-365
3) 外部メールサービスで送信するための Salesforce の機能を使用する。
Salesforce ヘルプ記事: メールリレーを使用したメールの送信
Idea Exchange: SMTP AUTH using OAUTH 2.0
000387487

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.