Configuring SPF

Configure Sender Policy Framework (SPF) to detect email spoofing and to send emails securely using Oracle Cloud Infrastructure Email Delivery service.

About SPF

Sender Policy Framework (SPF) is used by email receivers to detect email spoofing. Using SPF, an email receiver can check if the Internet Protocol (IP) is explicitly authorized to send for that domain. SPF is implemented by publishing a special TXT record to a domain's DNS records. The TXT record declares which hosts are allowed to send mail on behalf of this domain. Receiving mail servers check the SPF records of sending domains to verify that the email's source IP address is authorized to send from that domain. Without SPF, a spam or phishing email can be "spoofed" to appear that the email comes from a legitimate domain. Domains that implement SPF are much more likely to block emails attempting to spoof your domain. For an overview of how SPF works, see Sender Policy Framework. For details on SPF record syntax, see SPF Record Syntax.

Approved senders can use a DKIM-configured sending domain to become verified. See Managing Approved Senders for information on how to add an approved sender.

The Approved Senders section within the Console provides validation of an SPF record for each of your approved senders. SPF is required for subdomains of and recommended in other cases.

In your DNS setup, create a Text record (TXT) to store information about the SPF records and paste the following information into it based on the sending region:

Don't add a subdomain or name in the SPF text records on an existing DNS zone.

Sending Region SPF Record
Americas v=spf1 ~all
Asia/Pacific v=spf1 ~all
Europe v=spf1 ~all
All Commercial Regions v=spf1 ~all
Government Regions

The following is an example of a command used to view an SPF record:

dig -t TXT +short
Example output:
"v=spf1 ip4: -all"