Gam Command for email forwarding

257 views
Skip to first unread message

Sajib Ahmed

unread,
Oct 9, 2024, 11:01:06 AM10/9/24
to google-ap...@googlegroups.com
Hi Gam Group,

I am trying to find our why the following command works but doesn't forward emails to the right person. Please see the command below:

$gam user $user add forwardingaddress $manager

When I verify with the command below, it shows the appropriate forwarding address but it doesn't actually forward emails and shows the Address not found email. Can you please help me with this.  

$gam user $user show forwardingaddress



My GAM version is the following:

GAMADV-XTD3 6.80.02 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller

Ross Scroggs <ross.s...@gmail.com>

Python 3.12.5 64-bit final

MacOS Sonoma 14.1.1 arm64




Sajib Ahmed

Information Technology Manager

Product & Engineering | Potloc

img 300-5420 St Laurent Blvd, Montréal, Québec H2T 1S1

Non client facing
facebooktwitterinstagramlinkedin

New brand launch - September 2024

Ross Scroggs

unread,
Oct 9, 2024, 11:13:11 AM10/9/24
to google-ap...@googlegroups.com
Setting up forwarding is a two-step process
You've done this step.

You need to do this step to enable forwrding.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BQsxtCO8hW1uPvQhi11r9KNM73LdJp1%3DzCZiTDx7kBwBnhVFA%40mail.gmail.com.

Sajib Ahmed

unread,
Oct 9, 2024, 2:50:06 PM10/9/24
to google-ap...@googlegroups.com
Hi Ross,

Thanks for your response. I am get the following response after enabling the forwarding:

image.png

However, the forwarding still doesnèt seem to work. Did I miss any step here?

Best,

Sajib Ahmed

Information Technology Manager

Product & Engineering | Potloc

img 300-5420 St Laurent Blvd, Montréal, Québec H2T 1S1

Non client facing
facebooktwitterinstagramlinkedin

New brand launch - September 2024


Ross Scroggs

unread,
Oct 9, 2024, 2:55:41 PM10/9/24
to google-ap...@googlegroups.com
In the Admin console, go here: Apps
Google Workspace
Settings for Gmail
End User Access




-
Is Automatic forwarding on the the OU of the forwarding user?

Send me a Meet/Zoom invitation.

Ross
---
Ross Scroggs



On Oct 9, 2024, at 11:40 AM, 'Sajib Ahmed' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi Ross,

Thanks for your response. I am get the following response after enabling the forwarding:

Sajib Ahmed

unread,
Oct 9, 2024, 5:33:21 PM10/9/24
to google-ap...@googlegroups.com
Hi Ross,

It did the trick. The automatic email forwarding wasn't enabled for the user OU. It's working now. Thank you so much.  

Best,

Sajib Ahmed

Information Technology Manager

Product & Engineering | Potloc

img 300-5420 St Laurent Blvd, Montréal, Québec H2T 1S1

Non client facing
facebooktwitterinstagramlinkedin

New brand launch - September 2024


Sajib Ahmed

unread,
Oct 16, 2024, 9:50:19 AM10/16/24
to google-ap...@googlegroups.com
Hi Ross,

I am still having issues with the following commands and outputs:

Command 1: $gam user $user add forwardingaddress $manager
Output: User: $user, Add 1 Forwarding AddressUser: $user, Forwarding Address: $manager, Added
Command 2: gam user $user forward enabled delete $manager
Output: $user, Forward Enabled: True, Forwarding Address: $manager, Action: trash


I have used variables above to not expose information in this email thread. Note that actual emails were used in the commands. I have checked that the OU has automatic email forwarding enabled. 

I am still getting an address not found. Please note that the accounts that requires forwarding are in archived state. 

Can you please help with this? You can schedule me at your convenience in this link: https://calendly.com/sajib-ahmed-potloc/meet-with-sajib

Best,

Sajib Ahmed

Information Technology Manager

Product & Engineering | Potloc

img 300-5420 St Laurent Blvd, Montréal, Québec H2T 1S1

Non client facing
facebooktwitterinstagramlinkedin

New brand launch - September 2024


Ross Scroggs

unread,
Oct 16, 2024, 10:53:04 AM10/16/24
to google-ap...@googlegroups.com

✉ Kevin Melillo

unread,
Oct 16, 2024, 11:08:33 AM10/16/24
to google-ap...@googlegroups.com
Forwarding will not work from an account that is archived, because it can not receive new email.  New emails will be rejected.  

Sajib Ahmed

unread,
Oct 22, 2024, 1:17:50 PM10/22/24
to google-ap...@googlegroups.com
Does this mean that it will only work on accounts that are suspended? 

From a cost perspective, Archive accounts cost 1/4th of the cost of suspended account license. However, if you manually put in the routing rule on Google Admin > Gmail > Routing, then it works even if the account is archived. 

Please let me know if there is a workaround, if not I will have to do the email routing manually since archiving accounts is 10$ per month compared to 35$ for suspended accounts. 

Best,

Sajib Ahmed

Information Technology Manager

Product & Engineering | Potloc

img 300-5420 St Laurent Blvd, Montréal, Québec H2T 1S1

Non client facing
facebooktwitterinstagramlinkedin

New brand launch - September 2024


✉ Kevin Melillo

unread,
Oct 22, 2024, 1:58:56 PM10/22/24
to google-ap...@googlegroups.com
It will not work on suspended accounts either.

Reply all
Reply to author
Forward
0 new messages