service saslauthd status
service cyrus-imapd status
service sendmail status
为了设置cyrus,不修改/etc/imapd.conf,让它保持RPM包刚安装好之后的缺省配置。对/etc/cyrus.conf,除了下面的修改,其它也都保持缺省配置:
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
# imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
# pop3s cmd="pop3d -s" listen="pop3s" prefork=1
# sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
注意:即使你不打算运行一个imap服务器,你也需要imap。
service saslauthd restart
service cyrus-imapd restart
service sendmail restart
service xinetd restart
chkconfig saslauthd on
chkconfig cyrus-imapd on
chkconfig sendmail on
你也许需要重新启动,来让cyrus取得端口的所有权。
作为cyrus登陆到cyrus-imap:
cyradm --user cyrus localhost
你可以键入help来获得更多信息。提示符也将改变:
localhost.localdomain> help
现在设置用户信箱。注意“user."必须加在用户名字前面:
localhost.localdomain> cm user.testuser
现在你可以退出了:
localhost.localdomain> quit
你可以测试用户:
telnet localhost 110
the login:
user testuser
pass test
You should see:
+OK Name is a valid mailbox
+OK Mailbox locked and ready
现在你已经让cyrus工作正常了。邮箱应该显示: