| 1 |
Red Hat Enterprise Linux |
| 2 |
************************ |
| 3 |
|
| 4 |
Red Hat Enterprise Linux ships Cyrus IMAP packages as part of the base |
| 5 |
operating system repositories. If the base operating system has a |
| 6 |
subscription activated, then Red Hat, Inc. supports the package |
| 7 |
through the usual support channels. |
| 8 |
|
| 9 |
Currently supported versions of Red Hat Enterprise Linux include Cyrus |
| 10 |
IMAP packages in the repositories configured on a stock system: |
| 11 |
|
| 12 |
* Cyrus IMAP 2.3.7 for Red Hat Enterprise Linux 5 |
| 13 |
|
| 14 |
* Cyrus IMAP 2.3.16 for Red Hat Enterprise Linux 6 |
| 15 |
|
| 16 |
* Cyrus IMAP 2.4.17 for Red Hat Enterprise Linux 7 |
| 17 |
|
| 18 |
Note: |
| 19 |
|
| 20 |
The Cyrus project does not support running any versions of the Cyrus |
| 21 |
IMAP software older than the version of the software shipped with |
| 22 |
the operating system itself. |
| 23 |
|
| 24 |
To install the version of Cyrus IMAP that comes with the operating |
| 25 |
system, issue the following command: |
| 26 |
|
| 27 |
# **yum install cyrus-imapd cyrus-sasl cyrus-sasl-plain** |
| 28 |
|
| 29 |
Next, set a password for the default administrative user "cyrus": |
| 30 |
|
| 31 |
# **passwd cyrus** |
| 32 |
Changing password for user cyrus. |
| 33 |
New password: |
| 34 |
Retype new password: |
| 35 |
passwd: all authentication tokens updated successfully. |
| 36 |
|
| 37 |
Start and configure to start when the system boots, the *saslauthd* |
| 38 |
service: |
| 39 |
|
| 40 |
# **service saslauthd start** |
| 41 |
Starting saslauthd: [ OK ] |
| 42 |
# **chkconfig saslauthd on** |
| 43 |
|
| 44 |
You should at this moment be able to authenticate against *saslauthd*: |
| 45 |
|
| 46 |
# **testsaslauthd -u cyrus -p YOUR-PASSWORD** |
| 47 |
|
| 48 |
You should get an "0: OK "Success."" message. |
| 49 |
|
| 50 |
Start the service, and ensure the service starts up when the system |
| 51 |
boots: |
| 52 |
|
| 53 |
# **service cyrus-imapd start** |
| 54 |
# **chkconfig cyrus-imapd on** |
| 55 |
|
| 56 |
You should now be able to login as the "cyrus" user, which is |
| 57 |
configured by default as an administrator for Cyrus IMAP: |
| 58 |
|
| 59 |
# **imtest -t "" -u cyrus -a cyrus localhost** |
| 60 |
S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS LOGINDISABLED COMPRESS=DEFLATE] d5ec35c1414a Cyrus IMAP v2.3.16-Fedora-RPM-2.3.16-13.el6_6 server ready |
| 61 |
C: S01 STARTTLS |
| 62 |
S: S01 OK Begin TLS negotiation now |
| 63 |
verify error:num=18:self signed certificate |
| 64 |
TLS connection established: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits) |
| 65 |
C: C01 CAPABILITY |
| 66 |
S: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR COMPRESS=DEFLATE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE SCAN IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH |
| 67 |
S: C01 OK Completed |
| 68 |
Please enter your password: |
| 69 |
C: A01 AUTHENTICATE PLAIN ************ |
| 70 |
S: A01 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED COMPRESS=DEFLATE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE SCAN IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH] Success (tls protection) |
| 71 |
Authenticated. |
| 72 |
Security strength factor: 256 |
| 73 |
. LIST "" "*" |
| 74 |
. OK Completed (0.000 secs 1 calls) |
| 75 |
C: Q01 LOGOUT |
| 76 |
* BYE LOGOUT received |
| 77 |
Q01 OK Completed |
| 78 |
Connection closed. |
| 79 |
|
| 80 |
Next, continue with Configuring the MTA. |