⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1421.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
6.1. 编译与安装<br>
  在RedHat系列的Linux中,其Kerberos的头文件不在标准的地方,所以需要在编译配置前用env命令指定。此外取消对ucdsnmp的支持:<br>
# cd /home/pub<br>
# tar -zxf cyrus-imapd-2.1.16.tar.gz<br>
# cd cyrus-imapd-2.1.16<br>
# env CPPFLAGS=-I/usr/kerberos/include ./configure --with-cyrus-prefix=/usr/cyrus --with-sasl=/usr/lib/sasl2 --with-auth=unix --without-ucdsnmp --with-krb=/usr/kerberos<br>
# make depend<br>
# make all CFLAGS=-O<br>
# make install<br>
  如果编译时提示没有找到com_err.h,请复制当前目录的et目录下面的com_err.h到/usr/include:<br>
# cp et/com_err.h /usr/include<br>
<br>
  Cyrus-IMAP的安装脚本有问题,cyradm(现在使用的是Perl版本,原来的TCL版本不再支持)所需要的perl模块被安装到一些不在Perl的标准@INC的目录里,需要手工安装。<br>
# cd perl/imap<br>
# perl Makefile.PL<br>
# make install<br>
6.2. 配置<br>
  创建主配置文件/etc/cyrus.conf:<br>
# cd /home/pub/cyrus-imapd-2.1.16<br>
# cp master/conf/small.conf /etc/cyrus.conf<br>
  添加cyrus-imap的管理账号cyrus,并设置密码为“cyrus”(实际应用中可以使用更加复杂的密码),但是没有指定有效的SHELL,以防止使用它来登录:<br>
# useradd -g mail -M -s/no/shell -d/var/imap cyrus<br>
# passwd cyrus<br>
Changing password for user cyrus<br>
New password: ******<br>
BAD PASSWORD: it it too short<br>
Retype new password: ******<br>
passwd: all authentocation tokens updated successfully<br>
这里要记住你设的cyrus的密码,在以后添加用户时有用。<br>
  创建IMAP配置文件/etc/imapd.conf,管理员是cyrus:<br>
使用已建好的文件:<br>
# cp /home/pub/imapd.conf /etc/imapd.conf<br>
<br>
  建立Cyrus-IMAP服务器的目录结构:<br>
# mkdir -p /var/imap/sieve<br>
# mkdir /var/spool/imap<br>
# chown -R cyrus:mail /var/imap<br>
# chown -R cyrus:mail /var/spool/imap<br>
# su -s/bin/bash cyrus<br>
$ tools/mkimap<br>
$ exit<br>
  这里tools/mkimap这个实用程序在cyrus-imap的源程序目录里面。<br>
<br>
  创建日志:<br>
# echo local6.debug /var/log/imapd.log &gt;&gt; /etc/syslog.conf<br>
# echo auth.debug /var/log/auth.log &gt;&gt; /etc/syslog.conf<br>
# /etc/rc.d/init.d/syslog restart<br>
  设置邮件限额:<br>
# chattr -R +S /var/imap/user<br>
# chattr -R +S /var/imap/quota<br>
# chattr -R +S /var/spool/imap<br>
<br>
  由于Cyrus-IMAP的主控进程和Postfix的主控进程名字一样,容易混淆而且不方便控制,所以将Cyrus-IMAP服务器的主控进程做个别名连接:cyrusd。<br>
# cd /usr/cyrus/bin<br>
# ln -s master cyrusd<br>
6.3.创建用户邮箱<br>
# cyradm --user cyrus localhost<br>
IMAP Password:******<br>
nero.3322.org&gt; cm user/test<br>
nero.3322.org&gt; sq user/test STORAGE 52485760<br>
nero.3322.org&gt; lm<br>
user/INBOX (HasNoChildren)<br>
user/test (HasNoChildren)<br>
nero.3322.org&gt; quit<br>
<br>
6.4. 删除用户邮箱<br>
# cyradm --user cyrus localhost<br>
IMAP Password: ******<br>
nero.3322.org&gt; sam user/username cyrus cd<br>
nero.3322.org&gt; dm user/username<br>
nero.3322.org&gt; quit<br>
# rm –rf username<br>
<br>
7.0. 配置Apache与PHP<br>
  IMP对PHP的环境要求较高。所以通常需要升级PHP包,并安装由Horde定制后的PEAR包。<br>
  修改/etc/php.ini,将register_globals功能打开。<br>
register_globals = On<br>
  修改/etc/httpd/conf/httpd.conf,添加如下内容:<br>
AddType application/x-httpd-php .php<br>
并且在DirectoryIndex中加入index.php<br>
安装PEAR包,在AS3中,它位于/usr/share/pear下:<br>
# cd /home/pub<br>
# tar zxf pear-1.1.tar.gz<br>
# cd /usr/share<br>
# cp -Rf /home/pub/pear/* pear<br>
  最后重新启动Apache:<br>
# /etc/rc.d/init.d/httpd restart<br>
7.1. 安装配置Horde、IMP和Turba:<br>
  安装Horde、IMP和Turba的集合包:<br>
把/home/pub/horde.tar.gz解压到/var/www/html/目录中<br>
# tar –zvxf horde.tar.gz –C /var/www/html<br>
# cd /var/www/html/horde/scripts/db<br>
改掉mysql_create.sql中horde的默认密码。<br>
# mysql --user=root --password=password &lt; mysql_create.sql<br>
  <br>
最后在浏览器中访问如下URL测试Horde需要的环境是否满足:<br>
http://nero.3322.org/horde/test.php<br>
  如果发现有红色的提示,可能需要修改你的PHP的安装和配置,然后再重新测试。<br>
  <br>
7.2. 配置Turba<br>
# cd /var/www/html/horde/turba/config<br>
# vi sources.php<br>
  在146行添上你设的horde的密码<br>
最后,添加turba数据库表:<br>
# cd ../scripts/drivers<br>
# mysql --user=root --password=password horde &lt; turba.sql<br>
7.3. 配置IMP<br>
  修改/var/www/html/horde/imp/config/servers.php中的域名部分<br>
最后在浏览器中访问如下URL:<br>
http://nero.3322.org/horde/<br>
  输入用户名test和密码123456登录<br>
7.4. 启动脚本<br>
  可以编写一个启动脚本/etc/rc.d/init.d/mailsys来启动这些进程,这样就不需要单独启动postfix和cyrusd了:<br>
# cp /home/pub/mailsys /etc/rc.d/init.d/mailsys<br>
# chmod 755 /etc/rc.d/init.d/mailsys<br>
# chkconfig --level 35 mailsys on<br>
<br>
8.0. 添加和删除用户<br>
8.1. 添加用户数据库脚本:<br>
USE mail;<br>
INSERT INTO USER (USERNAME,PASSWORD,FORWARD,DOMAIN,MAIL)<br>
VALUES ('user','$1$hmX8KLab$uLC0tV0WJA$6WT2jS4ty3Yg0',<br>
'user','nero.3322.org','user@nero.3322.org');<br>
<br>
8.2. 删除用户数据库脚本:<br>
<br>
USE mail;<br>
DELETE FROM USER<br>
WHERE USERNAME = 'user';<br>
<br>
8.3. 打开防火墙的25和110端口<br>
可参考:http://bbs.chinaunix.net/forum/4/20040228/269510.html<br>
<br>
8.4. 建立动态域名解析<br>
可参考:http://bbs.chinaunix.net/forum/4/20040228/269510.html<br>
<br>
8.5. 作者注<br>
本文参考了《Postfix+Cyrus-IMAP+Cyrus-SASL+MySQL+IMP》连接如下:<br>
http://www.cngnu.org/technology/Postfix_I.html<br>
<br>
8.6. 服务器事例<br>
http://nero.3322.org/horde/ test:123456<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>版权所有 &copy; 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 + -