原文地址:http://www.jervis.ws/2008/03/17/exim-on-centos/
这是我总结的在centos平台安装和基础配置exim快捷手册。这不是一份完整的手册,但是马马虎虎能指引你上路=D。依据这份手册,你可以搞定exim的安装以及使用
我将假设你使用centos4/5平台,yum正常工作并且可以用root登录
首先保证更新
yum update
安装exim以及邮件管理工具
yum install exim
yum install system-switch-mail
把exim设置成开机启动
system-switch-mail
service sendmail stop
service exim start
chkconfig exim on
chkconfig sendmail off
添加一个root别名,类似于: “root: me@example.com”
vi /etc/aliases
同时,你也许希望像这样添加一些配置给你的路由部分,如果你喜欢通过智能host做中转的话
vi /etc/exim/exim.conf
然后在“dnslookup:”section.之前添加这些
to_smart_host:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = “* mail1.example.com:mail2.example.com;”
重启exim
service exim restart
发一封邮件来测试
echo “test” |mail -s “$HOSTNAME” me@example.com
之后,你可以刷新Exim Que 并且像这样查看日志
exim -qff ; tail -f /var/log/exim/main.log
好运吧
RSS Feed
Twitter


一月 27th, 2010
allan
Posted in 

