| 1 |
Fedora |
| 2 |
****** |
| 3 |
|
| 4 |
Fedora is a Linux distribution that does not generally enforce a |
| 5 |
policy of not providing you with upgrades of software during the life- |
| 6 |
cycle of any of the distribution's released versions, or what could |
| 7 |
otherwise be expected to constitute "stable". |
| 8 |
|
| 9 |
While package maintainers tend to want to prevent unpleasant surprises |
| 10 |
from being deployed to your Fedora system, and therefore generally |
| 11 |
ship only versions of one series to any one given released |
| 12 |
distribution version, the Cyrus project cannot guarantee you will not |
| 13 |
receive an upgrade at some point, and cannot guarantee this upgrade |
| 14 |
will run smoothly -- even though we do our best. |
| 15 |
|
| 16 |
To install the version of Cyrus IMAP that comes with the operating |
| 17 |
system, issue the following command for Fedora 18 or below: |
| 18 |
|
| 19 |
# **yum install cyrus-imapd cyrus-sasl cyrus-sasl-plain** |
| 20 |
|
| 21 |
or for Fedora 19 and above: |
| 22 |
|
| 23 |
# **dnf install cyrus-imapd cyrus-sasl cyrus-sasl-plain** |
| 24 |
|
| 25 |
Next, set a password for the default administrative user "cyrus": |
| 26 |
|
| 27 |
# **passwd cyrus** |
| 28 |
Changing password for user cyrus. |
| 29 |
New password: |
| 30 |
Retype new password: |
| 31 |
passwd: all authentication tokens updated successfully. |
| 32 |
|
| 33 |
Start and configure to start when the system boots, the *saslauthd* |
| 34 |
service. For Fedora 14 and below: |
| 35 |
|
| 36 |
# **service saslauthd start** |
| 37 |
Starting saslauthd: [ OK ] |
| 38 |
# **chkconfig saslauthd on** |
| 39 |
|
| 40 |
or for Fedora 15 and above: |
| 41 |
|
| 42 |
# **systemctl start saslauthd** |
| 43 |
# **systemctl enable saslauthd** |
| 44 |
|
| 45 |
You should at this moment be able to authenticate against *saslauthd*: |
| 46 |
|
| 47 |
# **testsaslauthd -u cyrus -p YOUR-PASSWORD** |
| 48 |
|
| 49 |
You should get an "0: OK "Success."" message. |
| 50 |
|
| 51 |
Start the service, and ensure the service starts up when the system |
| 52 |
boots. For Fedora 14 and below: |
| 53 |
|
| 54 |
# **service cyrus-imapd start** |
| 55 |
# **chkconfig cyrus-imapd on** |
| 56 |
|
| 57 |
or for Fedora 15 and above: |
| 58 |
|
| 59 |
# **systemctl start cyrus-imapd** |
| 60 |
# **systemctl enable cyrus-imapd** |
| 61 |
|
| 62 |
You should now be able to login as the "cyrus" user, which is |
| 63 |
configured by default as an administrator for Cyrus IMAP: |
| 64 |
|
| 65 |
# **imtest -t "" -u cyrus -a cyrus localhost** |
| 66 |
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 |
| 67 |
C: S01 STARTTLS |
| 68 |
S: S01 OK Begin TLS negotiation now |
| 69 |
verify error:num=18:self signed certificate |
| 70 |
TLS connection established: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits) |
| 71 |
C: C01 CAPABILITY |
| 72 |
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 |
| 73 |
S: C01 OK Completed |
| 74 |
Please enter your password: |
| 75 |
C: A01 AUTHENTICATE PLAIN ************ |
| 76 |
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) |
| 77 |
Authenticated. |
| 78 |
Security strength factor: 256 |
| 79 |
. LIST "" "*" |
| 80 |
. OK Completed (0.000 secs 1 calls) |
| 81 |
C: Q01 LOGOUT |
| 82 |
* BYE LOGOUT received |
| 83 |
Q01 OK Completed |
| 84 |
Connection closed. |
| 85 |
|
| 86 |
Next, continue with Configuring the MTA. |