📄 1391.html
字号:
<br>
#make
<br>
#cd work/courier-imap-1.5.3
<br>
#./configure –with-db=db –without-socks –disable-root-check
<br>
#make
<br>
#make install
<br>
#/usr/lib/courier-imap/libexec/authlib/authdaemon start
<br>
#echo “/usr/lib/courier-imap/libexec/authlib/authdaemon start” >> /etc/rc.local
<br>
<br>
5.2、添加用户
<br>
<br>
#cd /usr/local/bin
<br>
#./mysql –D mysql –p
<br>
password:*******
<br>
mysql>INSERT INTO user (host,user,password)
<br>
->VALUES (‘localhost’,’courier’,’’);
<br>
mysql>UPDATA user SET password=password(‘haha’)
<br>
->WHERE user=’courier’;
<br>
mysql>FLUSH PRIVILEGES;
<br>
mysql>GRAN select,insert,update on mail.* TO courier;
<br>
mysql>exit
<br>
<br>
5.3、设置courier-imap
<br>
<br>
#cd /usr/lib/courier-imap/etc
<br>
#cp authdaemonrc.dist authdaemonrc
<br>
#cp authmysqlrc.dist authmysqlrc
<br>
#cp imapd.dist imapd
<br>
#cp imapd-ssl.dist imapd-ssl
<br>
#cp pop3d.dist pop3d
<br>
#cp pop3d-ssl pop3d-ssl
<br>
<br>
#ee pop3d
<br>
<br>
prefix=/usr/lib/courier-imap
<br>
exec_prefix=/usr/lib/courier-imap
<br>
sbindir=”/usr/lib/courier-imap/sbin”
<br>
<br>
PIDFILE=/var/run/pop3d.pid
<br>
MAXDAEMONS=40
<br>
MAXPERIP=4
<br>
AUTHMODULES=”authdaemon”
<br>
AUTHMODULES_ORIG=”authdaemon”
<br>
POP3AUTH=””
<br>
POP3AUTH_ORIG=”LOGIN CRAM-MD5 CRAM-SHA1”
<br>
POP3AUTH_TLS=””
<br>
POP3AUTH_TLS_ORIG=”LOGIN PLAIN”
<br>
PORT=110
<br>
ADDRESS=0
<br>
TCPDOPTS=”-nodnslookup -noidentlookup”
<br>
POP3DSTART=YES
<br>
<br>
#ee imapd
<br>
<br>
IMAPDSTART=YES
<br>
<br>
#ee authdaemonrc
<br>
authmodulelist=”authmysql authpam”
<br>
authmodulelistorig=”authcustom authcram authuserdb authmysql authpam”
<br>
daemons=5
<br>
version=”authdaemond.mysql”
<br>
authdaemonvar=”/usr/lib/courier-imap/var/authdaemon”
<br>
<br>
#ee authmysqlrc
<br>
MYSQL_SERVER localhost
<br>
MYSQL_USERNAME courier
<br>
MYSQL_PASSWORD haha
<br>
MYSQL_SOCKET /tmp/mysql.sock
<br>
MYSQL_PORT 3306
<br>
MYSQL_OPT 0
<br>
MYSQL_DATABASE mail
<br>
MYSQL_USER_TABLE users
<br>
#MYSQL_CRYPT_PWFIELD password
<br>
MYSQL_CLEAR_PWFIELD password
<br>
MYSQL_UID_FIELD uid
<br>
MYSQL_GID_FIELD gid
<br>
MYSQL_LOGIN_FIELD address
<br>
MYSQL_HOME_FIELD home
<br>
MYSQL_NAME_FIELD username
<br>
MYSQL_MAILDIR_FIELD maildir
<br>
MYSQL_QUOTA_FIELD quota
<br>
MYSQL_WHERE_CLAUSE mailok=1
<br>
<br>
#cd ..
<br>
#ln -s /usr/lib/courier-imap/libexec/imapd.rc imapd
<br>
#ln -s /usr/lib/courier-imap/libexec/pop3d.rc pop3d
<br>
#./imapd start
<br>
#echo “/usr/lib/courier-imap/imap start” >> /etc/rc.local
<br>
#./pop3d start
<br>
#echo “/usr/lib/courier-imap/pop3 start” >> /etc/rc.local
<br>
#netstat –an | grep LISTEN
<br>
tcp4 0 0 *:110 *:* LISTEN
<br>
tcp46 0 0 *:110 *:* LISTEN
<br>
tcp4 0 0 *:143 *.* LISTEN
<br>
tcp46 0 0 *.143 *.* LISTEN
<br>
<br>
#telnet localhost 110
<br>
Trying 127.0.0.1...
<br>
Connected to localhost.cw-isquare.com.
<br>
Escape character is ‘^]’.
<br>
+OK Hello there
<br>
#quit
<br>
<br>
#telnet localhost 143
<br>
*OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See COPYING for distribution information.
<br>
#quit
<br>
<br>
5.安装设置sqwebmail
<br>
<br>
5.1、安装sqwebmail-3.5.0-cn.tar.gz
<br>
<br>
#tar zxvf sqwebmail-3.5.0.tar.gz
<br>
#cd sqwebmail-3.5.0
<br>
#./configure --without-authpam –with-db=db --enable-webpass=no --without-authpwd --without-authshadow
<br>
#make configure-check
<br>
#make
<br>
#make install-strip
<br>
#make install-configure
<br>
<br>
#/usr/local/share/sqwebmail/libexec/authlib/authdaemond start
<br>
#echo “/usr/local/share/sqwebmail/libexec/authlib/authdaemond start” >> /etc/rc.local
<br>
<br>
5.2、配置sqwebmail-3.5.0
<br>
<br>
5.2.1、安装apache
<br>
#tar apache_1.3.22.tar.gz
<br>
#cd apache_1.3.22
<br>
#./configure –prefix=/usr/local/apache
<br>
#make
<br>
#make install
<br>
<br>
5.2.2、设置sqwebmail
<br>
#cd /usr/local/share/sqwebmail
<br>
#ee authdaemonrc
<br>
authmodulelist=”authmysql authpam”
<br>
authmodulelistorig=”authcustom authcram authuserdb authmysql authpam”
<br>
daemons=5
<br>
version=”authdaemond.mysql”
<br>
authdaemonvar=”/usr/local/share/sqwebmail/var/authdaemon”
<br>
<br>
#ee authmysqlrc
<br>
MYSQL_SERVER localhost
<br>
MYSQL_USERNAME courier
<br>
MYSQL_PASSWORD haha
<br>
MYSQL_SOCKET /tmp/mysql.sock
<br>
MYSQL_PORT 3306
<br>
MYSQL_OPT 0
<br>
MYSQL_DATABASE mail
<br>
MYSQL_USER_TABLE users
<br>
#MYSQL_CRYPT_PWFIELD password
<br>
MYSQL_CLEAR_PWFIELD password
<br>
MYSQL_UID_FIELD uid
<br>
MYSQL_GID_FIELD gid
<br>
MYSQL_LOGIN_FIELD address
<br>
MYSQL_HOME_FIELD home
<br>
MYSQL_NAME_FIELD username
<br>
MYSQL_MAILDIR_FIELD maildir
<br>
MYSQL_QUOTA_FIELD quota
<br>
MYSQL_WHERE_CLAUSE mailok=1
<br>
<br>
<br>
5.2.3、测试sqwebmail-3.5.0
<br>
<br>
在客户端的浏览器的地址栏输入
<br>
http://mail.localhost.com/cgi-bin/sqwebmail
<br>
输入用户名和密码就可以登录进去收发邮件了。
<br>
注意:用户名一定要输入全称,也就是连域名一起输入。
<br>
<br>
5.2.4、设置apache页面跳转
<br>
<br>
#cd /usr/local/apache/htdocs
<br>
#touch index.html
<br>
#ee index.html
<br>
<br>
<meta http-equiv=”refresh” content=”0;URL=http://mail.localhost
<br>
.com/cgi-bin/sqwebmail?index=1”>
<br>
<br>
现在就可以直接在IE的地址栏输入:
<br>
http://mail.localhost.com
<br>
来访问sqwebmail了
<br>
<br>
这篇文章没有加入smtp认证,上次有个朋友在帖子里说过加认证的方法,由于没有时间,所以我就没有试。还有没有邮件列表的问题,我找不到解决的方法,如果有朋友看到这篇文章请把smtp认证和邮件列表功能补充一下,这要就比较完整了。在此我先表示感谢~
<br>
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -