时间: 2021-07-31 作者:daque
八、courier-imap install
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 #make check #su root #make install #make install-configure
b.窜改authmysqlrc,这边是大略的
#default_domain domain.tld mysql_crypt_pwfield password mysql_database postfix mysql_gid_field '12345' mysql_home_field '/usr/local/virtual' mysql_login_field username mysql_maildir_field maildir mysql_name_field name mysql_opt 0 mysql_password postfix #mysql_port 3306 #mysql_quota_field quota mysql_server localhost mysql_socket /var/lib/mysql/mysql.sock mysql_uid_field '12345' mysql_username postfix mysql_user_table mailbox #mysql_where_clause status
c. [root@localhost root]# /usr/lib/courier-imap/bin/maildirmake
/usr/local/virtual/tester@lansemail.com [root@localhost root]# chmod -r 700 /usr/local/virtual/tester@lansemail.com [root@localhost root]# chown -r postfix:postfix /usr/local/virtual/tester@lansemail.com d. 启用courier-imap [root@localhost root]# /usr/lib/courier-imap/libexec/pop3d.rc start [root@localhost root]# /usr/lib/courier-imap/libexec/imapd.rc start [root@localhost root]# pstree | grep courier |-2*[courierlogger] |-2*[couriertcpd] [root@localhost root]# netstat -an | grep listen tcp 0 0 0.0.0.0:32770 0.0.0.0:* listen tcp 0 0 127.0.0.1:32771 0.0.0.0:* listen tcp 0 0 0.0.0.0:3306 0.0.0.0:* listen tcp 0 0 0.0.0.0:110 0.0.0.0:* listen tcp 0 0 0.0.0.0:143 0.0.0.0:* listen tcp 0 0 0.0.0.0:111 0.0.0.0:* listen tcp 0 0 0.0.0.0:22 0.0.0.0:* listen tcp 0 0 127.0.0.1:631 0.0.0.0:* listen tcp 0 0 0.0.0.0:25 0.0.0.0:* listen
九、尝试端口110
[root@localhost root]# telnet localhost 110 trying 127.0.0.1... connected to localhost. escape character is '^]'. +ok hello there. user tester +ok password required. pass testpw +ok logged in. list +ok pop3 clients that break here, they violate std53. . quit +ok bye-bye. connection closed by foreign host. [root@localhost root]#
十、十足ok了,用你的outlook试试。。。。记取,增添用户邮箱,确定要用全名。再去找个webmail吧。