Red Hat Enterprise Linux > Mail Server > Issue
<<
43 of 100
>>
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/.
- 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
|
- Build the RPM from source:
# rpmbuild --rebuild cyrus-imapd-2.2.3-8.src.rpm
|
-
Enable saslauth:
# chkconfig saslauthd on
# service saslauthd start
-
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.
-
Create a user: jdoe (must be an existing system user WITH A PASSWORD by default)
# saslpasswd -c jdoe
<enter password twice>
|
-
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.
-
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
|
-
Setup a mailbox for user jdoe:
# cyradm -u jdoe localhost
<enter password twice>
cyradm> cm user.jdoe
cyradm> exit
|
-
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
|
-
Start Cyrus-IMAP:
# chkconfig cyrus-imapd on
# service cyrus-imapd start
-
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
Red Hat Enterprise Linux
>
Mail Server
> Issue
<<
43
of
100
>>