linux系统安装配置exim4(源码安装)

一、Exim4概述

Exim是一个MTA(Mail Transfer Agent,邮件传输代理)服务器软件,该软件基于GPL协议开发,是一款开源软件。该软件主要运行于类UNIX系统。通常该软件会与Dovecot或Courier等软件搭配使用。Exim同时也是“进出口”(Export-Import)的英文缩写。


二、软件介质及安装环境

Exim版本:exim-4.89.tar.gz

安装环境:

硬件:Sugon L620-G15(龙芯3B1500)

操作系统:iSoft Server OS 5.0 beta3 for mips(普华服务器操作系统龙芯版)

三、安装配置Exim4

安装前配置

service iptables stop

创建普通用户test

安装rpm包pcre-devel、db4-devel

获取exim4源码包

wget ftp://mirror.easyname.at/exim-ftp/exim/exim4/exim-4.89.tar.gz
tar zxvf exim-4.89.tar.gz
cd exim-4.89

  

配置相关文件并安装

cd exim-4.89

cp src/EDITME Local/Makefile

编辑Local/Makefile

“EXIM_USER=”改为“EXIM_USER=test”

注释EXIM_MONITOR=eximon.bin

make

make install

 

四、使用Exim4

/var/spool/mail 对其他用户增加可写权限:

chmod -R a+w /var/spool/mail

  

 

切换到test用户

添加环境变量:PATH=$PATH:/usr/exim/bin

执行命令:exim -bV

[test@isoft182 ~]$ exim -bV
Exim version 4.89 #4 built 31-Aug-2017 13:26:24
Copyright (c) University of Cambridge, 1995 - 2017
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2017
Berkeley DB: Berkeley DB 4.7.25: (October 20, 2015)
Support for: iconv() DNSSEC Event PRDR
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmjz dbmnz dnsdb
Authenticators:
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Fixed never_users: 0

  

无报错说明安装成功。

发送邮件:

[test@isoft182 ~]$ exim -v test
LOG: MAIN
  Warning: purging the environment.
 Suggested action: use keep_environment.
From:test
To:test
Subject:testing exim
 
This is a test message

 

返回信息

[test@isoft182 ~]$ delivering 1dnLIX-00045d-No
LOG: MAIN
  => test <test@localhost> R=localuser T=local_delivery
LOG: MAIN
  Completed

  

说明发送成功。

此软件虽然在龙芯下安装,对于x86下也是适用的。

 

posted @ 2017-08-31 17:26  爱净意  阅读(4084)  评论(0编辑  收藏  举报