# Mail for a domain on this server never reaches Google Workspace or Microsoft 365

UrbeStack sysadmin note about Postfix. Last updated 30 Nov 2026.

Mail sent from your server to a domain it hosts stays on the server, even though the domain's MX records point to Google Workspace or Microsoft 365. Set the domain's mail routing to remote so Postfix sends the mail to the provider.

## Symptoms

The domain's mail is hosted at Google Workspace, Microsoft 365 or another provider, and its MX records point there.

Mail sent to the domain from your server's sites and mail accounts lands in a mailbox on the server. If no mail account on the server has the recipient's email address, the message bounces with `User unknown in virtual mailbox table`.

Mail sent from anywhere else arrives at the provider.

## Cause

With local routing, your server handles the domain's mail. Postfix delivers mail for the domain on the server without looking up its MX records.

UrbeStack chooses local routing when the domain's mail is first set up if any of these conditions apply.

- Public DNS directs the domain's mail to this server at that time.
- The domain has no MX record and uses this server's nameservers.
- The `mail.unpointed_domains` setting is `accept`.

If the domain's mail moves to another provider later, the domain keeps its original local routing.

## Resolution

Set the domain's mail routing to remote.

```
urbestack-mail-domain-set --name example.com --routing remote
```

With remote routing, mail from your server to the domain follows the domain's MX records as it does for any other domain. Your server refuses incoming mail for that domain.

Check the domain's routing.

```
urbestack-mail-domain-get --name example.com
```

The `routing` field should show `remote`.

Send a message from your server to the domain again. It should now reach the provider.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
