Results 1 to 8 of 8

Thread: Zimbra Data Source

  1. #1
    bonoboslr's Avatar
    bonoboslr is offline Special Member
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    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,

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Does this help ? batch zmprov cds

  3. #3
    bonoboslr's Avatar
    bonoboslr is offline Special Member
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    Default

    Yes it does. Tremendous - thanks!

  4. #4
    bonoboslr's Avatar
    bonoboslr is offline Special Member
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    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)

  5. #5
    bonoboslr's Avatar
    bonoboslr is offline Special Member
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    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....

  6. #6
    MMedinaBR is offline Junior Member
    Join Date
    Dec 2008
    Location
    Brazil/SP
    Posts
    8
    Rep Power
    6

    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.

  7. #7
    bonoboslr's Avatar
    bonoboslr is offline Special Member
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    Default

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

  8. #8
    MMedinaBR is offline Junior Member
    Join Date
    Dec 2008
    Location
    Brazil/SP
    Posts
    8
    Rep Power
    6

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  5. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •