月額480円〜の高速レンタルサーバー ColorfulBox

CentOS 6下安装Exim邮件服务器

系统环境:CentOS 6.0(postfix默认情况下已安装)

1.下载epel包(exim包位于EPEL软件源中)

# wget http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-7.noarch.rpm

2.安装epel

1# rpm -ivh epel-release-6-7.noarch.rpm

3.停止postfix服务,并禁止其开机自动启动

1# service postfix stop
2# chkconfig postfix off

4.安装exim包

1# yum install exim

5.将exim设为默认的MTA

1# alternatives --config mta<!--more-->

6.启动exim服务,并将其设为开机自动启动

1# service exim start
2# chkconfig exim on

7.卸载postfix

1# yum remove postfix

8.安装mutt

1# yum install mutt

9.发送测试邮件

1# echo "It's the first email" |mutt -s "test email" chen@qq.com

备注:
/sbin/chkconfig、/usr/sbin/alternatives文件由chkconfig包提供