]> git.pld-linux.org Git - packages/cyrus-imapd.git/blame - cyrus-README
- up to 2.4.13
[packages/cyrus-imapd.git] / cyrus-README
CommitLineData
4bef92ba
AF
1NEW CYRUS IMAP PACKAGE
2======================
3
4This package automatically installs an appropriate sendmail.cf which
5provides for local delivery to the cyrus imap system. The old sendmail.cf is
6saved in /etc/mail/sendmail-pre-cyrus.cf.
7
8Support for procmail delivery is still available due to an installation
9based on ideas found here:
10http://www.ncworldmag.com/ncw-05-1998/ncw-05-imap.html.
11
12The installed sendmail.cf is based on the mc file found in
13/usr/lib/sendmail-cf/cf/redhat-procmail+cyrus.mc (which is now very similar
14to the default redhat.mc which comes with RH5.2)
15
16To give a short outline of the process: sendmail delivers local mail through
17procmail just as with the standard RedHat setup (i.e. procmail is installed
18as the local MDA). Contrary to the standard installation, procmail is given
19a receipt directing mail though the cyrus delivery. Thus, messages end up
20in the cyrus system.
21
22The cyrus 'deliver' program is not executable by normal users, for security
23reasons. This package installs a 'deliver-wrapper' which is world executable
24and only provides (hopefully) secure parameters to 'deliver'. This means
25that delivery can be done from with a user's own .procmailrc without giving
26them special privileges.
27
28If you want to roll your own sendmail.cf which invokes 'deliver' directly,
29here are the instructions.
30
31
32CONFIGURING SENDMAIL FOR CYRUS
33==============================
34
35You have two options:
36
37(1) As a full replacement for your local mail system; in this case you will
38no longer be able to use elm, pine etc. unless you configure them for IMAP,
39because no mail will be delivered to /var/spool/mail/<user>
40
41define(`CYRUS_MAILER_FLAGS',`A5@S')
42define(`confLOCAL_MAILER',`cyrus')
43mailer(cyrus)
44
45LOCAL_RULE_0
46Rbb + $+ < @ $=w . > $#cyrusbb $: $1
47
48[This last rule allows bb+mailbox@yourdomain to deliver to the named global
49mailbox; bb refers to 'bulletin board']
50
51Remove FEATURE(local_procmail) if it exists, or comment it out by putting
52'dnl' at the beginning of the line.
53
54(2) As an additional domain, e.g. so that user@imap.your.domain is delivered
55into the cyrus mail area.
56
57Create a mailertable (if you don't already have one) in /etc/mailertable,
58containing the following line:
59
60imap.your.domain cyrus:inbox
61
62Then build it like this:
63
64makemap hash /etc/mailertable </etc/mailertable
65
66Your m4 config file needs to contain the following:
67
68FEATURE(mailertable)
69define(`CYRUS_MAILER_FLAGS',`S')
70mailer(cyrus)
71
72Finally, point an MX record for imap.your.domain pointing to your machine.
73Note that users in this domain still need to have entries in /etc/passwd,
74otherwise there would be no passwords to authenticate against when reading
75their mail. This limitation will go when someone integrates PAM support into
76Cyrus, or you can try authenticating against an LDAP server; see
77http://www.linc-dev.com/auth.html
78
79CREATING MAILBOXES
80==================
81
82Add the usernames of the administrator user(s) to /etc/imapd.conf, separated
83with spaces, e.g.
84
85 admins: curtj abell
86
87Then start the cyradm tool:
88
89# cyradm localhost
90
91Login using the username and password of one of the admin users. Type 'help'
92for a list of commands.
93
94 To create a mailbox, type:
95
96 cm user.<userid>
97
98 For example, to create a mailbox for the userid "smith", type:
99
100 cm user.smith
101
102 To limit "smith" to 10,000 kilobytes of mail, type:
103
104 setquota user.smith 10000
105
106 Once the inbox is created, users can create their own additional
107 mailboxes from a mail program. If Smith created a work mailbox and a
108 play mailbox, the full names of the mailboxes would be:
109
110 user.smith.work
111 user.smith.play
112
113 Access rights are discussed in detail in the cyradm(1) man pages. Note
114 that the administrator must grant herself delete access explicitly
115 before she can delete a mailbox:
116
117 setaclmailbox <mail_box> <admin_userid> d
118 deletemailbox <mail_box>
119
120 Once you have created mailboxes, your IMAP server installation is done.
121
122CONFIGURING FOR ACCESS TO A NEWS SPOOL
123======================================
124
125See doc/install for details; I've not tried this myself
126
127COMMON PROBLEMS
128===============
129
130There is a known problem with syslogging error messages about being unable
131to create deliverdb messages. You can remove /var/imap/deliverdb/, however
132that will then give you errors saying that this directory does not exist :-)
133
134This database is an optimisation which prevents duplicate copies of messages
135(with the same Message-ID) being delivered into mailboxes. This feature can
136be disabled by removing the '-e' flag from deliver:
137
138define(`CYRUS_MAILER_ARGS', `deliver -m $h -- $u')
139define(`CYRUS_BB_MAILER_ARGS', `deliver -m $u')
This page took 0.075149 seconds and 4 git commands to generate.