Email Routing

9 views
Skip to first unread message

darry...@d51gapps.org

unread,
Nov 27, 2017, 2:21:36 PM11/27/17
to gshell-discuss
Hey All!

Have to say that I love gShell! When I first saw it, I knew my life had just gotten a lot better. OK, it no longer needed Google API's!

I need to set the email routing for user accounts. In the GUI, you just go to the Account section and to Email Routing. How do I do this with gShell? I am renaming the domain and want the emails of the old domain to only go to the new address, but keep the old address available. In the GUI, I could uncheck the G Suite Email and inherited routes.

Thanks in advance!
Darryl

Spencer Varney

unread,
Nov 27, 2017, 2:30:45 PM11/27/17
to darry...@d51gapps.org, gshell-discuss
Hey Darryl,

If you're talking about this api call, take a look at Set-GAdminSettingsEmailRouting which I think is the 1:1 match. However, these old APIs aren't guaranteed to work - its a square peg and round hole issue which I'd be happy to talk more about if you're curious (or if you want to help improve it, if it doesn't work in this instance). I was hoping Google was going to come out with some new API to replace it when these were depreciated, but that date has been pushed back to 2018 and afaik I haven't yet seen a proper replacement.

Let me know if that works out for you!

Regards,

Spencer

--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

darry...@d51gapps.org

unread,
Nov 27, 2017, 4:15:43 PM11/27/17
to gshell-discuss
Hey Spencer!

Thanks for the lightning response!

It looks like most of it. First, let me see if I understand how to use this. If I have a Google domain gappsdom.com and a main domain, maindom.com, my first thought is like this:

Set-GAdminSettingsEmailRouting
-RouteDestination "smtp.gappsdom.com" # this is what Google seems to use
-RouteRewriteTo $true
-RouteEnabled $true
-AccountHandling provisionedAccounts
-Domain "gappsdom.com"

Assuming this is correct, this brings up a few more questions (of course!)

1. Is there a way to get the current settings?
2. How can I turn off the G Suite Email and inherited options?
3. I'm assuming that this can only be done at a domain-wide level? Or is there a way to use this at the individual user level?

I would love to talk more on this if I could be of any help. Not sure what I could offer. I am only at this job a few more weeks, so I won't be able to access any domain after that.

Thanks again!
Darryl
Reply all
Reply to author
Forward
0 new messages