Linux下邮件系统完美解决方案架设攻略
以root身份登进系统后,增加一个非root帐户,名称为sysadmin,密码按您的需求设置一个即可。接下来我们要禁止root直接登陆,编辑/etc/ssh/sshd_config 修改以下配置为:
PermitRootLogin no
然后重新启动sshd:
/etc/init.d/sshd restart
这样禁止了root直接登陆。
配置SELinux
自从RHEL4/CentOS4以后,系统默认打开了SELinux支持,简单说SELinux就是一个强制性的安全机制,但是它也带来了不少麻烦,为了避免编写烦琐的policy规则,本文档将屏蔽掉SELinux对MySQL及httpd的保护。方法如下:
基本设定
整个系统的安装全过程都要求以root身份执行,如果机器没有访问外部网络的能力,则事先下载好ExtMail Solution软件包,并用ftp以sysadmin帐户的身份,上载到服务器。
下载软件包
我们统一将软件包下载到/root目录里。
下载的文件必须校验确认过没损坏才能使用。命令如下:
解压
目前最新的ExtMail-Solution软件包版本号为0.1,软件包文件名为:ExtMail-Solution-Linux-0.1.tar.gz,下载回来后,在/root目录解开:
重要步骤:
我们进入/root/ExtMail-Solution-Linux-0.1/目录,该目录下包括如下文件/目录:
下文所涉及的操作,绝大部分都是发生在/root/ExtMail-Solution-Linux-0.1目录里,请确保当前目录为:/root/ExtMail-Solution-Linux-0.1
PermitRootLogin no
然后重新启动sshd:
/etc/init.d/sshd restart
这样禁止了root直接登陆。
配置SELinux
自从RHEL4/CentOS4以后,系统默认打开了SELinux支持,简单说SELinux就是一个强制性的安全机制,但是它也带来了不少麻烦,为了避免编写烦琐的policy规则,本文档将屏蔽掉SELinux对MySQL及httpd的保护。方法如下:
操作完毕后,重新启动mysql及apache,并将如下命令加入/etc/rc.d/rc.local以便服务器启动后能自动生效:setsebool httpd_disable_trans=1
setsebool mysqld_disable_trans=1
下载ExtMail Solution软件包/usr/sbin/setsebool httpd_disable_trans=1
/usr/sbin/setsebool mysqld_disable_trans=1
/etc/init.d/mysqld restart
/etc/init.d/httpd restart
基本设定
整个系统的安装全过程都要求以root身份执行,如果机器没有访问外部网络的能力,则事先下载好ExtMail Solution软件包,并用ftp以sysadmin帐户的身份,上载到服务器。
下载软件包
我们统一将软件包下载到/root目录里。
校验su - root
cd /root
wget http://www.extmail.org/source/ExtMail-Solution-Linux-0.1.tar.gz
下载的文件必须校验确认过没损坏才能使用。命令如下:
一个可能的结果:wget http://www.extmail.org/source/md5sum.es_linux-0.1
cat md5sum.es_linux-0.1
md5sum ExtMail-Solution-Linux-0.1.tar.gz
由于软件包不断的变更,所以上述结果和您的结果可能不一致,请以下载的md5sum为准# cat md5sum.es_linux-0.1
168eced41c0cac0ed9f981e791f3783b ExtMail-Solution-Linux-0.1.tar.gz
# md5sum ExtMail-Solution-Linux-0.1.tar.gz
168eced41c0cac0ed9f981e791f3783b ExtMail-Solution-Linux-0.1.tar.gz
解压
目前最新的ExtMail-Solution软件包版本号为0.1,软件包文件名为:ExtMail-Solution-Linux-0.1.tar.gz,下载回来后,在/root目录解开:
此外,我们假设本次安装默认域是extmail.org,主机名为:mail.extmail.org,ExtMail Solution的文件目录是/root/ExtMail-Solution-Linux-0.1/tar xfz ExtMail-Solution-Linux-0.1.tar.gz
重要步骤:
我们进入/root/ExtMail-Solution-Linux-0.1/目录,该目录下包括如下文件/目录:
其中RPMS目录是本文的重点,里面包含了所需要的全部rpm包,src目录则是存放webmail, anti-spam等相关软件的源码,而README则是说明文件,docs目录则是本文档相关的html及图片。conf/
docs/
RPMS/
src/
README
下文所涉及的操作,绝大部分都是发生在/root/ExtMail-Solution-Linux-0.1目录里,请确保当前目录为:/root/ExtMail-Solution-Linux-0.1
0
第1页:准备工作第2页:ExtMail Solution 结构 第3页:CentOS4.3安装步骤1~10第4页:安装步骤11~21第5页:配置SELinux 第6页:rpm -ivh --nodeps RPMS/postfix-2.3.20050716-1hzq.i386.rpm 第7页:配置Postfix MTA 第8页:配置Courier-Authlib 第9页:配置Apache 第10页:安装ExtMan - web后台 第11页:配置Mailgraph_ext 第12页:安装Courier-IMAP 第13页:配置SpamAssassin 第14页:配置Amavisd与Clamav结合第15页:启动/测试
相关文章
