As an administrator, use the Default routing to set up how inbound email is delivered for your organization. With default routing, you specify recipient addresses and then specify the actions to take on messages intended for the recipients.
Default routing & Routing in Google Workspace
Google Workspace gives admins 2 main routing settings for managing email delivery: Default routing and Routing. Use Default routing to set up the default mail delivery for your organization. For example, if you want to send all or most of your organization's email to multiple inboxes, use Default routing to up dual delivery for your entire organization. Then, use the Routing setting to create more specialized email delivery rules, or to override the Default routing behavior. For example, you can add a Routing rule that sends a copy of every message for your CEO to the CEO's executive assistant.
These 2 routing settings provide flexibility when setting up email delivery for your organization. For step-by-step instructions for using these 2 settings to meet specific email delivery needs for your organization, visit these articles:
Ordering default routing settings
To change the priority of your default routing settings, change their order in the settings table:
- Click Reorder next to the setting.
- Enter a number to indicate the setting's priority and order. For example, enter 1 for the highest priority setting.
- Click Save.
- Repeat for all settings that you want to prioritize.
Settings with a Reject action are always assigned the highest priority. This is true even when you've configured another setting with a higher priority.
Important: Google Workspace applies all routing settings to the affected inbound messages. If two settings conflict, Google Workspace applies the setting with the higher priority and ignores the lower priority, conflicting setting. Read detailed information about conflicting consequences and precedence exceptions for Gmail settings.
This article describes all the options available in the Default routing setting.
Set up default routing
Sign in to your Google Admin console.
Sign in using your administrator account (does not end in @gmail.com).
In the Admin console, go to Menu AppsGoogle WorkspaceGmailDefault Routing.
- Click Configure or Add another rule.
In the Add setting box, take these steps:
Setting option What to do Specify envelope recipients to match
- Single recipient—Specify a single user by entering an email address, such as email@example.com.
- Pattern match—Enter a regular expression to specify a set of recipients in your domain.
- Group membership—Select from one or more groups in the list. Create your groups from the Groups tab. This option affects both direct and child group members. For example, if Group B is a member of Group A, users in Group B are child members of Group A.
- All recipients—Specify all recipients in your domain. This option only affects unrecognized addresses. Suspended users, users with Gmail turned off, and users who don't exist are treated as unrecognized addresses.
If the envelope recipient matches the above, do the following
Select the main action to take on affected messages:
Modify message—Change affected messages. Specify messages are changed with the Modify message options, below.
Reject message—Reject the message before it's delivered to the recipient. You can add a message to notify the sender about why the message was rejected. With this option, no other routing or compliance rules are applied to affected messages. Routing settings with the Reject message option are always the highest priority routing settings. Learn more in Order your default routing settings. When messages are rejected, Gmail automatically adds an SMTP rejection code, for example 550 5.7.1. This is an SMTP standard requirement, and the codes can't be removed.
When Modify message is selected for affected messages, select options to specify how messages are modified:
- Add X-Gm-Original-To header—Add a header tag if the recipient is changed, so the receiving server knows the original envelope recipient. An example of the header tag format is X-Gm-Original-To: firstname.lastname@example.org.
Add X-Gm-Spam and X-GM-Phishy headers—Add headers that indicate message spam and phishing status. Administrators for a receiving servers use this information to set up rules for managing spam. For details, go to Add spam headers setting to all default routing rules.
Add custom headers—Add custom headers to messages affected by this setting. For example, you can add a header that matches the description you entered for the setting. Custom headers can help you troubleshoot routing settings and message delivery.
Prepend custom subject—Add custom text to the beginning of the subject line for specified messages. For example, enter Confidential for sensitive messages. If this setting is applied to a message with the subject Monthly report, the subject line is changed to: [Confidential] Monthly report.
Change the route—Change the message destination from the default Gmail server to a different mail server. Before you can change the route, you must add the server by following the steps in Add mail servers for Gmail email routing.
Change envelope recipient—The message bypasses the original recipient’s mailbox and goes to the new recipient. Change the envelope recipient in one of these ways:
- Replace the recipient’s entire email address—After Replace recipient, enter the full email address, such as email@example.com.
- Replace username—Change just the username of the recipient's email address and keep the domain the same, before @existing-domain. Enter the username only, without the @ or the domain name.
- Replace domain—To change just the domain of the recipient's email address and keep the username the same, after existing-username@, enter the domain, such as solarmora.com.
Bypass the spam filter for this message—Deliver incoming messages to recipients even if the spam filter identifies them as spam. This option applies only to incoming messages. You can’t bypass spam filters for outgoing messages. Note: This option is not available for the Groups account type. For details, go to Account types to affect.
Remove attachments from message—Remove attachments from affected messages. You can also add text to let recipients know that attachments were removed.
- Add more recipients—Deliver affected messages to more recipients. To enter recipient addresses, click Add. In the Add setting box, select Advanced for these options:
- Change route
- Change envelope recipient
- Do not deliver spam to this recipient
- Suppress bounces from this recipient
- Add X-Gm-Original-To header
- Add X-Gm-Spam and X-Gm-Phishy headers
- Add custom header
- Prepend custom subject
- Remove attachments from message
- Select one or both of these options:
- Only affect specific envelope senders—Select this option, then enter the email addresses for the senders that you want to apply the setting to.
- Only affect specific envelope recipients—Select this option, then enter the email addresses for the recipients that you want to apply the setting to.
- Enter the affected users for your selected options:
- Single email address—Enter the complete email address for a user.
- Pattern match—Enter a regular expression to specify a set of senders or recipients in your domain. For example:
Read our Guidelines for using regular expressions.
- Group membership—Select one or more groups in the list. For envelope senders, this option only applies to sent mail. For envelope recipients, it only applies to received mail. This option affects group members, and members of child groups. For example, if Group B is a member of Group A, this option affects members of Group A and Group B.
Select an option to specify which email addresses the setting affects: Only unrecognized addresses, or both recognized and unrecognized addresses.
Unrecognized addresses are email addresses for suspended users and users with Gmail turned off.
- At the bottom, click Save.
Changes can take up to 24 hours but typically happen more quickly. Learn more You can monitor changes in the Admin console audit log.
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.