Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Mail Server > Issue <<  43 of 100 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4222
Last update: 09-30-05
Issue:
How do I install Cyrus-IMAP from a source RPM?
Resolution:
Download the source RPM from http://www.invoca.ch/pub/packages/cyrus-imapd/.
  1. As the root user, download the source RPM. In the example below, we create a download directory.

     
    # mkdir /root/downloads
    # cd /root/downloads/
    # wget http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.2.3-8.src.rpm
          


  2. Build the RPM from source:

     
    # rpmbuild --rebuild cyrus-imapd-2.2.3-8.src.rpm
          


  3. Enable saslauth:
    # chkconfig saslauthd on
    # service saslauthd start
    
  4. Install the RPMS:

     
    # cd /usr/src/redhat/RPMS/i386/
    # rpm -Uvh *
          


    Note: I simply installed/upgraded all the RPMs that were generated by the rpmbuild command above. You may have additional RPMs in this directory not created by the above rpmbuild command. So, if you have used the rpmbuild command to build other RPMs then be sure to either move them out of this directory or explicitly specify only Cyrus RPMs.

  5. Create a user: jdoe (must be an existing system user WITH A PASSWORD by default)

     
    # saslpasswd -c jdoe
     <enter password twice>
          


  6. Create an admin user: cyrusadmin (must be an existing system user WITH A PASSWORD by default)

     
    # saslpasswd -c cyrusadmin
     <enter password twice>
          


    Note: The admin user(s) should not be used to check e-mail. It might work for you, but weird things happened for me.
  7. Add your admin user to the admins list (the default cyrus user did not work for me). In /etc/imapd.conf change:

     
    admins: cyrus
        to
    admins: cyrusadmin
          


  8. Setup a mailbox for user jdoe:

     
    # cyradm -u jdoe localhost
     <enter password twice>
     cyradm> cm user.jdoe
     cyradm> exit
          


  9. Tell Postfix to deliver mail to Cyrus-IMAP. In /etc/postfix/main.cf change:

     
    mailbox_transport = cyrus
        to
    mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
          


  10. Start Cyrus-IMAP:
    # chkconfig cyrus-imapd on
    # service cyrus-imapd start
    
  11. Check for a running server. Look for IMAP(S) and POP3(3):
    # netstat -tan
    
Hopefully, you can now login to the IMAP server with your favorite IMAP client on both POP3(S) & IMAP(S)

Optionally, you can disable POP(S) and IMAP in /etc/cyrus.conf. To do this comment out the lines beginning with IMAP, POP3, and POP3S to disable those services.

Test the Postfix configuration by sending mail to jdoe@your.domain


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Mail Server > Issue <<   43  of  100  >>