-
Zimbra Data Source
I need to create an external data source account using the zmprov cds command, but there is very little documentation on how to do this.
I seemed to have hacked my way to the point where I cannot run the command to create the account without the zimbraDataSourceFolderId attribute having a value. I would like the external account to deliver to the Inbox and not to a seperate folder so does anyone have any idea what this folder ID should be?
Many thanks,
-
-
Yes it does. Tremendous - thanks!
-
OK Setting it 'null' allows the zmprov command to execute, but then not actually work. It sets it as '-1' and looking from the logs - borks.
2008-11-03 13:16:39,782 INFO [ScheduledTask-1] [name=scottr@domain;mid=1;ds=OLD MAIL;] datasource - Importing data.
2008-11-03 13:16:39,812 WARN [ScheduledTask-1] [name=scottr@domain;mid=1;ds=OLD MAIL;] datasource - Scheduled DataSource import failed.
com.zimbra.cs.mailbox.MailServiceException$NoSuchI temException: no such folder id: -1
ExceptionId:ScheduledTask-1:1225710999810:48a387c303d21a76
Code:mail.NO_SUCH_FOLDER Arg:(itemId, IID, "-1")
at com.zimbra.cs.mailbox.MailServiceException.NO_SUCH _FOLDER(MailServiceException.java:180)
at com.zimbra.cs.mailbox.MailItem.noSuchItem(MailItem .java:1178)
at com.zimbra.cs.mailbox.Mailbox.getItemById(Mailbox. java:1962)
at com.zimbra.cs.mailbox.Mailbox.getItemById(Mailbox. java:1946)
at com.zimbra.cs.mailbox.Mailbox.getFolderById(Mailbo x.java:2746)
at com.zimbra.cs.datasource.ImapImport.importData(Ima pImport.java:165)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:154)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:119)
at com.zimbra.cs.datasource.DataSourceTask.call(DataS ourceTask.java:78)
at com.zimbra.cs.datasource.DataSourceTask.call(DataS ourceTask.java:30)
at com.zimbra.common.util.TaskScheduler$TaskRunner.ca ll(TaskScheduler.java:98)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:123)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:168)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
-
ok. My problem now is that I do not know what the folderId is for the Inbox folder. How can I find this out for each user? I want to be able to create an external account for each user and have the new messages placed in the inbox and not in a seperate folder. The zimbraDataSourceFolderId seems key to this....
-
Hi bonoboslr , what do you make to resolv this problem? About errors generated in log... Tks
I have this message error in my log:
...2009-03-22 17:41:24,000 WARN [ScheduledTask-1] [name=usuario@exemple.com.br;mid=3;ds=Locaweb;] datasource - Scheduled DataSource import failed.
com.zimbra.common.service.ServiceException: system failure: Unable to connect to mail store: DataSource: { id=417dc4ac-366a-4861-9d03-d947d8d3fdbe, type=pop3
, isEnabled=true, name=Locaweb, host=pop3.texcel.com.br, port=110, connectionType=cleartext, username=usuario@example.com.br, folderId=-1 }
ExceptionId:ScheduledTask-1:1237754483999:54349915a13593bb
-
I used folderId set to 2. This means that the mail once retrieved from the DS is put into the Inbox.
-
Tks bonoboslr by your reply. I had already made this change and work, now i receive pop3 messages.
To clarify this solution for other persons, this is a correct way to create a Data Source:
zmprov createDataSource usuario@example.com.br pop3 'Pop3External' zimbraDataSourceHost 'pop3.example.com.br' zimbraDataSourcePort 110 zimbraDataSourceEnabled TRUE zimbraDataSourceUsername 'usuario@example.com.br' zimbraDataSourcePassword 'password' zimbraDataSourceConnectionType 'cleartext' zimbraDataSourceLeaveOnServer TRUE zimbraDataSourceFolderId '2'
Let's check the account level:
zmprov ga usuario@example.com.br | grep zimbraDataSourcePollingInterval
Try setting the account level:
zmprov mds usuario@example.com.br Pop3External zimbraDataSourcePollingInterval 5m
Try to set FolderID=2
zmprov mds usuario@example.com.br Pop3External zimbraDataSourceFolderId '2'
To change any value in DataSource, you must specify a name of External Account created, in my example = Pop3External.
Tks for help.