Debian Codegraph @

doc/text/imap/download/installation/distributions/ubuntu.txt

raw
1 Ubuntu
2 ******
3
4 Currently supported versions of Ubuntu include Cyrus IMAP packages in
5 the repositories configured on a stock system:
6
7 * Cyrus IMAP 2.4.12-2 for Ubuntu 12.04.5 (Precise Pangolin)
8
9 * Cyrus IMAP 2.4.17+caldav~beta9-3 for Ubuntu 14.04.2 (Trusty Tahr)
10 (Stable)
11
12 * Cyrus IMAP 2.4.17+caldav~beta10-5 for Ubuntu 14.10 (Utopic Unicorn)
13
14 * Cyrus IMAP 2.4.17+caldav~beta10-17 for Ubuntu 15.04 (Vivid Vervet)
15 (Current)
16
17 * Cyrus IMAP 2.4.17+caldav~beta10-17 for Ubuntu 15.10 (Wily Werewolf)
18 (Development)
19
20 Note:
21
22 The Cyrus project does not support running any versions of the Cyrus
23 IMAP software older than the version of the software shipped with
24 the operating system itself.
25
26 To install the version of Cyrus IMAP that comes with the operating
27 system, issue the following command:
28
29 # **sudo apt-get install cyrus-imapd cyrus-clients-2.4 cyrus-doc-2.4 cyrus-admin-2.4 sasl2-bin**
30
31 Note:
32
33 The cyrus-imapd meta-package will trigger installation of the
34 following Cyrus packages:
35
36 * cyrus-common (another meta-package)
37
38 * cyrus-common-2.4
39
40 * cyrus-imapd-2.4
41
42 Note:
43
44 The following non-Cyrus packages are required, and will be installed
45 automatically as needed:
46
47 * db-util
48
49 * db-upgrade-util
50
51 * libsasl2-2
52
53 * libsasl2-modules
54
55 * libcomerr2
56
57 * [etc.]
58
59 Note:
60
61 The Debian Cyrus Team packages are split based upon functional
62 requirements of the installation. Depending upon your needs, you
63 may also wish to install any or all of these packages:
64
65 * cyrus-pop3d-2.4
66
67 * cyrus-murder-2.4
68
69 * cyrus-replication-2.4
70
71 * cyrus-nntpd-2.4
72
73 * cyrus-caldav-2.4
74
75 Once you've decided which services to support (IMAP, POP3, NNTP,
76 CalDav), and whether those services shall be available in secured
77 versions, you'll need to edit "/etc/cyrus.conf" and check the
78 "SERVICES" section, commenting and uncommenting as needed to enable or
79 disable the proper versions of those services.
80
81 Here's the stock version of the "SERVICES" section of
82 "/etc/cyrus.conf" as shipped with these packages:
83
84 SERVICES {
85 # --- Normal cyrus spool, or Murder backends ---
86 # add or remove based on preferences
87 imap cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
88 #imaps cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100
89 pop3 cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
90 #pop3s cmd="pop3d -s -U 30" listen="pop3s" prefork=0 maxchild=50
91 nntp cmd="nntpd -U 30" listen="nntp" prefork=0 maxchild=100
92 #nntps cmd="nntpd -s -U 30" listen="nntps" prefork=0 maxchild=100
93 http cmd="httpd -U 30" listen="8008" prefork=0 maxchild=100
94 #https cmd="httpd -s -U 30" listen="8443" prefork=0 maxchild=100
95
96
97 # At least one form of LMTP is required for delivery
98 # (you must keep the Unix socket name in sync with imap.conf)
99 #lmtp cmd="lmtpd" listen="localhost:lmtp" prefork=0 maxchild=20
100 lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20
101 # ----------------------------------------------
102
103 # useful if you need to give users remote access to sieve
104 # by default, we limit this to localhost in Debian
105 sieve cmd="timsieved" listen="localhost:sieve" prefork=0 maxchild=100
106
107 # this one is needed for the notification services
108 notify cmd="notifyd" listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1
109
110 # --- Murder frontends -------------------------
111 # enable these and disable the matching services above,
112 # except for sieve (which deals automatically with Murder)
113
114 # mupdate database service - must prefork at least 1
115 # (mupdate slaves)
116 #mupdate cmd="mupdate" listen=3905 prefork=1
117 # (mupdate master, only one in the entire cluster)
118 #mupdate cmd="mupdate -m" listen=3905 prefork=1
119
120 # proxies that will connect to the backends
121 #imap cmd="proxyd" listen="imap" prefork=0 maxchild=100
122 #imaps cmd="proxyd -s" listen="imaps" prefork=0 maxchild=100
123 #pop3 cmd="pop3proxyd" listen="pop3" prefork=0 maxchild=50
124 #pop3s cmd="pop3proxyd -s" listen="pop3s" prefork=0 maxchild=50
125 #lmtp cmd="lmtpproxyd" listen="lmtp" prefork=1 maxchild=20
126 # ----------------------------------------------
127 }
128
129 Note:
130
131 The default settings, as shown above, are for non-secure protocol
132 access.
133
134 Edit "/etc/imapd.conf" and change the default settings as needed.
135 Please consult imapd.conf(5) for details.
136
137 * You MUST, at the very least, uncomment the "admins:" line.
138
139 * As documented in the man page, "the values "yes", "on", "t", "true"
140 and "1" turn the option on, the values "no", "off", "f",
141 "false" and "0" turn the option off."
142
143 * If you are NOT using SSL and/or STARTTLS, you MUST enable plain text
144 logins, and set "sasl_minimum_layer: 0" for authentication to work,
145 or have some other protection layer in place.
146
147 * Consider enabling the commonly used settings "altnamespace" and
148 "unixhierarchysep" as these will default to "on" beginning in
149 version 3.0.
150
151 * Check your "sasl_pwcheck_method" setting, as this defaults to
152 "auxprop" with these packages, which is likely not what you want.
153 Change it to "saslauthd" or "pwcheck" as needed.
154
155 Next, set a password for the default administrative user "cyrus". Your
156 choice of authentication system will dictate the proper way to do
157 this. Shown below are examples for *nix password file and SASL
158 methods:
159
160 # **passwd cyrus**
161 Changing password for user cyrus.
162 New password:
163 Retype new password:
164 passwd: all authentication tokens updated successfully.
165
166 # **saslpasswd2 -c cyrus**
167 Password:
168 Again (for verification):
169
170 # **sasldblistusers2**
171 [email protected]: userPassword
172
173 To enable *saslauthd*, edit "/etc/default/saslauthd" and set
174 "START=yes". Make sure to change any other settings here as needed.
175
176 Note:
177
178 If you're planning to integrate Cyrus with the Postfix MTA, it is
179 necessary to either relocate the socket used by "saslauthd", or else
180 to disable "chroot" as noted in "/etc/default/saslauthd", so the
181 Postfix "smtpd" daemon can access it.
182
183 Start *saslauthd* if needed:
184
185 # **service saslauthd start**
186 * Starting SASL Authentication Daemon saslauthd [ OK ]
187
188 You should at this moment be able to authenticate against saslauthd:
189
190 # **testsaslauthd -u cyrus -p YOUR-PASSWORD**
191
192 Start the service, and ensure the service starts up when the system
193 boots:
194
195 # **service cyrus-imapd start**
196 # **update-rc.d cyrus-imapd enable**
197
198 You should now be able to login as the "cyrus" user, which is
199 configured by default as an administrator for Cyrus IMAP:
200
201 # **imtest -t "" -u cyrus -a cyrus localhost**
202 S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS LOGINDISABLED COMPRESS=DEFLATE] newhost.example.com Cyrus IMAP v2.4.17-caldav-beta9-Debian-2.4.17+caldav~beta9-3 server ready
203 C: S01 STARTTLS
204 S: S01 OK Begin TLS negotiation now
205 verify error:num=19:self signed certificate in certificate chain
206 TLS connection established: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
207 C: C01 CAPABILITY
208 S: * CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY AUTH=PLAIN SASL-IR COMPRESS=DEFLATE IDLE
209 S: C01 OK Completed
210 Please enter your password:
211 C: A01 AUTHENTICATE PLAIN ************
212 S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE IDLE] Success (tls protection)
213 Authenticated.
214 Security strength factor: 256
215 . logout
216 . LIST "" "*"
217 . OK Completed (0.000 secs 1 calls)
218 * BYE LOGOUT received
219 . OK Completed
220 Connection closed.
221
222 Next, continue with Configuring the MTA.