Alternative for port 7071 for admin actions like importing contacts

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
ZimbraInd
Posts: 1
Joined: Wed Sep 21, 2022 5:50 pm

Alternative for port 7071 for admin actions like importing contacts

Post by ZimbraInd »

Hi,

I'm very new to Zimbra and have been working on creating ways for applications to import mails and contacts to user mailboxes.

For the same i explored the usage of rest apis, and was able to as an admin import mails (.msg files) into user mailbox. Used the endpoint: https://myzimbraserver.com:7071/home/ad ... m/contacts
However I don't want to exposing the port to 7071.

I also see that I can use the endpoint: https://myzimbraserver.com/home/zimbrau ... rset=UTF-8
This uses user credentials.

Is there any other similar way to import mails/contacts into zimbra user mailboxes which can be done via admin creds? Or is it the case that for using admin creds port 7071 is the only option?

Requesting the guidance of the community
User avatar
barrydegraaff
Zimbra Employee
Zimbra Employee
Posts: 242
Joined: Tue Jun 17, 2014 3:31 am
Contact:

Re: Alternative for port 7071 for admin actions like importing contacts

Post by barrydegraaff »

You can use Pre Authentication to get an auth token, then you can do the request to the user's mailbox without having their credentials.
https://wiki.zimbra.com/wiki/Preauth
--
Barry de Graaff
Email: barry.degraaff [at] synacor [dot] com
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/ and the
Zimlet Gallery https://gallery.zetalliance.org/extend/
Post Reply