基于CentOS 5.3系统下面的TMAIL安装笔记

基于CentOS 5.3系统下面的TMAIL安装笔记<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

([url]http://godoha.blog.51cto.com[/url] by Weihu Yen 2009-4-26)

 

      一直想测试开源邮件论坛的TMAIL,今天下午在家抽空,从头开始装了TMAIL系统,希望开源社区的jacky老大,能多多修改程式! (个人觉得相比extmail.org的extmail来说,安装的确简单多了,我会继续关注TMAIL随后的更新包!

 (由于论坛图片没法复制上来,想要研究TMAIL的兄弟,可下载附件,有详细截图)

 贴两个图上来:

tmail后台:

tmail web登录:

 

修订版本

最后修订日期

修订内容

修订者

V1.0

2009-4-26

TMAIL system 初次安装

Weihu Yen

简介:

       采用CentOS5.3系统   Tmail版本:V4.51beta2

内存:256M 硬盘:40G

分区:/boot 1024M/usr 10240M/var 10240M/home 1024M/tmp 1024M

/   剩下所有可用空间

1.    系统及组件安装:(个人比较喜欢是最简化安装,呵呵)

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

安装选择包时:选administrator tools、开放工具包、兼容软件支持包

2.     安装完系统后,安装wget包及中文件字库包,并修改i18n文件,让putty显示中文!

[root@tmail CentOS]# rpm -ivh wget-1.10.2-7.el5.i386.rpm

[root@tmail CentOS]# rpm -ivh fonts-ISO8859-2-1.0-17.1.noarch.rpm  fonts-ISO8859-2-100dpi-1.0-17.1.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

[root@tmail /]# vi /etc/sysconfig/i18n

#LANG="zh_CN.UTF-8"          ##注释掉此行

#SYSFONT="latarcyrheb-sun16"   ##注释掉此行

 

LANG="zh_CN.GB18030"   ##新增以下两行

LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"

3.     重启后,用putty连上去查看中文显示正常,并下载TMAIL安装包

[root@tmail ~]# cd /tmp

[root@tmail tmp]# wget [url]http://www.thismail.org/soft/tmail_v4.5.1_16.tar.bz2[/url]

--21:04:48--  [url]http://www.thismail.org/soft/tmail_v4.5.1_16.tar.bz2[/url]

正在解析主机 [url]www.thismail.org...[/url] 203.171.239.42

Connecting to [url]www.thismail.org[/url]|203.171.239.42|:80... 已连接。

已发出 HTTP 请求,正在等待回应... 200 OK

长度:75150121 (72M) [application/octet-stream]

Saving to: `tmail_v4.5.1_16.tar.bz2'

 

 0% [                                                            ] 119,800     35.7K/s  eta 34m 14s

4.     安装TMAIL相依的组件包,并解压安装TMAIL

[root@tmail CentOS]# rpm -ivh procmail-3.22-17.1.el5.centos.i386.rpm

[root@tmail CentOS]# rpm -ivh cyrus-sasl-2.1.22-4.i386.rpm

[root@tmail CentOS]# rpm -ivh sendmail-8.13.8-2.el5.i386.rpm

[root@tmail tmp]# tar -jxf tmail_v4.5.1_16.tar.bz2

[root@tmail tmp]# ls

lost+found  tmail  tmail_v4.5.1_16.tar.bz2

[root@tmail tmp]# cd tmail

[root@tmail tmail]# ls

install  rpm  tmail_setup

[root@tmail tmail]# ./install   #####开始安装

5.     根据上面的警告讯息,加以解决如下:

[root@tmail tmail]# pwd

/tmp/tmail

[root@tmail tmail]# cd /var/lib/postfix/

[root@tmail postfix]# chown postfix:postfix /var/lib/postfix/.

[root@tmail postfix]# telnet localhost 25

-bash: telnet: command not found        ###发现telnet 包没有安装###

[root@tmail CentOS]# rpm -ivh telnet-

telnet-0.17-39.el5.i386.rpm         telnet-server-0.17-39.el5.i386.rpm

[root@tmail CentOS]# rpm -ivh telnet-0.17-39.el5.i386.rpm

[root@tmail CentOS]# telnet localhost 25  ###再次telnet 25 端口

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

[root@tmail ~]# cd /tmail/postfix/sbin/ 

[root@tmail sbin]# ls

postalias  postconf  postfix   postlock  postmap    postsuper

postcat    postdrop  postkick  postlog   postqueue  sendmail

[root@tmail sbin]# ./postfix start   ###启动####

postfix/postfix-script: starting the Postfix mail system

6.     开启防火墙相关端口,登录并测试WEBMAIL

[root@tmail CentOS]# rpm -ivh setuptool-1.19.2-1.el5.centos.i386.rpm

[root@tmail CentOS]# setup

[root@tmail ~]# vi /etc/sysconfig/iptables    ###查看确定有开放25,110,22,80几个PORT,如没有直接修改,并重启服务生效!

[root@tmail ~]# service iptables restart

清除防火墙规则:                                           [确定]

chains 设置为 ACCEPT 策略:filter                       [确定]

正在卸载 Iiptables 模块:                                  [确定]

应用 iptables 防火墙规则:                                 [确定]

载入额外 iptables 模块:ip_conntrack_netbios_ns            [确定]

[root@tmail ~]#

[root@tmail ~]# chkconfig --list ip6tables  ###关闭不必要的服务###

ip6tables       0:关闭  1:关闭  2:启用  3:启用  4:启用  5:启用  6:关闭

[root@tmail ~]# chkconfig ip6tables off

 [root@tmail ~]# chkconfig gpm off

[root@tmail ~]# chkconfig xfs off

[root@tmail sbin]# ntsysv   ###或使用此命令进入控制台来关闭###

7.     访问TMAIL管理后台,新增账户,并登录TMAIL看是否正常发信

[url]http://ip/tmail/[/url]  ## 注意tmail后面的斜线不能少,这个后台访问##

[url]http://ip[/url]   ## 这是tmail webmail登录访问

增加一个51cto.com的域名,然后增加一个用户godoha

用刚刚新建的用户来,登录webmail

8.     检查日志,确认邮件是否发出!

[root@tmail ~]# tail -f /var/log/maillog

Apr 26 23:20:34 tmail postfix/pipe[2173]: B4B811634AF: to=<[email]godoha@51cto.com[/email]>, relay=maildrop, delay=11, delays=0.48/0.26/0/11, dsn=2.0.0, status=sent (delivered via maildrop service)

Apr 26 23:20:34 tmail postfix/qmgr[1984]: B4B811634AF: removed

9.     后续添加中。。。。。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值