Set forwarding to multiple addresses for single user

609 views
Skip to first unread message

Susan McClure

unread,
Jan 12, 2023, 5:32:19 PM1/12/23
to google-ap...@googlegroups.com
I am trying to set up forwarding for a single gmail user, to 4 different addresses. 

I can add the 4 addresses OK  (I have tried them one at a time, and also comma separated, multiple,  forwardto addresses)

C:\GAMADV-XTD3>gam user gb30 add forwardingaddress patt...@rice.edu
User: gb...@rice.edu, Add 1 Forwarding Address
  User: gb...@rice.edu, Forwarding Address: patt...@rice.edu, Add Failed: Requested entity already exists

C:\GAMADV-XTD3>gam user gb30 add forwardingaddress ac...@rice.edu
User: gb...@rice.edu, Add 1 Forwarding Address
  User: gb...@rice.edu, Forwarding Address: ac...@rice.edu, Add Failed: Requested entity already exists

I can enable the forwarding for each address OK as well:

C:\GAMADV-XTD3>gam user gb30 forward on nm...@rice.edu keep
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: nm...@rice.edu, Action: leaveInInbox

C:\GAMADV-XTD3>gam user gb30 forward on ar...@rice.edu keep
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: ar...@rice.edu, Action: leaveInInbox

I can view that all the forwardingaddresses are set, and are accepted :
C:\GAMADV-XTD3>gam user gb...@rice.edu show forwardingaddresses
User: gb...@rice.edu, Show 4 Forwarding Addresses
  Forwarding Address: ac...@rice.edu, Verification Status: accepted (1/4)
  Forwarding Address: ar...@rice.edu, Verification Status: accepted (2/4)
  Forwarding Address: nm...@rice.edu, Verification Status: accepted (3/4)
  Forwarding Address: patt...@rice.edu, Verification Status: accepted (4/4)


But when I try to view what forwards are set, it only shows me the last forwarding address that I enabled.
C:\GAMADV-XTD3>gam user gb30 show forwards
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: ar...@rice.edu, Action: leaveInInbox

But the 4 addresses are all still defined and accepted.
If I do the command
gam user user1 forward on us...@domain.com keep

again or again with a different address of the 4 addresses, it always shows me just the last address I used for the "forward on" cmd.

I am not sure if ALL 4 addresses are actually enabled, and not just the last one.  Is there a way to tell for sure?? 
(I could send a test and dig through the maillogs,
but I would like to know if GAM can tell me for sure)

I also tried it using a .csv file for input, like this previous conversation:
  https://groups.google.com/g/google-apps-manager/c/mE2kwvPwdeA/m/ITxPHQEYAQAJ

C:\GAMADV-XTD3>gam csv .\gam_Add_Forwards.csv gam user ~user add forwardingaddress ~forwardto
2023-01-12T21:56:07.740+00:00,0/4,Using 4 processes...
User: gb...@rice.edu, Add 1 Forwarding Address
User: gb...@rice.edu, Add 1 Forwarding Address
User: gb...@rice.edu, Add 1 Forwarding Address
User: gb...@rice.edu, Add 1 Forwarding Address
  User: gb...@rice.edu, Forwarding Address: nm...@rice.edu, Add Failed: Requested entity already exists
  User: gb...@rice.edu, Forwarding Address: ar...@rice.edu, Add Failed: Requested entity already exists
  User: gb...@rice.edu, Forwarding Address: ac...@rice.edu, Add Failed: Requested entity already exists
  User: gb...@rice.edu, Forwarding Address: patt...@rice.edu, Add Failed: Requested entity already exists

C:\GAMADV-XTD3>gam csv .\gam_Add_Forwards.csv gam user ~user forward true keep ~forwardto
2023-01-12T21:57:09.668+00:00,0/4,Using 4 processes...
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: ar...@rice.edu, Action: leaveInInbox
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: patt...@rice.edu, Action: leaveInInbox
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: nm...@rice.edu, Action: leaveInInbox
User: gb...@rice.edu, Forward Enabled: True, Forwarding Address: ac...@rice.edu, Action: leaveInInbox

Hoping it might change the results, but it still only reports the last address that I enabled.


C:\GAMADV-XTD3>gam version
GAMADV-XTD3 6.25.20 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.s...@gmail.com>
Python 3.10.6 64-bit final
Windows 10 10.0.19044 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GamConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:


--
Susan K. McClure
Sr. Systems Administrator
Office of Information Technology
Rice University
(o) 713.348.4852
(e) smcc...@rice.edu

Ross Scroggs

unread,
Jan 12, 2023, 5:40:19 PM1/12/23
to google-ap...@googlegroups.com
Susan,

There is only one active forward allowed; you choose one from the defined forwarding addresses.
If you want to forward to all four people, you have to make a group, add the four members and then forward to the group.

Send me a Meet/Zoom invitation if you'd like to discuss.

Ross

--
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/0b32087c-216f-7206-d0be-281b0536e2ed%40rice.edu.


--

Susan McClure

unread,
Jan 13, 2023, 2:01:51 PM1/13/23
to GAM for Google Workspace
Ross,
Well that's a bummer!  Thanks for the info, I will handle it that way then. 
Susan

Chris River

unread,
Jan 16, 2023, 8:45:04 AM1/16/23
to GAM for Google Workspace
You can have multiple filters, each of which forward to different addresses.

So, for example: gam user gb30 create filter query "in:anywhere" forward forw...@domain.com. Create 1 filter for each forward.

However, creating a recipient address map via the admin console (https://support.google.com/a/answer/4524505) would likely be better, so you can see (and maintain) the forwards that are happening directly in the admin console rather than having to login to the account or check via API.
Reply all
Reply to author
Forward
0 new messages