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

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

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

# service postfix stop
# chkconfig postfix off

4.安装exim包

# yum install exim

5.将exim设为默认的MTA

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

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

# service exim start 
# chkconfig exim on

7.卸载postfix

# yum remove postfix

8.安装mutt

# yum install mutt

9.发送测试邮件

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

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