Announcement

Collapse
No announcement yet.

can´t see imap folder | can´t create folder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • can´t see imap folder | can´t create folder

    Hi,
    after installing the ox-server on Ubuntu8.04, allmost everything is working, except one point:
    I´ve created an user with the create-user command, also including the parameter:
    --imaplogin testuser --imapserver imap.server.de --smtpserver smtp.server.de
    [sure, i inserted here the correct domain-name]

    after login into ox, I can see my mails in the inbox, but I can´t see the folder-structure, which is on the ext.imap-server.
    I also get 2 errors:
    1) the message of mail-filter --> I switched the mailfilter.properties off
    2) parse error --> no idea about that:

    below the open-xchange.log.0:

    Mar 26, 2009 3:11:13 PM com.openexchange.sessiond.impl.SessionHandler addSession
    INFO: Session created. ID: ea24aba7432e480597a30bbc1823f787, Context: 1, User: 3
    Mar 26, 2009 3:11:17 PM com.openexchange.ajax.Folder actionGetSubfolders
    SEVERE: MSG-1023 Category=8 Message=Messaging error: parse error in STATUS exceptionID=1037489850-70
    MSG-1023 Category=8 Message=Messaging error: parse error in STATUS exceptionID=1037489850-70
    at com.openexchange.mail.mime.MIMEMailException.handl eMessagingException(MIMEMailException.java:438)
    at com.openexchange.mail.mime.MIMEMailException.handl eMessagingException(MIMEMailException.java:296)
    at com.openexchange.imap.converters.IMAPFolderConvert er.convertFolder(IMAPFolderConverter.java:379)
    at com.openexchange.imap.IMAPFolderStorage.getSubfold ers(IMAPFolderStorage.java:266)
    at com.openexchange.mail.MailServletInterfaceImpl.get ChildFolders(MailServletInterfaceImpl.java:358)
    at com.openexchange.ajax.Folder.actionGetSubfolders(F older.java:844)
    at com.openexchange.ajax.Folder.actionGetSubfolders(F older.java:358)
    at com.openexchange.ajax.Folder.actionGet(Folder.java :225)
    at com.openexchange.ajax.Folder.doGet(Folder.java:178 )
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:596)
    at com.openexchange.ajax.AJAXServlet.service(AJAXServ let.java:380)
    at com.openexchange.ajax.SessionServlet.service(Sessi onServlet.java:149)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at com.openexchange.ajp13.najp.AJPv13RequestHandlerIm pl.doServletService(AJPv13RequestHandlerImpl.java: 429)
    at com.openexchange.ajp13.AJPv13Request.response(AJPv 13Request.java:128)
    at com.openexchange.ajp13.najp.AJPv13RequestHandlerIm pl.createResponse(AJPv13RequestHandlerImpl.java:28 2)
    at com.openexchange.ajp13.najp.AJPv13ConnectionImpl.c reateResponse(AJPv13ConnectionImpl.java:189)
    at com.openexchange.ajp13.najp.AJPv13Task.run(AJPv13T ask.java:300)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:417)
    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.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)
    Caused by: javax.mail.MessagingException: parse error in STATUS;
    nested exception is:
    com.sun.mail.iap.ParsingException: parse error in STATUS
    at com.sun.mail.imap.IMAPFolder.getMessageCount(IMAPF older.java:1206)
    at com.openexchange.imap.converters.IMAPFolderConvert er.convertFolder(IMAPFolderConverter.java:340)
    ... 21 more
    Caused by: com.sun.mail.iap.ParsingException: parse error in STATUS
    at com.sun.mail.imap.protocol.Status.<init>(Status.ja va:62)
    at com.sun.mail.imap.protocol.IMAPProtocol.status(IMA PProtocol.java:726)
    at com.sun.mail.imap.IMAPFolder.getStatus(IMAPFolder. java:1359)
    at com.sun.mail.imap.IMAPFolder.getMessageCount(IMAPF older.java:1185)
    ... 22 more


    Any idea?

    thanx mardoc

  • #2
    Hi Mardoc,

    what IMAP Server are you using? mbox or maildir configuration?

    Greetings

    Comment


    • #3
      Hi Martin,
      i only know the imap server and the ports.
      the server is hosted by strato.de

      let´s give it a try. what has to be changed by those two types?

      -mardoc

      Comment


      • #4
        Hi,

        well i guess the handling of the strato imap server needs to be debugged in detail, i'll take a look at it. I don't believe strato uses mbox, but if you want to enable mbox support please set:

        /opt/open-xchange/etc/groupware/imap.properties:

        com.openexchange.imap.mboxEnabled=true

        Greetings

        Comment


        • #5
          Hi,

          i think we found the problem, it is caused by an non-rfc conform response to the STATUS command. RFC 3501 says:

          7.2.4 STATUS Response
          Contents: name
          status parenthesized list

          The STATUS response occurs as a result of an STATUS command. It
          returns the mailbox name that matches the STATUS specification and
          the requested mailbox status information.

          Example: S: * STATUS blurdybloop (MESSAGES 231 UIDNEXT 44292)

          We looked at the mail api code and the class com.sun.mail.imap.protocol.Status.java explicitly looks for a "(" as the beginning of all STATUS information. Obviously, the strato imap server does not use a "(".

          For further investigation and a possible fix, we need the exact response to the STATUS command. If possible, please use telnet to find out what the server responds:

          telnet imap.strato.de 143
          01 LOGIN user password
          02 STATUS INBOX (UIDNEXT MESSAGES)
          -> please post this response

          Greetings

          Comment


          • #6
            Hi,
            here the response:

            01 OK LOGIN completed [5]
            02 STATUS INBOX (UIDNEXT MESSAGES)
            * STATUS INBOX (MESSAGES 7 UIDNEXT 59)
            02 OK STATUS completed

            -mardoc

            Comment


            • #7
              Mhh okay, so it seems the response on a simple STATUS request is correct. Could you please sniff the network traffic from OX<->Strato on Port 143 when logging in? Don't forget to wipe your user/password before posting

              Thanks again

              Comment


              • #8
                Hi,
                I guess, the issue is somewhere else located:
                I did a try with zimbra, where the imap-account is created with:
                imap-server: imap.strato.de
                user: name@domain.de
                passwd: passwd of account

                I could see all my mails in inbox but also the folders.

                in case of OX, I guess the issue is, because the login-name in OX is not the login-name in imap-server. I tried to change my user to have the login-name equal to the user-name of imap-server, which is the mail-address. it was possible to create this user via CLI, but I couldn´t login into OX (--> msg: user or password is wrong).

                I guess, the issue is located somewhere:
                -u username & --imaplogin name@domain.de

                -mardoc

                Comment


                • #9
                  Hi,

                  --imaplogin is the username we send to the IMAP Server and is exactly used for the problem you describe. The OX username does not need to be equal to the IMAP user, only the password needs to be equal. And the STATUS command is only triggered _after_ the user has logged in. It could be that Zimbra has added some workaround that OX does not yet have.

                  Comment


                  • #10
                    hi mardoc,

                    did u solve ur problem?

                    i am having exactly the same problem.

                    greetings

                    kniggisiggi

                    Comment

                    Working...
                    X