Duet AI is now Gemini for Google Workspace. Learn more

Google IP address ranges for outbound mail servers

When setting up email for your domain, you might need the IP addresses for Google Workspace mail servers. For example, SPF authentication for your domain might require Google server IP addresses.

Google has a global mail server network that grows dynamically to support demand. This means Google Workspace mail servers have a large range of IP addresses, and the addresses change often.

Get the current range of Google Workspace IP addresses by checking Google's SPF record.

Note: Google publishes a list of IP address ranges in the DNS TXT record, and the records it references. This TXT record is complete for SPF, but it doesn't include all IP address ranges used by Google APIs and services on the default domains. For all possible Google IP address ranges, refer to Obtain Google IP address ranges.

Find Google Workspace IP address ranges

To get the IP addresses of Google Workspace mail servers:

  1. Use DNS lookup commands (nslookup, dig, host) to retrieve the SPF records for the domain

    nslookup -q=TXT

    This returns a list of the domains included in Google's SPF record, such as:,,
  2. Look up the DNS records associated with those domains, one at a time:
nslookup -q=TXT
nslookup -q=TXT
nslookup -q=TXT

The results contain the current range of addresses.

IP address ranges for unverified forwarding

You can use Gmail’s advanced routing rules to forward incoming messages to different destinations. When Gmail routes SPF unauthenticated messages to a new destination, the messages keep their unauthenticated status. This is so receiving servers do their own authentication checks when they get the messages.

Gmail routes messages with unverified forwarding configurations through Google servers with public IP addresses. The public IP addresses are intentionally left out of Google's SPF record, and resolve to Google hostnames ending in These servers use the IP address ranges in this article to route unverified messages.

If you route Gmail based on IP address, you might need to update your firewall routing settings to include the IP ranges below.


  • The hostnames and IP address ranges below send unverified and unauthenticated messages. We recommend you strictly manage messages received from these IP ranges when they pass through firewalls and other security measures.
  • Message from these IP addresses should be treated as unauthenticated by SPF.
  • Do not add these hostnames or IP addresses to your SPF records. This puts your domain at risk of spoofing, phishing, and other forms of impersonation.
IPv4 IPv6







Ranges last updated: January 25, 2021

Hostname mask for unverified forwarding

If you use hostnames instead of IP addresses in your firewall routing settings, use this hostname mask when routing unauthenticated messages:


To identify untrusted forwarding servers, use this hostname mask in your firewall settings. Use the wildcard (*) for subdomains. Subdomains can include multiple, nested subdomains.

Related topics

Obtain Google IP address ranges

Ensure mail delivery & prevent spoofing with SPF


Was this helpful?

How can we improve it?
Clear search
Close search
Google apps
Main menu