目录

如何:配置 Google Workspace 的 catch-all 规则将无收件人邮件发送给一个以上的本域收件人

油漆未干:本文的内容仍然在试验中。

需求

在一个只有少量用户的 Google Workspace 中,希望将无已知收件人的所有地址(例如 foo@, bar@)都转发给超过一个的特定用户。

https://admin.google.com/ac/apps/gmail/defaultrouting 可以配置default routing规则。设置如下:

匹配模式

Specify envelope recipients to match:此处有几个选项:Single recipient、Pattern match、Group membership、All recipients。文档提到的Non-recognized addresses在最下面。我们需要选中All recipients,然后在最下方勾选Perform this action only on non-recognized addresses。

Envelope recipient

注意不要勾选此checkbox。

Also deliver to

在下面勾选 Add more recipients,然后添加收件人。通过编辑高级选项将其内容改为形如:

Deliver to: alice@example.com Suppress bounces from this recipient Add X-Gm-Original-To header

的样子。

测试

建议使用一采用了包含 -all 规则的SPF的域名进行测试。在 https://admin.google.com/ac/emaillogsearch 观察邮件的投递情况。