Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-2008, 03:05 AM
Special Member
 
Posts: 133
Default 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,
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 03:08 AM
Moderator
 
Posts: 7,928
Default

Does this help ? batch zmprov cds
__________________
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 03:11 AM
Special Member
 
Posts: 133
Default

Yes it does. Tremendous - thanks!
Reply With Quote
  #4 (permalink)  
Old 11-03-2008, 03:19 AM
Special Member
 
Posts: 133
Default

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 ArgitemId, 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)
Reply With Quote
  #5 (permalink)  
Old 11-03-2008, 04:51 AM
Special Member
 
Posts: 133
Default

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....
Reply With Quote
  #6 (permalink)  
Old 03-22-2009, 04:33 PM
Junior Member
 
Posts: 5
Default

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

Last edited by MMedinaBR; 03-22-2009 at 04:47 PM..
Reply With Quote
  #7 (permalink)  
Old 03-22-2009, 11:40 PM
Special Member
 
Posts: 133
Default

I used folderId set to 2. This means that the mail once retrieved from the DS is put into the Inbox.
__________________
:wq
bonobo

http://bonoboslr.wordpress.com/
Reply With Quote
  #8 (permalink)  
Old 03-23-2009, 04:11 AM
Junior Member
 
Posts: 5
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.