📄 1336.html
字号:
’发送邮件服务器’中选中‘我的服务器需要认证’<br>
七: FAQ。<br>
1. 如果你没有命令saslpasswd,sasldblistusers在/usr/sbin/目录下面。<br>
答: 你需要安装cyrus-sasl-RPM包。<br>
2. 如果不想用SASL认证,就用默认的Redhat 的PAM方法。<br>
答: 忽略上面的SASL设置的部分,默认地 Redhat 7.2的 /usr/lib/sasl/Sendmail.conf文件里面为<br>
pwcheck_method:pam<br>
则你就简单地用useradd增加一个系统用户并更改密码即可。<br>
<br>
安装pop3,从redhat 7.2的光盘上有imap-2000c-15.i386.rpm<br>
rpm -ivh imap-2000c-15.i386.rpm<br>
OK!<br>
验证:netstat -a |grep pop<br>
<br>
输出 ------tcp 0 0 * : pop3 *:* listen<br>
ok了!<br>
安装apache:<br>
要是系统默认安装,就可以跳过。要是没有安装,从www.apache.org上下载最新版本。我用的是httpd-2.0.39.tar.gz,官方说是当前最好的了。<br>
安装步骤:<br>
tar -zxvf httpd-2.0.29.tar.gz<br>
cd httpd.2.0.29<br>
./configure --prefix=/var/www<br>
make<br>
make instal<br>
启动:/var/www/bin/apachectl start<br>
(详细配置,你可以看httpd.2.0.29目录中的install文件)<br>
OK!到这,apache配置完成。<br>
3、安装openwebmail。<br>
下载相关的软件:<br>
1、CGI.pm-2.74.tar.gz<br>
2、MIME-Base64-2.12.tar.gz<br>
3、libnet-1.0901.tar.gz<br>
4、Download openwebmail-1.65.tgz程式套件,<br>
5、perl.5.XX (redhat 7.2系统自带)<br>
把前三个文件放在/tep目录下:<br>
<br>
(1)For CGI.pm do the following:<br>
cd /tmp<br>
tar -zxvf CGI.pm-2.74.tar.gz<br>
cd CGI.pm-2.74<br>
perl Makefile.PL<br>
make<br>
make install<br>
(2)For MIME-Base64 do the following:<br>
cd /tmp<br>
tar -zxvf MIME-Base64-2.12.tar.gz<br>
cd MIME-Base64-2.12<br>
perl Makefile.PL<br>
make<br>
make install<br>
(3)For libnet do the following:<br>
cd /tmp<br>
tar -zxvf libnet-1.0901.tar.gz<br>
cd libnet-1.0901<br>
perl Makefile.PL<br>
make<br>
make install<br>
(4)For openwebmial 主程式<br>
cd /var/www<br>
tar -zxvf openwebmail-1.65.tgz<br>
mv /var/www/data/openwebmail /var/www/htdocs/<br>
<br>
修改设定值:<br>
<br>
(1)vi /var/www/cgi-bin/openwebmail/auth_unix.pl)<br>
my $unix_passwdfile to /etc/shadow (找到这两行,修改。)<br>
my $unix_passwdmkdb to none<br>
(2)vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf<br>
下列是 RedHat 7.2 openwebmail.conf 的內容,请修改如下:<br>
--------------------------------------------------------------------------------------<br>
# Open WebMail configuration file<br>
# This file contains just the overrides from openwebmail.conf.default<br>
# please make all changes to this file.<br>
# This file set options for all domains and all users.<br>
# To set options on per domain basis, please put them in sites.conf/domainname<br>
# To set options on per user basis, please put them in users.conf/username<br>
domainnames auto<br>
auth_module auth_unix.pl<br>
mailspooldir /var/spool/mail<br>
dbm_ext .db<br>
dbmopen_ext none<br>
ow_cgidir /var/www/cgi-bin/openwebmail<br>
ow_htmldir /var/www/htdocs/openwebmail<br>
logfile /var/log/openwebmail.log<br>
spellcheck /usr/bin/aspell<br>
default_language zh_CH.GB2312 -----默认简体中文<br>
<br>
------------------------------------------------------------------------------<br>
<br>
(3)为避免"Returned mail: see transcript for details"的错误信息,请做下列连接:<br>
<br>
cd /etc/smrsh<br>
ln -s /var/www/cgi-bin/openwebmail/vacation.pl /etc/smrsh/vacation.pl<br>
<br>
大功告成、进行测试!<br>
添加用户:<br>
useradd -d /home/test test<br>
passwd test ----创建密码<br>
輸入以下网址<br>
http://yourservername/cgi-bin/openwebmail/openwebmail.pl<br>
如果你觉得输入这么长的地址太麻烦,可以做个index.html连接。<br>
cd /var/www/htdocs/<br>
vi index.html<br>
------------------------------------------------------<br>
<html><br>
<head><br>
<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=http:/cgi-bin/openwebmail/openwebmail.pl"><br>
</head><br>
<body><br>
</body><br>
</html><br>
-----------------------------------------------------------<br>
重启动apache:/var/www/bin/apachectl restart<br>
输入://youservername ,看看是不是可以了!<br>
<br>
<br>
<br>
有一个 for redhat7.2的,openwebmail-1.65-rh7x,我现在就是用的这个。<br>
<br>
<br>
# wget ftp://openwebmail.org/pub/redhat-7x-installer/rh73/openwebmail-20020712-rh73.tgz<br>
tar zxvf ./openwebmail-20020712-rh73.tgz<br>
./install<br>
其中的cgi imap等模块都包含了,只要你原来的sendmail和apache 好用,现在就可以在你的<br>
web中http://servername/cgi-bin/openwebmail/openwebmail.pl 登录邮件系统了,不过这个可以支持中文的GB2312,但是图标中的没有简体中文版的,我是在/var/www/cgi-bin/openwebmail/etc/lang/建立了一个china_sp目录,将english目录下的*gif考进来后,用在修改为中文版的。就ok<br>
<br>
<br>
<br>
下面引用由peng在 2002/08/01 10:07am 发表的内容:<br>
看来我是太心急了,没有好好看看,就开始蛮干了!:)<br>
还好安装也不太麻烦,不然就亏大了。:(<br>
<br>
<br>
<br>
呵呵,那是不是用了 openwebmail-20020712-rh73.tgz,就不必象你的教程那样麻烦了呢?我还是先问清楚再玩,否则走弯路不打紧,就怕迷路了。嘻嘻。 <br>
<br>
<br>
不知这个在redhat 7,2下能不能用啊?我人比较保守,不敢用新的东西,怕出事,担待不起。linnx喜欢用稳定版本。听说linnx-x.y y要是奇数,说明是测试版。y偶数是稳定版本。:)<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 + -