Initial revision
[hcoop/zz_old/domtool.git] / src / vmail / README
CommitLineData
182a2654
AC
1VIRTUAL MAILBOXES FOR COURIER IMAP
2
3
4Here are some simple tools for managing virtual e-mailboxes for
5Courier IMAP (http://www.inter7.com/courierimap/courierimap.html).
6
7A short sample session should demonstrate how to use the vmail and
8reloadusers command line tools:
9
10% vmail your.domain add new.user
11Password: password
12Reenter password: password
13Mailbox created.
14
15% vmail your.domain list
16new.user
17
18% vmail your.domain passwd new.user
19Password: password'
20Reenter password: password'
21Password set.
22
23% reloadusers
24
25After this, where mailboxDir is the directory set in config.sml, a
26Maildir mailbox exists in mailboxDir/your.domain/new.user, and
27login/password data for Courier is in the directories/files given in
28config.sml. You must set up an MTA to properly deliver mail to these
29mailboxes for this to be useful.
30
31vmail only allows a user to administer virtual mailboxes for a domain
32whose directory in the domtool tree the user's current group has write
33access to. Thus, it is important to maintain g+w in these directories
34for this to work.
35
36Actually, this only matters when you use a
37sudo-based solution like mentioned in the main README file. You might
38be able to find a better way of doing things. At hcoop, we have a
39'vmail' user that owns the mailbox directory. Users are allowed via
40sudo to run vmail as user vmail, and user vmail is allowed to run the
41Courier userdb and userdbpw programs as root. All domtool users are
42allowed to run reloadusers as root.
43