📄 0520openwebmail.htm
字号:
<br><font size="-1" color="#ffff00" face="SimSun"> </font><br><font size="-1" color="#ff6666" face="SimSun"># 使用者的设定数据!</font><br><font size="-1" color="#ffff00" face="SimSun">mynetworks_style= host</font><br><font size="-1" color="#ffff00" face="SimSun">delay_warning_time= 4h</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_banner= $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)</font><br><font size="-1" color="#ffff00" face="SimSun">unknown_local_recipient_reject_code= 450</font><br><font size="-1" color="#ffff00" face="SimSun">smtp-filter_destination_concurrency_limit= 2</font><br><font size="-1" color="#ffff00" face="SimSun">lmtp-filter_destination_concurrency_limit= 2</font><br><font size="-1" face="SimSun"><font color="#ffff00">smtpd_sasl_path= /etc/postfix/sasl:/usr/lib/sasl2 </font><font color="#ffccff"> #<== 就是这一行</font></font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_sasl_application_name= smtpd</font><br><b><font size="-1" color="#ffff00" face="SimSun">relayhost= [seed.net.tw]</font></b><br><font size="-1" color="#ff6666" face="SimSun">#上面这行很重要,如果想要以动态IP 架站,就需要 ISP 的 relay host 才行!</font><br><font size="-1" color="#ff6666" face="SimSun">#详细资料请参考:(因为我的主机在seednet底下,所以....)</font><br><font size="-1" color="#ff6666" face="SimSun"># <a href="http://phorum.study-area.org/viewtopic.php?t=18621" target="_blank">http://phorum.study-area.org/viewtopic.php?t=18621</a></font><br><font size="-1" color="#ff6666" face="SimSun"># <a href="http://phorum.study-area.org/viewtopic.php?t=22806" target="_blank">http://phorum.study-area.org/viewtopic.php?t=22806</a></font><br><font size="-1" face="SimSun"><font color="#ffff00">myhostname= <b>hostname.domain.name</b>  </font><font color="#ffccff"># <==这里请输入您的主机名称</font></font><br><font size="-1" face="SimSun"><font color="#ffff00">mydomain =<b>domain.name </b></font><font color="#ffccff">            # <==这里则是领域名称</font></font><br><font size="-1" color="#ffff00" face="SimSun">myorigin =$myhostname</font><br><font size="-1" color="#ffff00" face="SimSun">inet_interfaces= all</font><br><font size="-1" color="#ffff00" face="SimSun">mydestination= $myhostname</font><br><font size="-1" color="#ffff00" face="SimSun">mynetworks= 127.0.0.0/8</font><br><font size="-1" color="#ffff00" face="SimSun">alias_maps= hash:/etc/postfix/aliases</font><br><font size="-1" color="#ffff00" face="SimSun">alias_database= hash:/etc/postfix/aliases</font><br><font size="-1" color="#ffff00" face="SimSun">mail_spool_directory= /var/spool/mail</font><br><font size="-1" color="#ffff00" face="SimSun">debug_peer_level= 2</font><br><font size="-1" color="#ffff00" face="SimSun">debugger_command=</font><br><font size="-1" color="#ffff00" face="SimSun">        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin</font><br><font size="-1" color="#ffff00" face="SimSun">        xxgdb $daemon_directory/$process_name $process_id & sleep 5</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_sasl_auth_enable= yes</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_sasl_local_domain=</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_recipient_restrictions=</font><br><font size="-1" color="#ffff00" face="SimSun">    reject_unknown_sender_domain</font><br><font size="-1" color="#ffff00" face="SimSun">    reject_unknown_recipient_domain</font><br><font size="-1" color="#ffff00" face="SimSun">    permit_mynetworks</font><br><font size="-1" color="#ffff00" face="SimSun">    permit_sasl_authenticated</font><br><font size="-1" color="#ffff00" face="SimSun">    reject_unauth_destination</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_client_restrictions= hash:/etc/postfix/access, permit_sasl_authenticated,</font><br><font size="-1" color="#ffff00" face="SimSun">    reject_rbl_client   relays.ordb.org,</font><br><font size="-1" color="#ffff00" face="SimSun">    reject_rhsbl_client dsn.rfc-ignorant.org</font><br><font size="-1" color="#ffff00" face="SimSun">smtpd_sasl_security_options= noanonymous</font><br><font size="-1" color="#ffff00" face="SimSun">notify_classes= resource, software</font><br><font size="-1" color="#ffff00" face="SimSun">message_size_limit=   31457280</font><br><font size="-1" color="#ffff00" face="SimSun">mailbox_size_limit= 1000000000</font><br><font size="-1" color="#ffff00" face="SimSun">header_checks= regexp:/etc/postfix/header_checks</font><br><font size="-1" color="#ffff00" face="SimSun">body_checks= regexp:/etc/postfix/body_checks</font><font size="-1" color="#ffccff" face="SimSun"></font></p><p><font size="-1" color="#ffccff" face="SimSun"># 4. 其它相关的档案:</font><br><font size="-1" color="#ffffff" face="SimSun">/etc/postfix/access</font><br><font size="-1" color="#ffffff" face="SimSun">/etc/postfix/header_checks</font><br><font size="-1" color="#ffffff" face="SimSun">/etc/postfix/body_checks</font><br><font size="-1" color="#ffffff" face="SimSun">/etc/postfix/aliases</font><br><font size="-1" color="#ff6666" face="SimSun"># 相关设定请参考上面提供的连结啊!</font><font size="-1" color="#ffccff" face="SimSun"></font></p><p><font size="-1" color="#ffccff" face="SimSun"># 5. 开始启动:</font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]# </font><b><font color="#ffff00">/etc/rc.d/init.d/saslauthd start</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]# </font><b><font color="#ffff00">/etc/rc.d/init.d/postfix  start</font></b></font></p></td></tr></tbody></table> <br>这样就完成了 Postfix 的安装与设定,再接下来则是 Apache 的安装与设定了。<br> <table bgcolor="#000000" border="1" cols="1" width="550"><tbody><tr><td><font size="-1" color="#ffccff" face="SimSun"># 0. 利用 urpmi来安装所需要的所有的套件!</font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]#</font><b><font color="#ffff00"> urpmi apache2 php MySQL</font></b></font><br><font size="-1" color="#ffffff" face="SimSun">Preparing...               ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  1:libmysql12            ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  2:libapr0               ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  3:apache-conf           ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  4:apache2-common         ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  5:perl-Data-ShowTable    ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  6:perl-Mysql            ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  7:apache2-modules        ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  8:apache2               ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  9:libphp_common432       ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  10:perl-CGI              ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  11:MySQL-client          ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  12:MySQL-common          ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  13:php-ini               ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  14:apache2-mod_php       ###########################################</font><br><font size="-1" color="#ffffff" face="SimSun">  15:MySQL                 ###########################################</font><br><font size="-1" color="#ff6666" face="SimSun"># 因为我再最早安装时,并没有选择WWW ,所以要安装的数据就很多!</font><br><font size="-1" color="#ff6666" face="SimSun"># 另外,请您做好urpmi 的设定才行!</font><font size="-1" color="#ffccff" face="SimSun"></font><p><font size="-1" color="#ffccff" face="SimSun"># 1. 开始启动httpd 啰!</font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]#</font><font color="#ffff00"> <b>/etc/rc.d/init.d/httpd start</b></font></font><b><font size="-1" color="#ffccff" face="SimSun"></font></b></p><p><font size="-1" color="#ffccff" face="SimSun"># 2. 让 MySQL在开机时不会自动启动, httpd 则会自动启动!</font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]#</font><b><font color="#ffff00"> chkconfig httpd on</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]#</font><b><font color="#ffff00"> chkconfig mysql off</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]#</font><b><font color="#ffff00"> chkconfig --list | grep 3:on</font></b></font><br><font size="-1" color="#ffffff" face="SimSun">httpd          0:off   1:off   2:on    3:on   4:on    5:on    6:off</font></p></td></tr></tbody></table> <br>千万注意,我们目前并没有要使用 MySQL 的计划,所以,当然就要将 MySQL给他关闭啦!而 httpd 则是需要在开机的时候就与以启动才行,所以上面的第二个步骤才需要如此的设定喔!现在,您就可以在您的网址列输入您的主机名称,看看能不能连结http 提供的 WWW 服务呢?!<br> <br>现在,请注意,预设的状态下, MDK 10.0 的 WWW 主网页是放置在 /var/www/html底下的,但是 MDK 却没有预设的 data 目录,所以我们就必须要给予设定啦!您可以这样做:<br> <table bgcolor="#000000" border="1" cols="1" width="600"><tbody><tr><td><font size="-1" color="#ffccff" face="SimSun"># 0. 将 openwebmail解压缩,并且移动到适当的目录下:</font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testroot]# </font><b><font color="#ffff00">cd /usr/local/src</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testsrc]# </font><b><font color="#ffff00">tar -zxvf /disk1/software/openwebmail-2.40.tar.gz</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testsrc]#</font><b><font color="#ffff00"> cd cgi-bin/</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testcgi-bin]# </font><b><font color="#ffff00">mv openwebmail/ /var/www/cgi-bin/</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testcgi-bin]# </font><b><font color="#ffff00">cd ..</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testsrc]# </font><b><font color="#ffff00">rmdir cgi-bin</font></b></font><br><font size="-1" face="SimSun"><font color="#ffffff">[root@testsrc]# </font><b><font color="#ffff00">mv data/openwebmail /var/www/html/openwebmail_data</font></b></font><br><font size="-1" face="SimSun"><font color="#ffccff">[root@testsrc]# </font><b><font color="#ffff00">rmdir data</font></b></font><br><font size="-1" color="#ff6666" face="SimSun"># 同时请注意,您的主机上面必须要有perl 模块的存在了才行!</font><br><font size="-1" color="#ff6666" face="SimSun"># 我的 perl模块有底下这么多:</font><br><font size="-1" color="#ff6666" face="SimSun">perl-MailTools-1.59-2mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-Crypt-SSLeay-0.51-3mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-Term-Readline-Gnu-1.14-5mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-Digest-SHA1-2.04-1mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-Mysql-1.22_19-9mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-MDK-Common-1.1.11-2mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-HTML-Parser-3.35-2mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-File-Slurp-2002.1031-3mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-Tk-800.024-4mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-SGMLSpm-1.03ii-6mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-SDL-1.20.0-8mdk</font><br><font size="-1" color="#ff6666" face="SimSun">perl-ldap-0.31-2mdk</font>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -