View Single Post
  #4 (permalink)  
Old 10-23-2009, 12:34 PM
ArcaneMagus ArcaneMagus is offline
Moderator
 
Posts: 1,147
Default

Hmm well here is I believe what you are looking for:
Code:
zmprov createDataSource(cds) {name@domain} {ds-type} {ds-name} zimbraDataSourceEnabled {TRUE|FALSE} zimbraDataSourceFolderId {folder-id} [attr1 value1 [attr2 value2...]]
But I can't find any documentation on what the proper syntax would be.

From creating a test external account and using getDataSources my guess for creating a gmail data source would be:
Code:
zmprov cds zimbraAccount@domain.tld imap Gmail \
zimbraDataSourceEnabled TRUE \
zimbraDataSourceFolderId <id of a folder you create for the account> \
zimbraDataSourceHost imap.gmail.com \
zimbraDataSourceConnectionType ssl \
zimbraDataSourcePort 993 \
zimbraDataSourceEmailAddress gmailAccount@gmail.com \
zimbraDataSourcePassword <hash of password md5 or sha1?>
My suggestion would be to play around with creating some test accounts in the UI and seeing what they look like with getDataSources and trying to build a createDataSource statement that will work for you.
Reply With Quote