{"id":1365,"date":"2015-02-01T15:21:38","date_gmt":"2015-02-01T15:21:38","guid":{"rendered":"http:\/\/emtunc.org\/blog\/?p=1365"},"modified":"2016-01-07T20:53:30","modified_gmt":"2016-01-07T20:53:30","slug":"adding-a-catchall-to-a-secondary-domain-in-google-apps","status":"publish","type":"post","link":"https:\/\/emtunc.org\/blog\/02\/2015\/adding-a-catchall-to-a-secondary-domain-in-google-apps\/","title":{"rendered":"Adding a Catchall to a Secondary Domain in Google Apps"},"content":{"rendered":"<p>This quick guide will show you how you can create a catchall e-mail for any or all of your secondary\/non-primary Google Apps domains.<\/p>\n<p>So by default you can create a catchall account for the primary domain but the same option is not given for secondary\/additional domains.<\/p>\n<p>Luckily there is an easy work around for this and we can create a catchall address for any of your Google Apps domains.<\/p>\n<p>The reason I write this post is because most of the guides I found online (when I was searching for a solution for myself) did not seem to implement this in an efficient way (applying the policy to the entire Google Apps &#8216;company&#8217; rather than on individual domain basis).<\/p>\n<p><!--more--><\/p>\n<ol>\n<li>Log-in to your Google Apps Admin page @\u00a0<a href=\"https:\/\/admin.google.com\" target=\"_blank\">https:\/\/admin.google.com<\/a><\/li>\n<li>Click on Apps &#8211;&gt; Google Apps &#8211;&gt; G-mail @\u00a0<a href=\"https:\/\/admin.google.com\/AdminHome#AppDetails:service=email\" target=\"_blank\">https:\/\/admin.google.com\/AdminHome#AppDetails:service=email<\/a><br \/>\n<br \/>\n<a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-settingsforgmail.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1366\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-settingsforgmail.png\" alt=\"googleapps-settingsforgmail\" width=\"874\" height=\"502\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-settingsforgmail.png 874w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-settingsforgmail-300x172.png 300w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/a><\/li>\n<li>Click Default Routing @\u00a0<a href=\"https:\/\/admin.google.com\/AdminHome#ServiceSettings\/notab=1&amp;service=email&amp;subtab=domaindefault\" target=\"_blank\">https:\/\/admin.google.com\/AdminHome#ServiceSettings\/notab=1&amp;service=email&amp;subtab=domaindefault<\/a><\/li>\n<li>Click Add Setting and where it says &#8220;Specify envelope recipients to match&#8221;, select\u00a0<em>Pattern Match<\/em><\/li>\n<li>Now create a regex to match the domain you want the catchall for. For example if you have a secondary domain called secondary-domain.com, simply make the regex: <strong>.@secondary-domain.com<br \/>\n<\/strong>Make sure you use the regex tester like I have done in the example below &#8211; this will allow you to test that the regex will match anything@your-domain<br \/>\n<br \/>\n<a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1367\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute1.png\" alt=\"googleapps-gmail-defaultroute1\" width=\"615\" height=\"418\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute1.png 615w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute1-300x204.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/a>\n<\/li>\n<p><\/p>\n<li>Scroll down and select the option to change the envelope recipient. Here you want to put the main e-mail address for the secondary domain (the one that actually receives the e-mail)<br \/>\nNote: This only changes the envelope recipient so the\u00a0original<em> To<\/em> e-mail address will still be visible to the user. This is good because if you want to create filters based on certain addresses. For example, for can create a unique address for every new service you register for &#8211; this makes it easier to determine where you are getting spam from and potentially figure out who is leaking your personal information no matter if it is intentional or accidental.<br \/><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1368\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute2.png\" alt=\"googleapps-gmail-defaultroute2\" width=\"617\" height=\"618\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute2.png 617w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute2-150x150.png 150w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/02\/googleapps-gmail-defaultroute2-300x300.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/a><\/li>\n<li>Under section 3 (options) I selected &#8216;Perform this action only on non-recognized addresses&#8217; &#8211; either of the options will work but I guess it makes more sense to choose the first.<\/li>\n<li>Done! Click Save and test the rule.<\/li>\n<\/ol>\n<p><strong>Update 07\/01\/2016 :<\/strong> Thanks @Alex (comments) for a\u00a0more refined regex. Adding $ to the end of the regex means a match will be found at the end of the string.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This quick guide will show you how you can create a catchall e-mail for any or all of your secondary\/non-primary Google Apps domains. So by default you can create a catchall account for the primary domain but the same option is not given for secondary\/additional domains. Luckily there is an easy work around for this [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[156,157,158,155],"class_list":["post-1365","post","type-post","status-publish","format-standard","hentry","category-tech","tag-catchall","tag-gapps","tag-gmail","tag-google-apps"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1trTO-m1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/comments?post=1365"}],"version-history":[{"count":11,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1365\/revisions"}],"predecessor-version":[{"id":2030,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1365\/revisions\/2030"}],"wp:attachment":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/media?parent=1365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/categories?post=1365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/tags?post=1365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}