Web方式的邮件系统:
它的安装包为:squirrelmail-1.4.8-5.el5_4.10.noarch.rpm
安装它的同时也安装了http,php的一些服务跟组件
安装好squirrelmail的rpm包后,所有的页面文件都被安置在/user/share/squirrelmail目录中,我们需要将其link到apache的html目录才可以使用,执行下面的命令创建连接目录:
(注:cp复制不行的,因为squirrelmail很多文件的路径都是相对路径,如果必须改很多代码后)
[root@mail squirrelmail]# cd /var/www/html/
[root@mail html]# ln -s /usr/share/squirrelmail mail
[root@mail html]# ll
总计 4
-rw-r--r-- 1 root root 42 07-16 02:53 index.html
lrwxrwxrwx 1 root root 23 07-24 15:58 mail -> /usr/share/squirrelmail
配置squirrelmail的默认参数
主要的配置文件时config.php,在aquirrelmail的config目录下,可以手动修改这个文件,也可以使用squirrel为我们准备的配置脚本来定制参数。这个脚本是config目录下的conf.pl,运行这个脚本需要系统的内装有perl的解释器
[root@mail html]# cd mail/
[root@mail mail]# cd config/
[root@mail config]# ll
总计 188
-rw-r--r-- 1 root root 29548 2009-10-05 config_default.php
lrwxrwxrwx 1 root root 45 07-24 14:39 config_local.php -> ../../../../etc/squirrelmail/config_local.php
lrwxrwxrwx 1 root root 39 07-24 14:39 config.php -> ../../../../etc/squirrelmail/config.php
-rwxr-xr-x 1 root root 148706 2009-10-05 conf.pl
-rw-r--r-- 1 root root 492 2009-10-05 index.php
[root@mail config]# ./conf.pl 执行该脚本(注意执行时最好在系统3级别中区设置,不要使用png其他工具)

编译
[root@mail config]# vim /etc/httpd/conf/httpd.conf
747 #AddDefaultCharset UTF-8 禁用该行
然后重启postfix 如果apache没有启动,记得启动

但是登录时会出现报错
此时我们需要安装dovecot ,然后启用它
[root@mail config]# yum install dovecot -y
[root@mail config]# service dovecot start
启动 Dovecot Imap: [确定]

我们把做的那几行关于验证的设置禁用了便可以了:
[root@mail config]# vim /etc/postfix/main.c
#broken_sasl_auth_clients = yes
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#smtpd_sasl_application_name = smtpd
#smtpd_recipient_restrictions =permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
#smtpd_client_restrictions = permit_sasl_authenticated,reject
然后重启postfix
[root@mail config]# service postfix restart
关闭 postfix: [确定]
启动 postfix: [确定]
然后再发就可以发出去了,同时也能接受到