Email Settings API (Forward)

85 views
Skip to first unread message

Juan Carlos Román

unread,
Mar 5, 2012, 8:11:37 AM3/5/12
to google-app...@googlegroups.com
Hi,

I getting a error triying to add a forwarding rule througth the Email Settings API (java), from primary domain email address to secondary domain email address. e.g. same...@primarydomain.org to same...@secondarydomain.org

The API returns this error erratically (some times forwarding is applied):
<code>
EntityNameNotValid(1303): same...@secondarydomain.org
        at com.google.gdata.data.appsforyourdomain.AppsForYourDomainException.narrow(AppsForYourDomainException.java:133)
        at com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.update(AppsForYourDomainService.java:174)
        at sample.appsforyourdomain.gmailsettings.GmailSettingsService.updateSettings(GmailSettingsService.java:149)
        at sample.appsforyourdomain.gmailsettings.GmailSettingsService.changeForwarding(GmailSettingsService.java:438)
</code>

Any suggestion please ?

Note: same...@secondarydomain.org doesn't have any forbbiden character in the username, and Google Apps version is for Education. :S

Thanks

Claudio Cherubino

unread,
Mar 5, 2012, 12:23:08 PM3/5/12
to google-app...@googlegroups.com
Hi Juan Carlos,

Is the destination email address a valid value according to the following criteria?

1. It belongs to the same domain,
2. It belongs to a subdomain of the same domain, or
3. It belongs to a domain alias configured as part of the same Google Apps account.

Can you reproduce the error systematically with a single destination email address so that we can investigate it?
Thanks

Claudio

Eforcers S.A.
www.eforcers.com
Cra. 12 No 90-20 Of. 301 • Bogotá, Colombia 
PBX [+571] 622 8320 • FAX [+571] 622 8275
in...@eforcers.com

"La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de Eforcers S.A., pues su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien la envió y borre este material de su computador. Eforcers S.A. no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma."

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/Y7ttOFbpWRcJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Eforcers S.A.
www.eforcers.com
Cra. 12 No 90-20 Of. 301 • Bogotá, Colombia 
PBX [+571] 622 8320 • FAX [+571] 622 8275
in...@eforcers.com

"La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de Eforcers S.A., pues su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien la envió y borre este material de su computador. Eforcers S.A. no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma."

Juan Carlos Román

unread,
Mar 5, 2012, 1:48:52 PM3/5/12
to google-app...@googlegroups.com
Hi Claudio,

Yes, the destination email address belongs to a subdomain of the same domain.

Unfortunatelly I can't reproduce the error with our test Google Apps domain... 

But I have this stacktrace with an specific account that fails (the costumer will kill me :P)

2012-01-12 06:49:48,532 ERROR [com.eforcers.client.AsyncAccountFix] - Error applying forwarding ( enable: true, fwd: m.j...@cgiar.org, action: ARCHIVE ) to user m.j...@cgxchange.org
2012-01-12 06:49:48,532 DEBUG [com.eforcers.client.AsyncAccountFix] -
EntityNameNotValid(1303): m.j...@cgiar.org
        at com.google.gdata.data.appsforyourdomain.AppsForYourDomainException.narrow(AppsForYourDomainException.java:133)
        at com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.update(AppsForYourDomainService.java:174)
        at sample.appsforyourdomain.gmailsettings.GmailSettingsService.updateSettings(GmailSettingsService.java:149)
        at sample.appsforyourdomain.gmailsettings.GmailSettingsService.changeForwarding(GmailSettingsService.java:438)
        at com.eforcers.client.AsyncAccountFix.addEmailForward(AsyncAccountFix.java:348)
        at com.eforcers.client.AsyncAccountFix.run(AsyncAccountFix.java:94)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Thanks a lot...

To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Eforcers S.A.
www.eforcers.com
Cra. 12 No 90-20 Of. 301 • Bogotá, Colombia 
PBX [+571] 622 8320 • FAX [+571] 622 8275
in...@eforcers.com

"La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de Eforcers S.A., pues su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien la envió y borre este material de su computador. Eforcers S.A. no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma."

Claudio Cherubino

unread,
Mar 5, 2012, 2:18:33 PM3/5/12
to google-app...@googlegroups.com
Hi Juan Carlos,

Your call is failing because m.j...@cgiar.org and m.j...@cgxchange.org belong to the same user account. 
Basically, the former is in alias for the latter, so it is as if you already have forwarding setup between them.

Claudio

To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/vWPGyYtoaHcJ.

To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.

Juan Carlos Román

unread,
Mar 16, 2012, 8:28:01 AM3/16/12
to google-app...@googlegroups.com
Hi Claudio,

I think there are a misunderstand, cgxchange.org domain not is a domain alias of cgiar.org. So, as mentioned before some forwarding rules are apply successfully for users from @cgiar.org to @cgxchange.org secondary domain.

Any clues or something else to do ? thanks...

Regards,
Claudio

To unsubscribe from this group, send email to google-apps-mgmt-apis+unsubscri...@googlegroups.com.

Claudio Cherubino

unread,
Mar 16, 2012, 8:53:07 AM3/16/12
to google-app...@googlegroups.com
Hi Juan Carlos,

I didn't say that one domain is an alias for the other but more specifically, m.j...@cgiar.org is an alias for m.j...@cgxchange.org.
This is not same for all other users but it is true for this specific account.

Claudio

To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/1aF4bf17NoUJ.

To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.

Alexandre Jacquet

unread,
Mar 16, 2012, 9:01:53 AM3/16/12
to google-app...@googlegroups.com
Hello Guys,

Isn't a restriction fro Email Settings API forward method allow only forward inside the domain, all traffic routing outside should be validated with the validation code provided in Gmail Settings panel?




                                                                                           

Alexandre Jacquet

Google Apps Deployment Specialst 
São Paulo | SP | Brasil
Tel.: 55 11 8064 6882

Claudio Cherubino

unread,
Mar 16, 2012, 9:11:51 AM3/16/12
to google-app...@googlegroups.com
That is true unless the other domain is an alias or the destination email address has been already manually verified.

Claudio
Reply all
Reply to author
Forward
0 new messages