*Cyrus-imap [#rf9cd9ac]
#contents
**インストール [#h42dca9b]
ports からインストールします。
 # portinstall /usr/ports/mail/cyrus-imapd22/
インストールのはじめにオプションについて聞かれるので、適宜答えておきます。今回は以下のようにしています。
 ┌----------------------------------------------------------------------┐
 │                   Options for cyrus-imapd 2.2.12_2                   │
 │ ┌----------------------------------------------------------------┐ │
 │ │    [ ] AUTH_KRB5      Use Kerberos5 authorization module       │ │
 │ │    [ ] BDB_3          Use BerkeleyDB v3                        │ │
 │ │    [ ] BDB_4          Use BerkeleyDB v4                        │ │
 │ │    [ ] BDB_41         Use BerkeleyDB v4.1                      │ │
 │ │    [ ] BDB_42         Use BerkeleyDB v4.2                      │ │
 │ │    [X] BDB_43         Use BerkeleyDB v4.3                      │ │
 │ │    [ ] DRAC           Enable DRAC support                      │ │
 │ │    [ ] IDLE_IDLED     Enable IMAP IDLE method idled            │ │
 │ │    [X] IDLE_POLL      Enable IMAP IDLE method idle-polling     │ │
 │ │    [ ] LDAP_PTLOADER  Enable LDAP ptloader (experimantal)      │ │
 │ │    [ ] LISTEXT        Enable IMAP List extensions              │ │
 │ │    [ ] MURDER         Enable IMAP Murder support               │ │
 │ │    [ ] NETSCAPEHACK   Enable X-NETSCAPE extensions             │ │
 │ │    [ ] NNTP           Enable NNTP support                      │ │
 │ │    [ ] SNMP_4         Enable SNMP support using net-snmp v4    │ │
 │ │    [ ] SNMP_5         Enable SNMP support using net-snmp v5    │ │
 │ │    [ ] PASS8BITHACK   Add pass8bit option (not recommended)    │ │
 ├-└----------------------------------------------------------------┘-┤
 │                         [  OK  ]       Cancel                        │
 └----------------------------------------------------------------------┘
また、パスワード認証に使用するので、cyrus-sasl2-saslauthd もインストールします。
 # portinstall /usr/ports/security/cyrus-sasl2-saslauthd/

まず、/etc/services に以下のサービスを追加します。
 sieve 2000/tcp
 lmtp 2003/tcp
 fud 4201/udp
** ユーザアカウントの作成 [#g7568cd1]
まず管理者アカウントを saslpasswd2 で作成します。管理者名は imapd.conf の "admins" で指定したユーザ名(cyrus-admin)となります。
 # saslpasswd2 -c cyrus-admin
 Password:******
 Again (for verification):******
上記の例ではパスワードを ****** で表していますが、実際には何も表示されません。

次に実際のユーザアカウントを同じく saslpasswd2 で作成します。
 # saslpasswd2 hoge
 Password:******
 Again (for verification):******

作成したユーザアカウントは  sasldblistusers2 で確認できます。
 # sasldblistusers2
 cyrus-admin@example.com: userPassword
 hode@example.com: userPassword

作成したユーザ用のメールボックスは cyradm で作成します。
 # cyradm --user cyrus-admin localhost
 Password:******
 localhost>cm user.hoge
 localhost>quit
cm user."ユーザ名" でメールボックスを作成します。cyrus-imapd では .(ピリオド)をメールボックスの区切り文字としているので、ユーザ名およびフォルダ名に .(ピリオド)は使用できないと思います。
|authenticate, login, auth         |authenticate to server|
|chdir, cd                         |change current directory|
|createmailbox, create, cm         |create mailbox|
|deleteaclmailbox, deleteacl, dam  |remove ACLs from mailbox|
|deletemailbox, delete, dm         |delete mailbox|
|disconnect, disc                  |disconnect from current server|
|exit, quit                        |exit cyradm|
|help, ?                           |show commands|
|info                              |display mailbox/server metadata|
|listacl, lam, listaclmailbox      |list ACLs on mailbox|
|listmailbox, lm                   |list mailboxes|
|listquota, lq                     |list quotas on specified root|
|listquotaroot, lqr, lqm           |show quota roots and quotas for mailbox|
|mboxcfg, mboxconfig               |configure mailbox|
|reconstruct                       |reconstruct mailbox (if supported)|
|renamemailbox, rename, renm       |rename (and optionally relocate) mailbox|
|server, servername, connect       |show current server or connect to server|
|setaclmailbox, sam, setacl        |set ACLs on mailbox|
|setinfo                           |set server metadata|
|setquota, sq                      |set quota on mailbox or resource|
|subscribe, sub                    |subscribe to a mailbox|
|unsubscribe, unsub                |unsubscribe from a mailbox|
|version, ver                      |display version info of current server|
|xfermailbox, xfer                 |transfer (relocate) a mailbox to a different server|

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS