在Fedora上建立自己的邮件服务器(5)

80酷酷网    80kuku.com

  

八、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.[rootlocalhostroot]#/usr/lib/courier-imap/bin/maildirmake
  

以下为引用的内容:
  
  [rootlocalhostroot]#chmod-R700/usr/local/virtual/testerlansemail.com
  [rootlocalhostroot]#chown-Rpostfix:postfix/usr/local/virtual/testerlansemail.com
  D.启动courier-imap
  [rootlocalhostroot]#/usr/lib/courier-imap/libexec/pop3d.rcstart
  [rootlocalhostroot]#/usr/lib/courier-imap/libexec/imapd.rcstart
  [rootlocalhostroot]#pstree|grepcourier
  |-2*[courierlogger]
  |-2*[couriertcpd]
  [rootlocalhostroot]#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
  

以下为引用的内容:
  [rootlocalhostroot]#telnetlocalhost110Trying127.0.0.1...
  Connectedtolocalhost.
  Escapecharacteris'^]'.
  +OKHellothere.
  usertester
  +OKPasswordrequired.
  passtestpw
  +OKloggedin.
  list
  +OKPOP3clientsthatbreakhere,theyviolateSTD53.
  .
  quit
  +OKBye-bye.
  Connectionclosedbyforeignhost.
  [rootlocalhostroot]#

十、一切ok了,用你的outlook试试。记住,添加用户邮箱,一定要用全名。再去找个webmail吧。



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: