Sender Policy Framework (SPF) は、メールのなりすましを検出するように設計されたシンプルなメール検証システムです。SPF は、ユーザからのメール送信が許可されているプロバイダを検証するプロセスを提供します。さらに、送信者による身元の隠蔽を困難にすることで、スパムや詐欺を減らすことも目的としています。
たとえば、Salesforce アプリケーションからメールを送信し、ユーザのドメインが ABC.com であれば、Salesforce.com を ABC.com ドメイン用のメールサーバとして承認する SPF レコードを作成します。受信者がメールを受信すると、ABC.com の SPF レコードを確認して、有効なメールであるかどうかを判断します。SPF を使用して検証すれば、メッセージが配信される可能性が高まります。
それに合わせて Salesforce は自社ドメイン用の SPF レコードを実装していますので、お客様も自分のドメイン用の SPF レコードを実装することをお勧めします。
Salesforce アプリケーションからメールを送信する場合に SPF レコードに含めるべきエントリは _spf.salesforce.com です。
salesforce.com ドメイン用の SPF レコードには、他の用途向けのいろいろなバリエーションがあり、それらは Salesforce アプリケーションからのメール送信とは無関係であるため、_spf.salesforce.com のみを使用してください。「Salesforce を SPF レコードに含める」を参照してください。
SPF レコードの例を以下に示します。
次のように設定することもできます。
SPF レコードを最初から作成するには、MXToolbox の SPF Record Generator などのツールを使用できます。
現在の _spf.salesforce.com レコードの形式では exists:%{i} のようなマクロを使用することで、必要なすべての Salesforce MTA IP を個別にリストせずに指定しています。
参考情報: SPF and DKIM alignment fails (英語)
Salesforce レコードと Salesforce IP 用の SPF レコードが検証をパスすることを確認するため、Kitterman.com の SPF Query Tool を使用します。
SPF ポリシー詳細の例:
Mail sent from this IP address: 13.108.238.141
Mail Server HELO/EHLO identity: myaddress@salesforce.com
HELO/EHLO Results - PASS sender SPF authorized
000382664

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.