在Fedora上建立自己的邮件服务器(5)
来源:云南设计港 时间:2007-09-13 13:47:00
八、Courier-IMAPInstall
A.先在普通用户下
#./configure-without-authpwd-without-authpam-without-authuserdb-without-authshadow
-without-cram-without-chkpw-without-ldap-without-pgsql-without-authdaemon
-without-authcustom-with-authmysql
#make
#makecheck
#suroot
#makeinstall
#makeinstall-configure
B.修改authmysqlrc,这里是简单的
#DEFAULT_DOMAINdomain.tld
MYSQL_CRYPT_PWFIELDpassword
MYSQL_DATABASEpostfix
MYSQL_GID_FIELD'12345'
MYSQL_HOME_FIELD'/usr/local/virtual'
MYSQL_LOGIN_FIELDusername
MYSQL_MAILDIR_FIELDmaildir
MYSQL_NAME_FIELDname
MYSQL_OPT0
MYSQL_PASSWORDpostfix
#MYSQL_PORT3306
#MYSQL_QUOTA_FIELDquota
MYSQL_SERVERlocalhost
MYSQL_SOCKET/var/lib/mysql/mysql.sock
MYSQL_UID_FIELD'12345'
MYSQL_USERNAMEpostfix
MYSQL_USER_TABLEmailbox
#MYSQL_WHERE_CLAUSEstatus
C.[root@localhostroot]#/usr/lib/courier-imap/bin/maildirmake
/usr/local/virtual/tester@lansemail.com
[root@localhostroot]#chmod-R700/usr/local/virtual/tester@lansemail.com
[root@localhostroot]#chown-Rpostfix:postfix/usr/local/virtual/tester@lansemail.com
D.启动courier-imap
[root@localhostroot]#/usr/lib/courier-imap/libexec/pop3d.rcstart
[root@localhostroot]#/usr/lib/courier-imap/libexec/imapd.rcstart
[root@localhostroot]#pstree|grepcourier
|-2*[courierlogger]
|-2*[couriertcpd]
[root@localhostroot]#netstat-an|grepLISTEN
tcp000.0.0.0:327700.0.0.0:*LISTEN
tcp00127.0.0.1:327710.0.0.0:*LISTEN
tcp000.0.0.0:33060.0.0.0:*LISTEN
tcp000.0.0.0:1100.0.0.0:*LISTEN
tcp000.0.0.0:1430.0.0.0:*LISTEN
tcp000.0.0.0:1110.0.0.0:*LISTEN
tcp000.0.0.0:220.0.0.0:*LISTEN
tcp00127.0.0.1:6310.0.0.0:*LISTEN
tcp000.0.0.0:250.0.0.0:*LISTEN
九、测试端口110
[root@localhostroot]#telnetlocalhost110Trying127.0.0.1...
Connectedtolocalhost.
Escapecharacteris'^]'.
+OKHellothere.
usertester
+OKPasswordrequired.
passtestpw
+OKloggedin.
list
+OKPOP3clientsthatbreakhere,theyviolateSTD53.
.
quit
+OKBye-bye.
Connectionclosedbyforeignhost.
[root@localhostroot]#
十、一切ok了,用你的outlook试试。记住,添加用户邮箱,一定要用全名。再去找个webmail吧。