How to Add an Inbound Mail Gateway in Google Workspace

Quick and easy-to-follow guide for Google Workspace administrators

What is an inbound mail gateway

  • An inbound mail gateway is an email server that your incoming messages pass through before delivering to the final recipient.

When to set up the Inbound gateway setting

  • Let’s say your domain is set up to receive emails at another service first and then pass along an exact copy to Google’s mail servers.
  • For example, this is the case when you set up Dual delivery with another email service as the initial recipient of emails to your domain and Google Workspace as the secondary recipient.
  • In this case, you need to point your MX records to the other service and add the service to your Inbound Gateway setting in Google Workspace. 

How the Inbound gateway works

  • Google trusts the inbound gateway server, skips checking it for authentication, and allows emails through.

How to set up an Inbound gateway in Google Workspace step-by-step with images

Step 1

How To Add An Inbound Mail Gateway In Google Workspace - Step 1

In the Admin console at, click the Apps icon.

Step 2

How To Add An Inbound Mail Gateway In Google Workspace - Step 2

Select Google Workspace.

Step 3

How To Add An Inbound Mail Gateway In Google Workspace - Step 3

Click Gmail. Make sure not to check the box to the left; just click the service.

Step 4

How To Add An Inbound Mail Gateway In Google Workspace - Step 4

Select Spam, Phishing and Malware.

Step 5

How To Add An Inbound Mail Gateway In Google Workspace - Step 5

Under Organizational Units, select the OU with the users whose settings you want to update. The same updates will apply to all sub-OUs under the OU you choose.

By default, if you don’t select an OU, you will add your setting to the top OU, named after your domain. This way, you will apply changes to all users in your account. This is generally recommended in this case.

If you’re not familiar with OUs, click here.

Step 6

How To Add An Inbound Mail Gateway In Google Workspace - Step 6

Click the Inbound Gateway setting.

Step 7

How To Add An Inbound Mail Gateway In Google Workspace - Step 7

Check the Enable box to turn it on.

Add gateway IP addresses

Next, click the ADD button under IP addresses/ranges, type the IP addresses or ranges, and click SAVE. 

Optionally, check the box ‘Automatically detect external IP’ – this helps the setting work better.

You may also wish to Reject all mail from non-gateway IPs and require a secure TLS connection from the gateways. This is optional but recommended if you need to ensure that all messages get encrypted for safe delivery.

Step 8

How To Add An Inbound Mail Gateway In Google Workspace - Step 8

Message tagging

Under 2. Message Tagging, you can set up messages from the gateway to be treated as spam if the header matches a regexp. You can learn more about regexp in Google’s Help Center.

Optionally, you can check the box below to turn off Gmail’s built-in spam filters and only rely on the header value above to classify messages as spam.

Click SAVE. It may take up to 24 hours for it to start working.

That's all! You reached the end of the article. Continue to:

If you find this useful, share and help others!

Protect And Secure Google Workspace
Protect your data and maximize security
Data protection and security tools are crucial, especially if you store any sensitive data in your accounts.
Email Marketing Tools
Better Gmail and email marketing
If you work with Gmail or do email marketing, you will appreciate what these services can do for you.
Collab And Optimization Tools
Process optimization and collaboration
You can use these services to make tedious processes a whole lot easier, improve teamwork, save time, and get better results.
Website Tools and Resources
Resources for website creators
Awesome tools and services for easy and effective site building, content creation, SEO, email marketing, and more.

Submit Feedback

Think we could do something better or just want to tell us how happy you are with the site? We would love to hear from you – your feedback is more valuable than you can imagine.

Fill out this form, and we will get back to you.

Report An Issue With Workspace123

Are you running into an issue with the site? Maybe you found a broken link, or something else is wrong?

Fill out this form to let us know, and we will address it as soon as possible.

Please make sure to be very specific and add as many details as possible.

Missing Content

Our goal is to run the number one site in the world for you to get help with and learn how to use Google Workspace. This can’t be so if there is any missing information.

If you believe we need to add something, fill out this form, and we will do our best to add any missing content as soon as possible.

This site uses cookies to ensure you get the best experience. Click here to see our Cookies Policy.

Be the first to know

You can stay on top of news and updates in Google Workspace and Workspace123 and get special offers by subscribing to our newsletter.

Subscribe by email for news and updates