Version 2

    How to enable IMAP in JBoss Mail Server 1.0M5-pre1

     

    versions: 1.0M5-pre1

     

    Overview

     

    In JBoss Mail Server 1.0M5-pre1, IMAP is deployed with its configuration "commented out".  This is done

    purposefully as the IMAP offering is considered alpha state in the M5 release cycle.  However, the developers

    of the server are using it as their personal IMAP servers so it may be stable enough for your personal use.

     

    Uncommenting

     

    Find these blocks:

     

    <!-- if(IMAP_ENABLED.equals(true))
      <mbean code="org.jboss.mail.imap4.IMAP4Protocol"
        name="jboss.mail:type=Protocol,name=IMAP4Protocol">
        <depends>jboss.mail:type=MailServices,name=MailListener</depends>
        <depends optional-attribute-name="MailboxManager"
            proxy-type="attribute">jboss.mail:type=MailServices,name=MailboxManager</depends>
            <depends optional-attribute-name="UserRepository"
                             proxy-type="attribute">jboss.mail:type=MailServices,name=UserRepository,uimanageable=true</depends>
            <attribute name="Servername">localhost.localdomain</attribute>
      </mbean>
    -->
    
    <!--if(IMAP_ENABLED.equals(true))
      <mbean code="org.jboss.mail.Server"
        name="jboss.mail:type=Service,name=IMAP">
        <depends>jboss.mail:type=Protocol,name=IMAP4Protocol</depends>
        <depends optional-attribute-name="ThreadPool"
                 proxy-type="attribute">jboss.mail:type=ThreadPool,name=ThreadPoolSMTP</depends>
         <attribute name="Protocol">jboss.mail:type=Protocol,name=IMAP4Protocol</attribute>
         <attribute name="Port">${IMAP_PORT}</attribute>
         <attribute name="Address">0.0.0.0</attribute>
         <attribute name="Timeout">30000</attribute>
         <attribute name="Life">120000</attribute>
      </mbean>
    -->
    
    
    

     

    Uncomment them until they look like this:

     

      <mbean code="org.jboss.mail.imap4.IMAP4Protocol"
        name="jboss.mail:type=Protocol,name=IMAP4Protocol">
        <depends>jboss.mail:type=MailServices,name=MailListener</depends>
        <depends optional-attribute-name="MailboxManager"
            proxy-type="attribute">jboss.mail:type=MailServices,name=MailboxManager</depends>
            <depends optional-attribute-name="UserRepository"
                             proxy-type="attribute">jboss.mail:type=MailServices,name=UserRepository,uimanageable=true</depends>
            <attribute name="Servername">localhost.localdomain</attribute>
      </mbean>
    
      <mbean code="org.jboss.mail.Server"
        name="jboss.mail:type=Service,name=IMAP">
        <depends>jboss.mail:type=Protocol,name=IMAP4Protocol</depends>
        <depends optional-attribute-name="ThreadPool"
                 proxy-type="attribute">jboss.mail:type=ThreadPool,name=ThreadPoolSMTP</depends>
         <attribute name="Protocol">jboss.mail:type=Protocol,name=IMAP4Protocol</attribute>
         <attribute name="Port">${IMAP_PORT}</attribute>
         <attribute name="Address">0.0.0.0</attribute>
         <attribute name="Timeout">30000</attribute>
         <attribute name="Life">120000</attribute>
      </mbean>