Cyrus-imap

インストール

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

ユーザアカウントの作成

まず管理者アカウントを 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, authauthenticate to server
chdir, cdchange current directory
createmailbox, create, cmcreate mailbox
deleteaclmailbox, deleteacl, damremove ACLs from mailbox
deletemailbox, delete, dmdelete mailbox
disconnect, discdisconnect from current server
exit, quitexit cyradm
help, ?show commands
infodisplay mailbox/server metadata
listacl, lam, listaclmailboxlist ACLs on mailbox
listmailbox, lmlist mailboxes
listquota, lqlist quotas on specified root
listquotaroot, lqr, lqmshow quota roots and quotas for mailbox
mboxcfg, mboxconfigconfigure mailbox
reconstructreconstruct mailbox (if supported)
renamemailbox, rename, renmrename (and optionally relocate) mailbox
server, servername, connectshow current server or connect to server
setaclmailbox, sam, setaclset ACLs on mailbox
setinfoset server metadata
setquota, sqset quota on mailbox or resource
subscribe, subsubscribe to a mailbox
unsubscribe, unsubunsubscribe from a mailbox
version, verdisplay version info of current server
xfermailbox, xfertransfer (relocate) a mailbox to a different server

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-05-11 (水) 15:25:24